#include <uborder.hpp>
Inheritance diagram for ubit::UBorder:
Public Types | |
NONE | |
LINE | |
SHADOW | |
ETCHED | |
BIGSHADOW | |
enum | { NONE, LINE, SHADOW, ETCHED, BIGSHADOW } |
Public Member Functions | |
UBorder (int decoration=NONE) | |
UBorder (int decoration, const UColor &color, const UColor &bgcolor, int hmargins=1, int vmargins=1, UMask=0) | |
creates a new Border with custom properties. | |
UBorder (const UBorder &) | |
creates a new Border that is a copy of another Border. | |
UBorder (const UArgs &children) | |
creates a border that contains widgets. | |
UBorder & | operator= (const UBorder &) |
UBorder & | addlist (const UArgs &) |
UBorder & | addlist (bool is_overlaid, const UArgs &) |
int | getDecoration () const |
UBorder & | setDecoration (int decoration) |
const UColor & | getColor () const |
UBorder & | setColor (const UColor &) |
changes foreground color; beware that the color arg is NOT duplicated and can't be freed. | |
const UColor & | getBgcolor () const |
UBorder & | setBgcolor (const UColor &) |
changes background color; beware that the color arg is NOT duplicated and can't be freed. | |
int | getThickness () const |
UBorder & | setThickness (int) |
const UMargins & | getMargins () const |
UBorder & | setMargins (const UMargins &) |
virtual UGroup * | getSubGroup () |
[Impl] returns the children of an active UBorder. | |
bool | isSuperimposed () const |
returns true if the border is superimposed. | |
virtual void | update () |
updates parents graphics. | |
virtual void | putProp (UContext *, UControl *) |
[impl] changes corresponding value in the UContext | |
virtual void | paint (UGraph &, const UContext &, const URegion &r) const |
virtual void | getSize (const UContext &, UMargins &) const |
Static Public Attributes | |
static UBorder | none |
static UBorder | empty |
static UBorder | line |
static UBorder | shadowIn |
static UBorder | shadowOut |
static UBorder | etchedIn |
static UBorder | etchedOut |
predefined borders. |
ubit::UBorder::UBorder | ( | int | decoration, | |
const UColor & | color, | |||
const UColor & | bgcolor, | |||
int | hmargins = 1 , |
|||
int | vmargins = 1 , |
|||
UMask | = 0 | |||
) |
creates a new Border with custom properties.
att: 6aug6: hmargins et vmargins inverses. arguments: