18 #define _uborder_hpp_ 1 19 #include <ubit/uattr.hpp> 20 #include <ubit/ulength.hpp> 31 enum {NONE, LINE, SHADOW, ETCHED};
42 float width = 1,
float height = 1);
60 int getDecoration()
const {
return decoration;}
64 const UColor& getColor()
const {
return *pcolor;}
68 const UColor& getBgcolor()
const {
return *pbgcolor;}
81 UBorder& setOverlaid(
bool state);
97 bool is_overlaid, is_rounded;
102 float width,
float height,
UConst);
103 virtual void constructs(
int decoration,
const UColor& _color,
const UColor& _bgcolor);
120 float width,
float height,
float arc_w,
float arc_h);
122 float getArcWidth()
const {
return arc_w;}
123 float getArcHeight()
const {
return arc_h;}
static UBorder etchedOut
predefined borders.
Definition: uborder.hpp:34
bool isRounded() const
returns true if the border is rounded.
Definition: uborder.hpp:75
Base class for attributes.
Definition: uattr.hpp:97
Definition: uobject.hpp:282
Border that can contain other objects, including elements.
Definition: uborder.hpp:136
virtual void putProp(UUpdateContext *, UElem &)
[impl] changes corresponding value in the UUpdateContext
Definition: uborder.cpp:175
class for drawing on widgets.
Definition: ugraph.hpp:44
2D Rectangle.
Definition: ugeom.hpp:165
Color attribute of an element or a widget.
Definition: ucolor.hpp:73
virtual UElem * getSubGroup() const
[Impl] returns the children.
Definition: uborder.hpp:145
lightweight general purpose container.
Definition: uelem.hpp:44
UBorder & setDecoration(int decoration)
changes the decoration.
Definition: uborder.cpp:129
Box padding.
Definition: ulength.hpp:150
Argument list (for passing arguments to constructor or add functions).
Definition: uargs.hpp:43
UBox Border.
Definition: uborder.hpp:27
bool isOverlaid() const
returns true if the border is overlaid.
Definition: uborder.hpp:78
UBorder & setBgcolor(const UColor &)
changes background color; beware that the color arg is NOT duplicated and can't be freed...
Definition: uborder.cpp:146
Definition: uupdatecontext.hpp:32
Definition: uhardfont.hpp:31
UBorder & setColor(const UColor &)
changes foreground color; beware that the color arg is NOT duplicated and can't be freed...
Definition: uborder.cpp:140
virtual void update()
updates parents graphics.
Definition: uborder.cpp:171
Rounded border.
Definition: uborder.hpp:114
Definition: uborder.cpp:97