Class: GOffice::Palette
- Inherits:
-
Gtk::Menu
- Object
- Gtk::Menu
- GOffice::Palette
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#initialize(n_swatches, swatch_width, n_columns, swatch_render, get_tooltip, data, destroy) ⇒ Gtk::Widget
constructor
A new #GOPalette object.
-
#n_swatches ⇒ Integer
A convenience function.
-
#show_automatic(index, label) ⇒ nil
Adds an automatic button to palette.
-
#show_custom(label) ⇒ nil
Adds a custom button to bottom of palette.
-
#swatch_new(index) ⇒ Gtk::Widget
swatch.
-
#user_data ⇒ GObject
A pointer to user data given to go_palette_new function.
Constructor Details
#initialize(n_swatches, swatch_width, n_columns, swatch_render, get_tooltip, data, destroy) ⇒ Gtk::Widget
Returns a new #GOPalette object.
Instance Method Details
#n_swatches ⇒ Integer
A convenience function.
#show_automatic(index, label) ⇒ nil
Adds an automatic button to palette.
#show_custom(label) ⇒ nil
Adds a custom button to bottom of palette. An activation of custom button will cause an emition of "custom_activate" signal.
#swatch_new(index) ⇒ Gtk::Widget
swatch. index can be changed later by changing swatch "index" data.
#user_data ⇒ GObject
Returns a pointer to user data given to go_palette_new function.