GObject.Object
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 | Defined By | |
---|---|---|
colors : Gdk.Color
read only
|
Gdk.Colormap | |
parent_instance : GObject.Object
read only
|
Gdk.Colormap | |
size : Number
read only
|
Gdk.Colormap | |
visual : Gdk.Visual
read only
|
Gdk.Colormap | |
windowing_data : void*
read only
|
Gdk.Colormap |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.Colormap
(Object properties)
Create a new Gdk.Colormap
Create a new Gdk.Colormap
|
||
Create a new Gdk.Colormap
Create a new Gdk.Colormap
|
||
Gdk.Colormap.get_system
()
:
Gdk.Colormap
Gets the system's default colormap for the default screen.
Gets the system's default colormap for the default screen. (See gdk_colormap_get_system_for_screen ())
|
Gdk.Colormap | |
Gdk.Colormap.get_system_size
()
:
Number
Returns the size of the system's default colormap.
Returns the size of the system's default colormap. (See the description of struct GdkColormap for an explanation of the size of a colormap.)
|
Gdk.Colormap | |
Allocates a single color from a colormap.
Allocates a single color from a colormap.
|
Gdk.Colormap | |
alloc_colors
(Color colors, Number n_colors, Boolean writeable, Boolean best_match, Object out_values)
:
Number
Allocates colors from a colormap.
Allocates colors from a colormap. allocated.
|
Gdk.Colormap | |
change
(Number ncolors)
:
none
Changes the value of the first ncolors in a private colormap to match the values in the
Changes the value of the first ncolors in a private colormap to match the values in the
|
Gdk.Colormap | |
Gdk.Colormap | ||
get_screen
()
:
Gdk.Screen
Gets the screen for which this colormap was created.
Gets the screen for which this colormap was created.
|
Gdk.Colormap | |
get_visual
()
:
Gdk.Visual
Returns the visual for which a given colormap was created.
Returns the visual for which a given colormap was created.
|
Gdk.Colormap | |
Locates the RGB color in colormap corresponding to the given hardware pixel pixel.
Locates the RGB color in colormap corresponding to the given hardware pixel pixel. pixel must be a valid pixel in the colormap; it's a programmer error to call this function with a pixel which is not in the colormap. Hardware pixels are normally obtained from gdk_colormap_alloc_colors(), or from a GdkImage. (A GdkImage contains image data in hardware format, a GdkPixbuf contains image data in a canonical 24-bit RGB format.) This function is rarely useful; it's used for example to implement the eyedropper feature in GtkColorSelection.
|
Gdk.Colormap |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
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 |
Gdk.colors_alloc
(Colormap colormap, Boolean contiguous, Object out_values, Number nplanes, Number pixels, Number npixels)
:
Number
Allocates colors from a colormap.
|
Gdk
Method |
Frees colors allocated with gdk_colors_alloc().
|
Gdk
Method |
Changes the value of the first ncolors colors in a private colormap.
|
Gdk
Method |
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
Method |
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 |
Sets the icon that will be used for drags from a particular widget from a pixmap/mask.
|
Gtk
Method |
|
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.
|