Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-3.0.gir |
C documentation: | GdkRGBA |
Struct : | RGBA |
Properties | Defined By | |
---|---|---|
alpha : gdouble
|
Gdk.RGBA | |
blue : gdouble
|
Gdk.RGBA | |
green : gdouble
|
Gdk.RGBA | |
red : gdouble
|
Gdk.RGBA |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.RGBA
()
Create a new Gdk.RGBA
Create a new Gdk.RGBA
|
||
copy
()
:
Gdk.RGBA
Makes a copy of a GdkRGBA structure.
Makes a copy of a GdkRGBA structure.
The result must be freed through gdk_rgba_free().
|
Gdk.RGBA | |
Gdk.RGBA | ||
free
()
:
none
Frees a GdkRGBA struct created with gdk_rgba_copy()
Frees a GdkRGBA struct created with gdk_rgba_copy()
|
Gdk.RGBA | |
hash
()
:
guint32
A hash function suitable for using for a hash
table that stores GdkRGBAs.
A hash function suitable for using for a hash
table that stores GdkRGBAs.
|
Gdk.RGBA | |
Parses a textual representation of a color, filling in
the fields of the rgba struct.
Parses a textual representation of a color, filling in
the fields of the rgba struct. The string can be either one of: A standard name (Taken from the X11 rgb.txt file). A hex value in the form 'rgb' 'rrggbb' 'rrrgggbbb' or 'rrrrggggbbbb' A RGB color in the form 'rgb(r,g,b)' (In this case the color will have full opacity) A RGBA color in the form 'rgba(r,g,b,a)' Where 'r', 'g', 'b' and 'a' are respectively the red, green, blue and alpha color values. In the last two cases, r g and b are either integers in the range 0 to 255 or precentage values in the range 0% to 100%, and a is a floating point value in the range 0 to 1.
|
Gdk.RGBA | |
to_string
()
:
String
Returns a textual specification of rgba in the form
where 'r', 'g', 'b' and 'a' represent the red, green, blue and alpha values respectively.
Returns a textual specification of rgba in the form
where 'r', 'g', 'b' and 'a' represent the red, green, blue and alpha values respectively. r, g, and b are represented as integers in the range 0 to 255, and a is represented as floating point value in the range 0 to 1. These string forms are string forms those supported by the CSS3 colors module, and can be parsed by gdk_rgba_parse(). Note that this string representation may loose some precision, since r, g and b are represented as 8-bit integers. If this is a concern, you should use a different representation.
|
Gdk.RGBA |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Sets the specified GdkRGBA as the source color of cr.
|
Gdk.Window
Method |
set_background_rgba
(RGBA rgba)
:
none
Sets the background color of window.
|
Gtk.CellRenderer
Property |
cell_background_rgba : Gdk.RGBA
Cell background as a GdkRGBA
|
Gtk.CellRendererText
Property |
background_rgba : Gdk.RGBA
Background color as a GdkRGBA
|
Gtk.CellRendererText
Property |
foreground_rgba : Gdk.RGBA
Foreground color as a GdkRGBA
|
Gtk.CellView
Property |
background_rgba : Gdk.RGBA
The background color as a GdkRGBA
|
Gtk.CellView
Method |
set_background_rgba
(RGBA rgba)
:
none
Sets the background color of cell_view.
|
Gtk.ColorButton
Property |
rgba : Gdk.RGBA
The RGBA color.
|
Gtk.ColorButton
Method |
Create a new Gtk.ColorButton
|
Gtk.ColorButton
Method |
get_rgba
()
:
Gdk.RGBA
Sets rgba to be the current color in the GtkColorButton widget.
|
Gtk.ColorButton
Method |
set_rgba
(RGBA rgba)
:
none
Sets the current color to be rgba.
|
Gtk.ColorSelection
Property |
current_rgba : Gdk.RGBA
The current RGBA color.
|
Gtk.ColorSelection
Method |
get_current_rgba
()
:
Gdk.RGBA
Sets rgba to be the current color in the GtkColorSelection widget.
|
Gtk.ColorSelection
Method |
get_previous_rgba
()
:
Gdk.RGBA
Fills rgba in with the original color value.
|
Gtk.ColorSelection
Method |
set_current_rgba
(RGBA rgba)
:
none
Sets the current color to be rgba.
|
Gtk.ColorSelection
Method |
set_previous_rgba
(RGBA rgba)
:
none
Sets the 'previous' color to be rgba.
|
Gtk.IconInfo
Method |
load_symbolic
(RGBA fg, RGBA success_color, RGBA warning_color, RGBA error_color, Object out_values)
:
GdkPixbuf.Pixbuf
Loads an icon, modifying it to match the system colours for the foreground,
success, warning and error colors provided. |
Gtk.StyleContext
Method |
get_background_color
(StateFlags state)
:
Gdk.RGBA
Gets the background color for a given state.
|
Gtk.StyleContext
Method |
get_border_color
(StateFlags state)
:
Gdk.RGBA
Gets the border color for a given state.
|
Gtk.StyleContext
Method |
get_color
(StateFlags state)
:
Gdk.RGBA
Gets the foreground color for a given state.
|
Gtk.SymbolicColor
Method |
Create a new Gtk.SymbolicColor
|
Gtk.ThemingEngine
Method |
get_background_color
(StateFlags state)
:
Gdk.RGBA
Gets the background color for a given state.
|
Gtk.ThemingEngine
Method |
get_border_color
(StateFlags state)
:
Gdk.RGBA
Gets the border color for a given state.
|
Gtk.ThemingEngine
Method |
get_color
(StateFlags state)
:
Gdk.RGBA
Gets the foreground color for a given state.
|
Gtk.Widget
Method |
override_background_color
(StateFlags state, RGBA color)
:
none
Sets the background color to use for a widget.
|
Gtk.Widget
Method |
override_color
(StateFlags state, RGBA color)
:
none
Sets the color to use for a widget.
|
Gtk.Widget
Method |
Sets the cursor color to use in a widget, overriding the
GtkWidget:cursor-color and GtkWidget:secondary-cursor-color style properties. |
Gtk.Widget
Method |
Sets a symbolic color for a widget.
|
GtkSource.GutterRenderer
Property |
background_rgba : Gdk.RGBA
|
GtkSource.GutterRenderer
Method |
set_background
(RGBA color)
:
none
|
GtkSource.MarkAttributes
Property |
background : Gdk.RGBA
|
GtkSource.MarkAttributes
Method |
set_background
(RGBA background)
:
none
|
Vte.Terminal
Method |
set_color_background_rgba
(RGBA background)
:
none
|
Vte.Terminal
Method |
set_color_bold_rgba
(RGBA bold)
:
none
|
Vte.Terminal
Method |
set_color_cursor_rgba
(RGBA cursor_background)
:
none
|
Vte.Terminal
Method |
set_color_dim_rgba
(RGBA dim)
:
none
|
Vte.Terminal
Method |
set_color_foreground_rgba
(RGBA foreground)
:
none
|
Vte.Terminal
Method |
set_color_highlight_rgba
(RGBA highlight_background)
:
none
|
Vte.Terminal
Method |
|