Class: GOffice::ComboColor

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(icon, no_color_label, default_color, color_group) ⇒ Gtk::Widget

Default constructor. Pass an optional icon and an optional label for the no/auto color button.

Parameters:

  • icon (GdkPixbuf::Pixbuf)

    optionally nil.

  • no_color_label (String)

    FIXME

  • default_color (GOffice::Color)

    The colour to use as the default

  • color_group (GOffice::ColorGroup)

    GOColor::Group

Instance Method Details

#allow_alpha=(allow_alpha) ⇒ nil

Should the custom colour selector allow the use of opacity.

Parameters:

  • allow_alpha (Boolean)

    Support alpha layer

Returns:

  • (nil)

#color=(color) ⇒ nil

Parameters:

  • color (GOffice::Color)

    a #GOColor

Returns:

  • (nil)

#color_gdk=(color) ⇒ nil

Set the color of the combo to the given color. Causes the color_changed signal to be emitted.

Parameters:

  • color (Gdk::RGBA)

    The color

Returns:

  • (nil)

#get_color(is_default) ⇒ GOffice::Color

Parameters:

  • is_default (Boolean)

Returns:

  • (GOffice::Color)

#icon=(icon) ⇒ nil

Parameters:

  • icon (GdkPixbuf::Pixbuf)

    new icon for the combo

Returns:

  • (nil)

#instant_apply=(active) ⇒ nil

Turn instant apply behaviour on or off. Instant apply means that pressing the button applies the current color. When off, pressing the button opens the combo.

Parameters:

  • active (Boolean)

    Whether instant apply should be active or not

Returns:

  • (nil)

#set_color_to_defaultnil

Set the color of the combo to the default color. Causes the color_changed signal to be emitted.

Returns:

  • (nil)