Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

UBorder Class Reference

Border decoration Property. More...

#include <uborder.hpp>

Inheritance diagram for UBorder:

UProp UBrick List of all members.

Public Types

enum  { NONE = 0, FLAT, SHADOW, ETCHED }

Public Member Functions

 UBorder (int decoration=-ETCHED)
 UBorder (int decoration, class UColor &color, class UColor &bgcolor, int top_bottom_margin=1, int left_right_margin=1, u_modes=0)
 creates a new Border with custom properties
 UBorder (const UBorder &)
 creates a new Border that is a copy of another Border.
 UBorder (bool overlaid, const UArgs &)
 creates an active border (used to create scrollpanes, etc).
UBorderoperator= (const UBorder &)
bool isOverlaid () const
UColorbgcolor ()
UColorcolor ()
 returns internal fields
const UColorgetBgcolor () const
const UColorgetColor () const
int getDecoration () const
void setDecoration (int decoration)
const UMarginsgetMargins () const
void setMargins (const class UMargins &)
virtual class UGroupgetSubGroup ()
 returns the children of an active UBorder.
virtual void update ()
 updates graphics.

Static Public Attributes

static UBorder none
static UBorder empty
static UBorder flat
static UBorder shadowIn
static UBorder shadowOut
static UBorder etchedIn
static UBorder etchedOut
 predefined borders.

Detailed Description

Border decoration Property.


Constructor & Destructor Documentation

UBorder::UBorder int  decoration,
class UColor color,
class UColor bgcolor,
int  top_bottom_margin = 1,
int  left_right_margin = 1,
u_modes  = 0
 

creates a new Border with custom properties

arguments:

  • 'decoration' is one of NONE, +/-SHADOW, +/-ETCHED, +/-FLAT (a negative value sets an INwards shadow, a positive value an OUTwards shadow)
  • 'color' and 'bgcolor' are the colors of the shadows. They can be set to UColor::inherit to inherit colors from their parents (ie. the boxes that contains them). They can't be destroyed by 'delete' (automatical deletion when the UBorder is destroyed and these objects are not pointed by any uptr)


Member Function Documentation

UColor& UBorder::color  ) 
 

returns internal fields

these objects can be shared by other objects and their value can be changed by clients. They are automatically deleted when the UBorder is deleted if they dont have other parents and are not pointed by any uptr<>


The documentation for this class was generated from the following files:
Generated on Thu Mar 3 06:33:21 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.1