Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

Struct Gdk.Color

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
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Gdk.Color ()
Create a new Gdk.Color
Create a new Gdk.Color
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gdk
Method
Gdk.cairo_set_source_color (Context cr, Color color) : none
Sets the specified GdkColor as the source color of cr.
Gdk
Method
Gdk.color_alloc (Colormap colormap, Color color) : Number
Allocates a single color from a colormap.
Gdk
Method
Gdk.color_black (Colormap colormap, Color color) : Number
Returns the black color for a given colormap.
Gdk
Method
Gdk.color_change (Colormap colormap, Color color) : Number
Changes the value of a color that has already been allocated.
Gdk
Method
Gdk.color_white (Colormap colormap, Color color) : Number
Returns the white color for a given colormap.
Gdk
Method
Gdk.colors_store (Colormap colormap, Color colors, Number ncolors) : none
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
Gdk.rgb_find_color (Colormap colormap, Color color) : none
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
alloc_color (Color color, Boolean writeable, Boolean best_match) : Boolean
Allocates a single color from a colormap.
Gdk.Colormap
Method
free_colors (Color colors, Number n_colors) : none
Frees previously allocated colors.
Gdk.Colormap
Method
query_color (Number pixel, Color result) : none
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
new Gdk.PangoAttrEmbossColor.c_new (Color color) : Gdk.PangoAttrEmbossColor
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
Gtk.rc_parse_color (Scanner scanner, Color color) : Number
Parses a color in the format expected in a RC file.
Gtk
Method
Gtk.rc_parse_color_full (Scanner scanner, RcStyle style, Color color) : Number
Parses a color in the format expected in a RC file.
Gtk.CList
Method
set_foreground (Number row, Color color) : none
Gtk.CList
Method
set_background (Number row, Color color) : none
Gtk.CTree
Method
node_set_foreground (CTreeNode node, Color color) : none
Gtk.CTree
Method
node_set_background (CTreeNode node, Color color) : none
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
new Gtk.ColorButton.with_color (Color color) : Gtk.ColorButton
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
Gtk.ColorSelection.palette_from_string (String str, Color colors, Object out_values) : Boolean
Parses a color palette string; the string is a colon-separated list of color names readable by gdk_color_parse().
Gtk.ColorSelection
Method
Gtk.ColorSelection.palette_to_string (Color colors, Number n_colors) : String
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
lookup_color (String color_name, Color color) : Boolean
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
modify_fg (StateType state, Color color) : none
Sets the foreground color for a widget in a particular state.
Gtk.Widget
Method
modify_bg (StateType state, Color color) : none
Sets the background color for a widget in a particular state.
Gtk.Widget
Method
modify_text (StateType state, Color color) : none
Sets the text color for a widget in a particular state.
Gtk.Widget
Method
modify_base (StateType state, Color color) : none
Sets the base color for a widget in a particular state.
Gtk.Widget
Method
modify_cursor (Color primary, Color secondary) : none
Sets the cursor color to use in a widget, overriding the GtkWidget:cursor-color and GtkWidget:secondary-cursor-color style properties.
GtkSource.View
Method
set_mark_category_background (String category, Color color) : none
Sets given background color for mark category.
GtkSource.View
Method
get_mark_category_background (String category, Color dest) : Boolean
Gets the background color associated with given category.
PanelApplet.PanelApplet
Signal
change_background (PanelApplet self, BackgroundType object, Color p0, Pixmap p1) : none
PanelApplet.PanelApplet
Method
get_background (Color color, Pixmap pixmap) : PanelApplet.BackgroundType
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
set_colors (Color foreground, Color background, Color palette, Number palette_size) : none
Vte.Terminal
Method
set_background_tint_color (Color color) : none
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:33:24 GMT+0800 (HKT)