Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-2.0.gir |
C documentation: | GdkColor |
Struct : | Color |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
blue : Number
|
Gdk.Color | |
green : Number
|
Gdk.Color | |
pixel : Number
|
Gdk.Color | |
red : Number
|
Gdk.Color |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.Color
()
Create a new Gdk.Color
Create a new Gdk.Color
|
||
copy
()
:
Gdk.Color
Makes a copy of a color structure.
Makes a copy of a color structure. The result must be freed using gdk_color_free().
|
Gdk.Color | |
Gdk.Color | ||
free
()
:
none
Frees a color structure created with gdk_color_copy().
Frees a color structure created with gdk_color_copy().
|
Gdk.Color | |
hash
()
:
Number
A hash function suitable for using for a hash table that stores GdkColor's.
A hash function suitable for using for a hash table that stores GdkColor's.
|
Gdk.Color | |
to_string
()
:
String
Returns a textual specification of color in the hexadecimal form
Returns a textual specification of color in the hexadecimal form
|
Gdk.Color |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Sets the specified GdkColor as the source color of cr.
|
Gdk
Method |
Allocates a single color from a colormap.
|
Gdk
Method |
Returns the black color for a given colormap.
|
Gdk
Method |
Changes the value of a color that has already been allocated.
|
Gdk
Method |
Returns the white color for a given colormap.
|
Gdk
Method |
Changes the value of the first ncolors colors in a private colormap.
|
Gdk
Method |
Gdk.draw_layout_line_with_colors
(Drawable drawable, GC gc, Number x, Number y, LayoutLine line, Color foreground, Color background)
:
none
Render a PangoLayoutLine onto a GdkDrawable, overriding the layout's normal colors with foreground and/or background.
|
Gdk
Method |
Gdk.draw_layout_with_colors
(Drawable drawable, GC gc, Number x, Number y, Layout layout, Color foreground, Color background)
:
none
Render a PangoLayout onto a GdkDrawable, overriding the layout's normal colors with foreground and/or background.
|
Gdk
Method |
drawable you're using to draw.
|
Gdk.Colormap
Method |
alloc_colors
(Color colors, Number n_colors, Boolean writeable, Boolean best_match, Object out_values)
:
Number
Allocates colors from a colormap.
|
Gdk.Colormap
Method |
Allocates a single color from a colormap.
|
Gdk.Colormap
Method |
Frees previously allocated colors.
|
Gdk.Colormap
Method |
Locates the RGB color in colormap corresponding to the given hardware pixel pixel.
|
Gdk.Cursor
Method |
new Gdk.Cursor.from_pixmap
(Pixmap source, Pixmap mask, Color fg, Color bg, Number x, Number y)
:
Gdk.Cursor
Create a new Gdk.Cursor
|
Gdk.GC
Method |
set_foreground
(Color color)
:
none
Sets the foreground color for a graphics context.
|
Gdk.GC
Method |
set_background
(Color color)
:
none
Sets the background color for a graphics context.
|
Gdk.GC
Method |
set_rgb_fg_color
(Color color)
:
none
Set the foreground color of a GC using an unallocated color.
|
Gdk.GC
Method |
set_rgb_bg_color
(Color color)
:
none
Set the background color of a GC using an unallocated color.
|
Gdk.PangoAttrEmbossColor
Method |
Create a new Gdk.PangoAttrEmbossColor
|
Gdk.PangoRenderer
Method |
set_override_color
(RenderPart part, Color color)
:
none
Sets the color for a particular render part (foreground, background, underline, etc.
|
Gdk.Pixmap
Method |
Gdk.Pixmap.create_from_data
(Drawable drawable, String data, Number width, Number height, Number depth, Color fg, Color bg)
:
Gdk.Pixmap
|
Gdk.Pixmap
Method |
Gdk.Pixmap.create_from_xpm
(Drawable drawable, Object out_values, Color transparent_color, String filename)
:
Gdk.Pixmap
Create a pixmap from a XPM file.
|
Gdk.Pixmap
Method |
Gdk.Pixmap.colormap_create_from_xpm
(Drawable drawable, Colormap colormap, Bitmap mask, Color transparent_color, String filename)
:
Gdk.Pixmap
Create a pixmap from a XPM file using a particular colormap.
|
Gdk.Pixmap
Method |
Gdk.Pixmap.create_from_xpm_d
(Drawable drawable, Object out_values, Color transparent_color, Array data)
:
Gdk.Pixmap
Create a pixmap from data in XPM format.
|
Gdk.Pixmap
Method |
Gdk.Pixmap.colormap_create_from_xpm_d
(Drawable drawable, Colormap colormap, Bitmap mask, Color transparent_color, Array data)
:
Gdk.Pixmap
Create a pixmap from data in XPM format using a particular colormap.
|
Gdk.Window
Method |
set_background
(Color color)
:
none
Sets the background color of window.
|
Gtk
Method |
Parses a color in the format expected in a RC file.
|
Gtk
Method |
Parses a color in the format expected in a RC file.
|
Gtk.CList
Method |
|
Gtk.CList
Method |
|
Gtk.CTree
Method |
|
Gtk.CTree
Method |
|
Gtk.CellRenderer
Property |
cell_background_gdk : Gdk.Color
|
Gtk.CellRendererText
Property |
background_gdk : Gdk.Color
|
Gtk.CellRendererText
Property |
foreground_gdk : Gdk.Color
|
Gtk.CellView
Property |
background_gdk : Gdk.Color
|
Gtk.CellView
Method |
set_background_color
(Color color)
:
none
Sets the background color of view.
|
Gtk.ColorButton
Property |
color : Gdk.Color
The selected color.
|
Gtk.ColorButton
Method |
Create a new Gtk.ColorButton
|
Gtk.ColorButton
Method |
set_color
(Color color)
:
none
Sets the current color to be color.
|
Gtk.ColorButton
Method |
get_color
(Color color)
:
none
Sets color to be the current color in the GtkColorButton widget.
|
Gtk.ColorSelection
Property |
current_color : Gdk.Color
|
Gtk.ColorSelection
Method |
Parses a color palette string; the string is a colon-separated list of color names readable by gdk_color_parse().
|
Gtk.ColorSelection
Method |
Encodes a palette as a string, useful for persistent storage.
|
Gtk.ColorSelection
Method |
set_current_color
(Color color)
:
none
Sets the current color to be color.
|
Gtk.ColorSelection
Method |
get_current_color
(Color color)
:
none
Sets color to be the current color in the GtkColorSelection widget.
|
Gtk.ColorSelection
Method |
set_previous_color
(Color color)
:
none
Sets the 'previous' color to be color.
|
Gtk.ColorSelection
Method |
get_previous_color
(Color color)
:
none
Fills color in with the original color value.
|
Gtk.Style
Method |
Looks up color_name in the style's logical color mappings, filling in color and returning TRUE if found, otherwise returning FALSE.
|
Gtk.TextTag
Property |
background_gdk : Gdk.Color
|
Gtk.TextTag
Property |
foreground_gdk : Gdk.Color
|
Gtk.TextTag
Property |
paragraph_background_gdk : Gdk.Color
The paragraph background color as a as a (possibly unallocated) GdkColor.
|
Gtk.Widget
Method |
Sets the foreground color for a widget in a particular state.
|
Gtk.Widget
Method |
Sets the background color for a widget in a particular state.
|
Gtk.Widget
Method |
Sets the text color for a widget in a particular state.
|
Gtk.Widget
Method |
Sets the base color for a widget in a particular state.
|
Gtk.Widget
Method |
Sets the cursor color to use in a widget, overriding the GtkWidget:cursor-color and GtkWidget:secondary-cursor-color style properties.
|
GtkSource.View
Method |
Sets given background color for mark category.
|
GtkSource.View
Method |
Gets the background color associated with given category.
|
PanelApplet.PanelApplet
Signal |
|
PanelApplet.PanelApplet
Method |
|
Poppler.Page
Method |
render_selection_to_pixbuf
(Number scale, Number rotation, Pixbuf pixbuf, Rectangle selection, Rectangle old_selection, SelectionStyle style, Color glyph_color, Color background_color)
:
none
|
Vte.Terminal
Property |
background_tint_color : Gdk.Color
|
Vte.Terminal
Method |
set_color_dim
(Color dim)
:
none
|
Vte.Terminal
Method |
set_color_bold
(Color bold)
:
none
|
Vte.Terminal
Method |
set_color_foreground
(Color foreground)
:
none
|
Vte.Terminal
Method |
set_color_background
(Color background)
:
none
|
Vte.Terminal
Method |
set_color_cursor
(Color cursor_background)
:
none
|
Vte.Terminal
Method |
set_color_highlight
(Color highlight_background)
:
none
|
Vte.Terminal
Method |
|
Vte.Terminal
Method |
set_background_tint_color
(Color color)
:
none
|