vdk 2.4.0
Public Member Functions | List of all members
VDKPixmap Class Reference

Provides a pixmap widget. More...

#include <pixmaps.h>

Inheritance diagram for VDKPixmap:
Inheritance graph
[legend]
Collaboration diagram for VDKPixmap:
Collaboration graph
[legend]

Public Member Functions

 VDKPixmap (VDKForm *owner, char *pixfile, char *tip=NULL, bool sensitive=false)
 
 VDKPixmap (VDKForm *owner, char **pixdata, char *tip=NULL, bool sensitive=false)
 
virtual ~VDKPixmap ()
 
void Clear ()
 
int Width ()
 
VDKRawPixmapSetPixmap ()
 
VDKRawPixmapSetPixmap (char *file)
 
VDKRawPixmapSetPixmap (VDKRawPixmap *newpix)
 
VDKRawPixmapSetPixmap (char **pixdata)
 
- Public Member Functions inherited from VDKObject
VDKRgb GetBackground (GtkStateType state=GTK_STATE_NORMAL)
 
VDKRgb GetForeground (GtkStateType state=GTK_STATE_NORMAL)
 
 VDKObject (VDKForm *owner=NULL)
 
 VDKObject (VDKForm *owner, GtkWidget *widget)
 
virtual ~VDKObject ()
 
bool Destroy ()
 
virtual int isA ()
 
VDKFormOwner ()
 
virtual GtkWidget * Widget ()
 
GtkWidget * ConnectingWidget ()
 
GtkWidget * WrappedWidget ()
 
virtual void SetFont (VDKFont *f)
 
VDKFontGetFont ()
 
void SetVisible (bool visible)
 
bool GetVisible ()
 
void SetCursor (VDKCursorType)
 
VDKCursorType GetCursor ()
 
virtual void SetForeground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
 
virtual void SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL)
 
void SetSize (int w, int h)
 
void SetUsize (VDKPoint s)
 
virtual void SetTip (char *)
 
virtual void Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0)
 
ItemListItems ()
 
void Draw (GdkRectangle *area=NULL)
 
virtual void Setup ()
 
void SignalEmit (int signal)
 
void SignalEmit (char *sig)
 
void SignalEmitParent (int signal)
 
void SignalEmitParent (char *sig)
 
void GrabFocus ()
 
VDKObjectParent (VDKObject *p=NULL)
 
int SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false)
 
int SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false)
 
bool SignalDisconnect (int connection)
 
int EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false)
 
int EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false)
 
bool EventDisconnect (int connection)
 

Additional Inherited Members

- Public Attributes inherited from VDKObject
VDKReadWriteValueProp< VDKObject, VDKRgbNormalBackground
 
VDKReadWriteValueProp< VDKObject, VDKFont * > Font
 
SizeObjectProp Usize
 
VDKReadWriteValueProp< VDKObject, bool > Enabled
 
VDKReadWriteValueProp< VDKObject, VDKCursorType > Cursor
 
VDKReadWriteValueProp< VDKObject, bool > Visible
 
- Protected Attributes inherited from VDKObject
VDKObjectSignal s_clicked
 
GtkWidget * widget
 
GtkWidget * sigwid
 
VDKObjectparent
 

Detailed Description

Provides a pixmap widget.

EVENTS
button_press_event received whenever user clicks on pixmap
TIP
Constructing with <pixfile> or <pixdata> set to NULL will make only the inner event box. Thus allowing to construct an empty pixmap that can be later initialized with SetPixmap().

Constructor & Destructor Documentation

◆ VDKPixmap() [1/2]

VDKPixmap::VDKPixmap ( VDKForm owner,
char *  pixfile,
char *  tip = NULL,
bool  sensitive = false 
)

Constructor

Parameters
owner
pixfile
tip
sensitiveif true pixmap will be embedded into an eventbox so will receive signals

◆ VDKPixmap() [2/2]

VDKPixmap::VDKPixmap ( VDKForm owner,
char **  pixdata,
char *  tip = NULL,
bool  sensitive = false 
)

Constructor

Parameters
owner
pixdata
tip
sensitiveif true pixmap will be embedded into an eventbox so will receive signals

◆ ~VDKPixmap()

VDKPixmap::~VDKPixmap ( )
virtual

Destructor

Member Function Documentation

◆ Clear()

void VDKPixmap::Clear ( )

Clear the pixmap

◆ SetPixmap() [1/4]

VDKRawPixmap* VDKPixmap::SetPixmap ( )
inline

Return pixmap height

Returns the raw pixmap contained into VDKPixmap

◆ SetPixmap() [2/4]

VDKRawPixmap * VDKPixmap::SetPixmap ( char *  file)

Change the raw pixmap contained into VDKPixmap

Parameters
filepixmap file

◆ SetPixmap() [3/4]

VDKRawPixmap * VDKPixmap::SetPixmap ( VDKRawPixmap newpix)

Change the raw pixmap contained into VDKPixmap

Parameters
newpixnew pixmap

◆ SetPixmap() [4/4]

VDKRawPixmap * VDKPixmap::SetPixmap ( char **  pixdata)

Change the raw pixmap contained into VDKPixmap

Parameters
pixdatapixmap data

◆ Width()

int VDKPixmap::Width ( )
inline

Return pixmap width


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