GObject.Object
Gdk.Drawable
Gdk.Pixmap
Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-2.0.gir |
C documentation: | GdkPixmap |
Class : | Pixmap |
Extends: | Gdk.Drawable |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
parent_instance : GObject.Object
read only
|
Gdk.Drawable |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.Pixmap
(Object properties)
Create a new Gdk.Pixmap
Create a new Gdk.Pixmap
|
||
Create a new Gdk.Pixmap
Create a new Gdk.Pixmap
|
||
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.
Create a pixmap from a XPM file using a particular colormap.
|
Gdk.Pixmap | |
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.
Create a pixmap from data in XPM format using a particular colormap.
|
Gdk.Pixmap | |
Gdk.Pixmap.create_from_data
(Drawable drawable, String data, Number width, Number height, Number depth, Color fg, Color bg)
:
Gdk.Pixmap
|
Gdk.Pixmap | |
Gdk.Pixmap.create_from_xpm
(Drawable drawable, Object out_values, Color transparent_color, String filename)
:
Gdk.Pixmap
Create a pixmap from a XPM file.
Create a pixmap from a XPM file.
|
Gdk.Pixmap | |
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.
Create a pixmap from data in XPM format.
|
Gdk.Pixmap | |
Wraps a native window for the default display in a GdkPixmap.
Wraps a native window for the default display in a GdkPixmap. This may fail if the pixmap has been destroyed. For example in the X backend, a native pixmap handle is an Xlib
|
Gdk.Pixmap | |
Wraps a native pixmap in a GdkPixmap.
Wraps a native pixmap in a GdkPixmap. This may fail if the pixmap has been destroyed. For example in the X backend, a native pixmap handle is an Xlib
|
Gdk.Pixmap | |
Gdk.Pixmap.foreign_new_for_screen
(Screen screen, Number anid, Number width, Number height, Number depth)
:
Gdk.Pixmap
Wraps a native pixmap in a GdkPixmap.
Wraps a native pixmap in a GdkPixmap. This may fail if the pixmap has been destroyed. For example in the X backend, a native pixmap handle is an Xlib
|
Gdk.Pixmap | |
Looks up the GdkPixmap that wraps the given native pixmap handle.
Looks up the GdkPixmap that wraps the given native pixmap handle. For example in the X backend, a native pixmap handle is an Xlib
|
Gdk.Pixmap | |
Looks up the GdkPixmap that wraps the given native pixmap handle.
Looks up the GdkPixmap that wraps the given native pixmap handle. For example in the X backend, a native pixmap handle is an Xlib
|
Gdk.Pixmap | |
copy_to_image
(Image image, Number src_x, Number src_y, Number dest_x, Number dest_y, Number width, Number height)
:
Gdk.Image
Copies a portion of drawable into the client side image structure and copies into that.
Copies a portion of drawable into the client side image structure and copies into that. See gdk_drawable_get_image() for further details. of drawable
|
Gdk.Drawable | |
get_clip_region
()
:
Gdk.Region
Computes the region of a drawable that potentially can be written to by drawing primitives.
Computes the region of a drawable that potentially can be written to by drawing primitives. This region will not take into account the clip region for the GC, and may also not take into account other factors such as if the window is obscured by other windows, but no area outside of this region will be affected by drawing primitives. when you are done.
|
Gdk.Drawable | |
get_colormap
()
:
Gdk.Colormap
Gets the colormap for drawable, if one is set; returns NULL otherwise.
Gets the colormap for drawable, if one is set; returns NULL otherwise.
|
Gdk.Drawable | |
Gdk.Drawable | ||
get_depth
()
:
Number
Obtains the bit depth of the drawable, that is, the number of bits that make up a pixel in the drawable's visual.
Obtains the bit depth of the drawable, that is, the number of bits that make up a pixel in the drawable's visual. Examples are 8 bits per pixel, 24 bits per pixel, etc.
|
Gdk.Drawable | |
get_display
()
:
Gdk.Display
Gets the GdkDisplay associated with a GdkDrawable.
Gets the GdkDisplay associated with a GdkDrawable.
|
Gdk.Drawable | |
A GdkImage stores client-side image data (pixels).
A GdkImage stores client-side image data (pixels). In contrast, GdkPixmap and GdkWindow are server-side objects. gdk_drawable_get_image() obtains the pixels from a server-side drawable as a client-side GdkImage. The format of a GdkImage depends on the GdkVisual of the current display, which makes manipulating GdkImage extremely difficult; therefore, in most cases you should use gdk_pixbuf_get_from_drawable() instead of this lower-level function. A GdkPixbuf contains image data in a canonicalized RGB format, rather than a display-dependent format. Of course, there's a convenience vs. speed tradeoff here, so you'll want to think about what makes sense for your application. obtain as an image. You would usually copy image data to the client side if you intend to examine the values of individual pixels, for example to darken an image or add a red tint. It would be prohibitively slow to make a round-trip request to the windowing system for each pixel, so instead you get all of them at once, modify them, then copy them all back at once. If the X server or other windowing system backend is on the local machine, this function may use shared memory to avoid copying the image data. If the source drawable is a GdkWindow and partially offscreen or obscured, then the obscured portions of the returned image will contain undefined data.
|
Gdk.Drawable | |
get_screen
()
:
Gdk.Screen
Gets the GdkScreen associated with a GdkDrawable.
Gets the GdkScreen associated with a GdkDrawable.
|
Gdk.Drawable | |
get_size
()
:
Object
Fills *width and *height with the size of drawable.
|
Gdk.Drawable | |
get_visible_region
()
:
Gdk.Region
Computes the region of a drawable that is potentially visible.
Computes the region of a drawable that is potentially visible. This does not necessarily take into account if the window is obscured by other windows, but no area outside of this region is visible. when you are done.
|
Gdk.Drawable | |
get_visual
()
:
Gdk.Visual
Gets the GdkVisual describing the pixel format of drawable.
Gets the GdkVisual describing the pixel format of drawable.
|
Gdk.Drawable | |
set_colormap
(Colormap colormap)
:
none
Sets the colormap associated with drawable.
Sets the colormap associated with drawable. Normally this will happen automatically when the drawable is created; you only need to use this function if the drawable-creating function did not have a way to determine the colormap, and you then use drawable operations that require a colormap. The colormap for all drawables and graphics contexts you intend to use together should match. i.e. when using a GdkGC to draw to a drawable, or copying one drawable to another, the colormaps should match.
|
Gdk.Drawable | |
This function is equivalent to g_object_set_data(), the GObject variant should be used instead.
|
Gdk.Drawable |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Sets the given pixmap as the source pattern for the Cairo context.
|
Gdk
Method |
Gets the offscreen pixmap that an offscreen window renders into.
|
Gdk
Method |
Gdk.pixbuf_render_pixmap_and_mask
(Pixbuf pixbuf, 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 thresholded alpha mask to them.
|
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.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_tile
(Pixmap tile)
:
none
Set a tile pixmap for a graphics context.
|
Gdk.GC
Method |
set_stipple
(Pixmap stipple)
:
none
Set the stipple bitmap for a graphics context.
|
Gdk.Window
Method |
Sets the background pixmap of window.
|
Gdk.Window
Method |
Sets the icon of window as a pixmap or window.
|
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.CList
Method |
|
Gtk.CList
Method |
|
Gtk.CList
Method |
set_pixtext
(Number row, Number column, String text, Number spacing, Pixmap pixmap, Bitmap mask)
:
none
|
Gtk.CList
Method |
get_pixtext
(Number row, Number column, Array text, String spacing, Pixmap pixmap, Bitmap mask)
:
Number
|
Gtk.CTree
Method |
insert_node
(CTreeNode parent, CTreeNode sibling, String text, Number spacing, Pixmap pixmap_closed, Bitmap mask_closed, Pixmap pixmap_opened, Bitmap mask_opened, Boolean is_leaf, Boolean expanded)
:
Gtk.CTreeNode
|
Gtk.CTree
Method |
|
Gtk.CTree
Method |
node_set_pixtext
(CTreeNode node, Number column, String text, Number spacing, Pixmap pixmap, Bitmap mask)
:
none
|
Gtk.CTree
Method |
set_node_info
(CTreeNode node, String text, Number spacing, Pixmap pixmap_closed, Bitmap mask_closed, Pixmap pixmap_opened, Bitmap mask_opened, Boolean is_leaf, Boolean expanded)
:
none
|
Gtk.CTree
Method |
|
Gtk.CTree
Method |
node_get_pixtext
(CTreeNode node, Number column, Array text, String spacing, Pixmap pixmap, Bitmap mask)
:
Boolean
|
Gtk.CTree
Method |
get_node_info
(CTreeNode node, Array text, String spacing, Pixmap pixmap_closed, Bitmap mask_closed, Pixmap pixmap_opened, Bitmap mask_opened, Object out_values)
:
Boolean
|
Gtk.IconView
Method |
create_drag_icon
(TreePath path)
:
Gdk.Pixmap
Creates a GdkPixmap representation of the item at path.
|
Gtk.Image
Property |
mask : Gdk.Pixmap
|
Gtk.Image
Property |
pixmap : Gdk.Pixmap
|
Gtk.Image
Method |
Create a new Gtk.Image
|
Gtk.Image
Method |
See gtk_image_new_from_pixmap() for details.
|
Gtk.Image
Method |
get_pixmap
()
:
Object
Gets the pixmap and mask being displayed by the GtkImage.
|
Gtk.OffscreenWindow
Method |
get_pixmap
()
:
Gdk.Pixmap
Retrieves a snapshot of the contained widget in the form of a GdkPixmap.
|
Gtk.Pixmap
Method |
Create a new Gtk.Pixmap
|
Gtk.Pixmap
Method |
|
Gtk.Pixmap
Method |
|
Gtk.TextTag
Property |
background_stipple : Gdk.Pixmap
|
Gtk.TextTag
Property |
foreground_stipple : Gdk.Pixmap
|
Gtk.TreeView
Method |
create_row_drag_icon
(TreePath path)
:
Gdk.Pixmap
Creates a GdkPixmap representation of the row at path.
|
Gtk.Widget
Method |
get_snapshot
(Rectangle clip_rect)
:
Gdk.Pixmap
Create a GdkPixmap of the contents of the widget and its children.
|
PanelApplet.PanelApplet
Signal |
|
PanelApplet.PanelApplet
Method |
|