Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Gdk::Image Class Reference

#include <image.h>

Inheritance diagram for Gdk::Image:


List of all members.

Detailed Description

This represents an area for drawing graphics. It has now been superceded to a large extent by the much more flexible Gdk::Drawable RGB functions. To create an image from part of a Gdk::Window use Gdk::Drawable::get_image().

The image can be manipulated with get_pixel() and put_pixel(), or alternatively by changing the actual pixel data, though manipulating the pixel data requires complicated code to cope with the different formats that may be used. To draw a Gdk::Image in a Gdk::Window or Gdk::Pixmap use Gdk::Drawable::draw_image().

Definition at line 91 of file image.h.

Public Types

typedef GdkImageClass BaseClassType
typedef GdkImage BaseObjectType
typedef Image_Class CppClassType
typedef Image CppObjectType
typedef void(* DestroyNotify )(gpointer data)

Public Member Functions

bool _cpp_destruction_is_in_progress () const
guint16 get_bits_per_pixel () const
guint16 get_bpl () const
guint16 get_bpp () const
ByteOrder get_byte_order () const
Glib::RefPtr< const Colormapget_colormap () const
Glib::RefPtr< Colormapget_colormap ()
void * get_data (const QueryQuark &key)
int get_height () const
ImageType get_image_type () const
const void * get_mem () const
void * get_mem ()
guint32 get_pixel (int x, int y) const
template<class PropertyType>
void get_property (const Glib::ustring &property_name, PropertyType &value) const
 You probably want to use a specific property_*() accessor method instead.
void get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const
 You probably want to use a specific property_*() accessor method instead.
Glib::RefPtr< const Visualget_visual () const
Glib::RefPtr< Visualget_visual ()
int get_width () const
void * get_windowing_data () const
const GdkImage * gobj () const
 Provides access to the underlying C GObject.
GdkImage * gobj ()
 Provides access to the underlying C GObject.
GObject * gobj_copy () const
GdkImage * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
void put_pixel (int x, int y, guint32 pixel)
virtual void reference () const
void remove_data (const QueryQuark &quark)
void set_colormap (const Glib::RefPtr< Colormap > &colormap)
void set_data (const Quark &key, void *data, DestroyNotify notify)
void set_data (const Quark &key, void *data)
template<class PropertyType>
void set_property (const Glib::ustring &property_name, const PropertyType &value)
 You probably want to use a specific property_*() accessor method instead.
void set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value)
 You probably want to use a specific property_*() accessor method instead.
void * steal_data (const QueryQuark &quark)
virtual void unreference () const

Static Public Member Functions

static ObjectBase * _get_current_wrapper (GObject *object)
static Glib::RefPtr< Imagecreate (ImageType type, const Glib::RefPtr< Visual > &visual, int width, int height)
static GType get_base_type () G_GNUC_CONST
static GType get_type () G_GNUC_CONST

Protected Member Functions

void _set_current_wrapper (GObject *object)
virtual void destroy_notify_ ()
 Image (ImageType type, const Glib::RefPtr< Visual > &visual, int width, int height)
 Image (GdkImage *castitem)
 Image (const Glib::ConstructParams &construct_params)
void initialize (GObject *castitem)
bool is_anonymous_custom_ () const
bool is_derived_ () const

Static Protected Member Functions

static void destroy_notify_callback_ (void *data)

Protected Attributes

bool cpp_destruction_in_progress_
const char * custom_type_name_
GObject * gobject_

Package Functions

void add_destroy_notify_callback (void *data, func_destroy_notify func) const
void notify_callbacks ()
 Execute and remove all previously installed callbacks.
void remove_destroy_notify_callback (void *data) const

Package Attributes

 __pad0__:func_destroy_notify func_destroy_notify

Private Member Functions

 Image (const Image &)
Imageoperator= (const Image &)

Static Private Attributes

static CppClassType image_class_


class Glib::GSigConnectionNode
class Glib::Object_Class
class Image_Class

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Glib::Object > wrap (GObject *object, bool take_copy=false)
Glib::RefPtr< Gdk::Imagewrap (GdkImage *object, bool take_copy=false)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index