2007-12-30 17:41:49 +01:00
|
|
|
#ifndef __GPICTUREBOX_H
|
|
|
|
#define __GPICTUREBOX_H
|
|
|
|
|
|
|
|
class gPictureBox : public gControl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
gPictureBox(gContainer *parent);
|
|
|
|
~gPictureBox();
|
|
|
|
|
|
|
|
long foreground();
|
|
|
|
long background();
|
|
|
|
int alignment();
|
|
|
|
int getBorder() { return getFrameBorder(); }
|
|
|
|
bool stretch();
|
|
|
|
gPicture* picture() { return _picture; }
|
2008-05-14 14:44:23 +02:00
|
|
|
bool isAutoResize() { return _autoresize; }
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
void setForeground(long vl);
|
|
|
|
void setBackground(long vl);
|
|
|
|
void setAlignment(int vl);
|
|
|
|
void setBorder(int vl) { setFrameBorder(vl); }
|
|
|
|
void setStretch(bool vl);
|
|
|
|
void setPicture(gPicture *pic);
|
2008-05-14 14:44:23 +02:00
|
|
|
void setAutoResize(bool);
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
//"Methods"
|
|
|
|
void resize(long w,long h);
|
|
|
|
|
|
|
|
//"Private"
|
|
|
|
void redraw();
|
|
|
|
gPicture *_picture;
|
2008-05-14 14:44:23 +02:00
|
|
|
bool _autoresize;
|
2007-12-30 17:41:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|