Class: Gtk::ColorSelection

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

Instance Method Summary collapse

Instance Method Details

#current_alphaInteger

Returns current-alpha.

Returns:

  • (Integer)

    current-alpha

#current_alpha=(current_alpha) ⇒ Integer

Parameters:

  • current_alpha (Integer)

Returns:

  • (Integer)

    current-alpha

  • (Integer)

    current-alpha

#current_colorGdk::Color

The current GdkColor color.

Returns:

  • (Gdk::Color)

    current-color

#current_color=(current_color) ⇒ Gdk::Color

The current GdkColor color.

Parameters:

  • current_color (Gdk::Color)

Returns:

  • (Gdk::Color)

    current-color

  • (Gdk::Color)

    current-color

#current_rgbaGdk::RGBA

The current RGBA color.

Returns:

  • (Gdk::RGBA)

    current-rgba

#current_rgba=(current_rgba) ⇒ Gdk::RGBA

The current RGBA color.

Parameters:

  • current_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    current-rgba

  • (Gdk::RGBA)

    current-rgba

#get_current_color(color) ⇒ nil

Sets color to be the current color in the GtkColorSelection widget.

Parameters:

  • color (Gdk::Color)

    a Gdk::Color to fill in with the current color

Returns:

  • (nil)

#get_current_rgba(rgba) ⇒ nil

Sets rgba to be the current color in the GtkColorSelection widget.

Parameters:

  • rgba (Gdk::RGBA)

    a Gdk::RGBA to fill in with the current color

Returns:

  • (nil)

#get_previous_color(color) ⇒ nil

Fills color in with the original color value.

Parameters:

  • color (Gdk::Color)

    a Gdk::Color to fill in with the original color value

Returns:

  • (nil)

#get_previous_rgba(rgba) ⇒ nil

Fills rgba in with the original color value.

Parameters:

  • rgba (Gdk::RGBA)

    a Gdk::RGBA to fill in with the original color value

Returns:

  • (nil)

#has_opacity_controlTrueClass

Determines whether the colorsel has an opacity control.

Returns:

  • (TrueClass)

    true if the colorsel has an opacity control, false if it does’t

#has_opacity_control=(has_opacity_control) ⇒ TrueClass

Parameters:

  • has_opacity_control (TrueClass)

Returns:

  • (TrueClass)

    has-opacity-control

  • (TrueClass)

    has-opacity-control

#has_opacity_control?TrueClass

Returns has-opacity-control.

Returns:

  • (TrueClass)

    has-opacity-control

#has_paletteTrueClass

Determines whether the color selector has a color palette.

Returns:

  • (TrueClass)

    true if the selector has a palette, false if it hasn’t

#has_palette=(has_palette) ⇒ TrueClass

Parameters:

  • has_palette (TrueClass)

Returns:

  • (TrueClass)

    has-palette

  • (TrueClass)

    has-palette

#has_palette?TrueClass

Returns has-palette.

Returns:

  • (TrueClass)

    has-palette

#is_adjustingTrueClass

Gets the current state of the colorsel.

Returns:

  • (TrueClass)

    true if the user is currently dragging a color around, and false if the selection has stopped

#newGtk::Widget

Creates a new GtkColorSelection.

Returns:

#previous_alphaInteger

Returns the previous alpha value.

Returns:

  • (Integer)

    an integer between 0 and 65535

#previous_alpha=(alpha) ⇒ nil

Sets the “previous” alpha to be alpha.

This function should be called with some hesitations, as it might seem confusing to have that alpha change.

Parameters:

  • alpha (Integer)

    an integer between 0 and 65535

Returns:

  • (nil)

#previous_color=(color) ⇒ nil

Sets the “previous” color to be color.

This function should be called with some hesitations, as it might seem confusing to have that color change. Calling gtk_color_selection_set_current_color() will also set this color the first time it is called.

Parameters:

  • color (Gdk::Color)

    a Gdk::Color to set the previous color with

Returns:

  • (nil)

#previous_rgba=(rgba) ⇒ nil

Sets the “previous” color to be rgba.

This function should be called with some hesitations, as it might seem confusing to have that color change. Calling gtk_color_selection_set_current_rgba() will also set this color the first time it is called.

Parameters:

  • rgba (Gdk::RGBA)

    a Gdk::RGBA to set the previous color with

Returns:

  • (nil)