Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gdk.Colormap

Class Gdk.Colormap

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-2.0.gir
C documentation: GdkColormap
Class : Colormap
Extends: GObject.Object
  Show / Hide Inherited methods, properties and signals
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
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_alloc (Colormap colormap, Boolean contiguous, Object out_values, Number nplanes, Number pixels, Number npixels) : Number
Allocates colors from a colormap.
Gdk
Method
Gdk.colors_free (Colormap colormap, Number pixels, Number npixels, Number planes) : Number
Frees colors allocated with gdk_colors_alloc().
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.pango_context_set_colormap (Context context, Colormap colormap) : none
This function used to set the colormap to be used for drawing with context used for drawing, so calling this function is no longer necessary.
Gdk
Method
Gdk.pixbuf_get_from_drawable (Pixbuf dest, Drawable src, Colormap cmap, Number src_x, Number src_y, Number dest_x, Number dest_y, Number width, Number height) : GdkPixbuf.Pixbuf
Transfers image data from a GdkDrawable and converts it to an RGB(A) representation inside a GdkPixbuf.
Gdk
Method
Gdk.pixbuf_get_from_image (Pixbuf dest, Image src, Colormap cmap, Number src_x, Number src_y, Number dest_x, Number dest_y, Number width, Number height) : GdkPixbuf.Pixbuf
Same as gdk_pixbuf_get_from_drawable() but gets the pixbuf from an image.
Gdk
Method
Gdk.pixbuf_render_pixmap_and_mask_for_colormap (Pixbuf pixbuf, Colormap colormap, Pixmap pixmap_return, Bitmap mask_return, Number alpha_threshold) : none
Creates a pixmap and a mask bitmap which are returned in the pixmap_return and mask_return arguments, respectively, and renders a pixbuf and its corresponding tresholded alpha mask to them.
Gdk
Method
Gdk.rgb_colormap_ditherable (Colormap cmap) : Boolean
Gdk
Method
Gdk.rgb_find_color (Colormap colormap, Color color) : none
drawable you're using to draw.
Gdk
Method
Gdk.rgb_get_colormap () : Gdk.Colormap
Get the preferred colormap for rendering image data.
Gdk.Drawable
Method
set_colormap (Colormap colormap) : none
Sets the colormap associated with drawable.
Gdk.Drawable
Method
get_colormap () : Gdk.Colormap
Gets the colormap for drawable, if one is set; returns NULL otherwise.
Gdk.GC
Method
set_colormap (Colormap colormap) : none
Sets the colormap for the GC to the given colormap.
Gdk.GC
Method
get_colormap () : Gdk.Colormap
Retrieves the colormap for a given GC, if it exists.
Gdk.Image
Method
set_colormap (Colormap colormap) : none
Sets the colormap for the image to the given colormap.
Gdk.Image
Method
get_colormap () : Gdk.Colormap
Retrieves the colormap for a given image, if it exists.
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.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.Screen
Method
get_default_colormap () : Gdk.Colormap
Gets the default colormap for screen.
Gdk.Screen
Method
set_default_colormap (Colormap colormap) : none
Sets the default colormap for screen.
Gdk.Screen
Method
get_system_colormap () : Gdk.Colormap
Gets the system's default colormap for screen
Gdk.Screen
Method
get_rgb_colormap () : Gdk.Colormap
Gets the preferred colormap for rendering image data on screen.
Gdk.Screen
Method
get_rgba_colormap () : Gdk.Colormap
Gets a colormap to use for creating windows or pixmaps with an alpha channel.
Gtk
Method
Gtk.drag_set_default_icon (Colormap colormap, Pixmap pixmap, Bitmap mask, Number hot_x, Number hot_y) : none
Changes the default drag icon.
Gtk
Method
Gtk.drag_set_icon_pixmap (DragContext context, Colormap colormap, Pixmap pixmap, Bitmap mask, Number hot_x, Number hot_y) : none
Sets pixmap as the icon for a given drag.
Gtk
Method
Gtk.drag_source_set_icon (Widget widget, Colormap colormap, Pixmap pixmap, Bitmap mask) : none
Sets the icon that will be used for drags from a particular widget from a pixmap/mask.
Gtk
Method
Gtk.gc_get (Number depth, Colormap colormap, GCValues values, GCValuesMask values_mask) : Gdk.GC
Gtk.Preview
Method
Gtk.Preview.get_cmap () : Gdk.Colormap
Gtk.Widget
Method
Gtk.Widget.push_colormap (Colormap cmap) : none
Pushes cmap onto a global stack of colormaps; the topmost colormap on the stack will be used to create all widgets.
Gtk.Widget
Method
Gtk.Widget.set_default_colormap (Colormap colormap) : none
Sets the default colormap to use when creating widgets.
Gtk.Widget
Method
Gtk.Widget.get_default_colormap () : Gdk.Colormap
Obtains the default colormap used to create widgets.
Gtk.Widget
Method
get_colormap () : Gdk.Colormap
Gets the colormap that will be used to render widget.
Gtk.Widget
Method
set_colormap (Colormap colormap) : none
Sets the colormap for the widget to the given value.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:33:23 GMT+0800 (HKT)