Class Index | Cross Index | Namespace Index |
A widget displaying a graphical image or icon.
Contained in: Gtk
Derived from:
Gtk::Misc
Derived by:
none
#include <gtk--/pixmap.h>
public function member index: |
||
Pixmap | (); | |
Pixmap | (const nstring& xpmfilename); | |
Pixmap | (const gchar* const* data); | |
Pixmap | (const Gdk_Pixmap& pixmap, const Gdk_Bitmap& mask); | |
void | get | (Gdk_Pixmap& pixmap, Gdk_Bitmap& mask) const; |
GtkPixmap* | gtkobj | (); |
const GtkPixmap* | gtkobj | () const; |
static bool | isA | (Object* object); |
void | set | (const Gdk_Pixmap& pixmap, const Gdk_Bitmap& mask); |
void | set | (const gchar* const* data); |
void | set | (const string& xpmfilename); |
void | set_build_insensitive | (bool build); |
virtual | ~Pixmap | (); |
protected function member index: |
||
void | load_xpm | (); |
virtual void | realize_impl | (); |
void | unset | (); |
The pixels in a Gtk::Pixmap cannot be manipulated by the application
after creation, since under the X Window system the pixel data is stored on
the X server and so is not available to the client application. If you want
to create graphical images which can be manipulated by the application, look
at Gtk::Image and Gdk::RGB.
Note that default constructor puts Pixmap objects to invalid state and you should not show it or add it to containers before you've set() the pixmap and mask for it.
data must live until Pixmap is realized
works only following realization.
Setting this switch will cause Gtk to build a greyed out version on the specified pixmap.