Inherited by PlasticBox, and RoundBox.
The box is drawn by calling drawframe() or drawframe2() if the string starts with a '2'.
The normal up box draws the pattern "AAWWHHTT"
The normal down_ box draws the pattern "WWHHPPAA"
The PUSHED or STATE flags will cause the pattern from down_() to be used instead, allowing you to draw a different bezel when pushed in.
The INVISIBLE flag will not draw the interior, which can make many widgets draw faster and with less blinking.
Public Member Functions | |
void | _draw (const Rectangle &) const |
void | data (const char *d) |
const char * | data () const |
bool | fills_rectangle () const |
FrameBox (const char *name, int dx, int dy, int dw, int dh, const char *pattern, const Box *down=0) | |
void | inset (Rectangle &) const |
bool | is_frame () const |
Protected Attributes | |
const char * | data_ |
const Box * | down_ |
|
Constructor where you give the thickness of the borders used by inset(). |