Class: GOffice::ComboPixmaps

Inherits:
ComboBox
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from ComboBox

#construct, #display=, #get_pos, #popup_display, #popup_hide, #relief=, #set_tooltip, #show_arrow=, #show_arrow?, #tearable=, #title, #title=

Constructor Details

#initialize(ncols) ⇒ GOffice::ComboPixmaps

Parameters:

  • ncols (Integer)

Instance Method Details

#add_element(pixbuf, id, tooltip) ⇒ nil

Parameters:

  • pixbuf (GdkPixbuf::Pixbuf)

    Gdk::Pixbuf

  • id (Integer)

    an identifier for the callbacks

  • tooltip (String)

    optional

Returns:

  • (nil)

#clear_elementsnil

Remove all elements.

Returns:

  • (nil)

#get_selected(index) ⇒ Integer

Parameters:

  • index (Integer)

Returns:

  • (Integer)

#previewGtk::Widget

Returns the preview button.

Returns:

  • (Gtk::Widget)

    the preview button.

#select_id(id) ⇒ Boolean

Parameters:

  • id (Integer)

Returns:

  • (Boolean)

#select_index(index) ⇒ Boolean

Parameters:

  • index (Integer)

Returns:

  • (Boolean)