eb05362005-11-05Henrik Grubbström (Grubba) /* -*- C -*- */
1a05542005-07-28Martin Nilsson class GTK2.FontSelection; inherit GTK2.Vbox; //! The W(FontSelection) widget lists the available fonts, styles and sizes, //! allowing the user to select a font. It is used in W(FontSelectionDialog). //! IMG: GTK2.FontSelection(); //! Properties: //! string font-name //! string preview-text
3d76632005-11-03Lance Dillon void create(?mapping(string:mixed) props)
1a05542005-07-28Martin Nilsson //! Create a new GTK2.FontSelection widget.
3d76632005-11-03Lance Dillon {
ba9e802006-02-27Martin Stjernholm  pgtk2_verify_not_inited(); pgtk2_verify_setup();
3d76632005-11-03Lance Dillon  if (args) { INIT_WITH_PROPS(GTK_TYPE_FONT_SELECTION);
ba9e802006-02-27Martin Stjernholm  pgtk2_pop_n_elems(args);
3d76632005-11-03Lance Dillon  } else { GtkWidget *gf; gf=gtk_font_selection_new(); THIS->obj=G_OBJECT(gf); }
ba9e802006-02-27Martin Stjernholm  pgtk2__init_this_object();
3d76632005-11-03Lance Dillon }
1a05542005-07-28Martin Nilsson  string get_font_name(); //! Gets the currently-selected font name. void set_font_name(string fontname); //! This sets the currently displayed font. string get_preview_text(); //! Gets the text displayed in the preview area. void set_preview_text(string text); //! Sets the text displayed in the preview area.