Class: GOffice::ColorPalette

Inherits:
Gtk::Box
  • Object
show all
Defined in:
(unknown)

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(no_color_label, default_color, cg) ⇒ Gtk::Widget

Returns A new palette.

Parameters:

  • no_color_label (String)

    color label

  • default_color (GOffice::Color)

    #GOColor

  • cg (GOffice::ColorGroup)

    GOColor::Group

Class Method Details

.make_menu(no_color_label, default_color, cg, custom_dialog_title, current_color) ⇒ Gtk::Widget

Returns a submenu with a palette of colours. Caller is responsible for creating an item to point to the submenu.

Parameters:

  • no_color_label (String)

    color label

  • default_color (GOffice::Color)

    #GOColor

  • cg (GOffice::ColorGroup)

    GOColor::Group

  • custom_dialog_title (String)

    optional string

  • current_color (GOffice::Color)

    #GOColor

Returns:

  • (Gtk::Widget)

    a submenu with a palette of colours. Caller is responsible for creating an item to point to the submenu.

.query(n, color) ⇒ Boolean

Parameters:

  • n (Integer)
  • color (GOffice::NamedColor)

Returns:

  • (Boolean)

Instance Method Details

#allow_alpha=(allow_alpha) ⇒ nil

Parameters:

  • allow_alpha (Boolean)

Returns:

  • (nil)

#current_color=(color) ⇒ nil

Parameters:

  • color (GOffice::Color)

Returns:

  • (nil)

#get_current_color(is_default, is_custom) ⇒ GOffice::Color

Parameters:

  • is_default (Boolean)
  • is_custom (Boolean)

Returns:

  • (GOffice::Color)

#group=(cg) ⇒ nil

Parameters:

Returns:

  • (nil)

#set_color_to_defaultnil

Returns:

  • (nil)

#title=(title) ⇒ nil

Parameters:

  • title (String)

Returns:

  • (nil)