ubit::UHalign Class Reference

Horizontal Layout policy of a UBox. More...

#include <uboxLayout.hpp>

Inheritance diagram for ubit::UHalign:

ubit::UProp ubit::UBrick ubit::UObject List of all members.

Public Types

 INHERIT
 LEFT
 RIGHT
 FLEX
 CENTER
enum  {
  INHERIT, LEFT, RIGHT, FLEX,
  CENTER
}

Public Member Functions

 UHalign (const UHalign &)
UHalignoperator= (const UHalign &)
bool operator== (const UHalign &v) const
virtual void update ()
 updates parents graphics.
virtual void putProp (UContext *, UControl *)
 [impl] changes corresponding value in the UContext

Static Public Attributes

static UHalign left
static UHalign right
static UHalign flex
static UHalign center

Friends

UHalignuhalign (const UHalign &)
UHalignuleft ()
UHalignuright ()
 children following uleft() or uright() are laid out sequentially.
UHalignuhcenter ()
 children following uhcenter() are centered.
UHalignuhflex ()
 children following uhflex() have a "flexible" horizontal layout.

Detailed Description

Horizontal Layout policy of a UBox.

specify the horizontal layout of the children that *follow* this brick. Possible values: UHalign::left, right, center, flex. Shortcut functions uleft(), uright(), uhcenter(), uhflex() can be used to improve source code readability.

Example:

    uhbox( uleft() + ch1 + ch2 + uvflex() + ch3 + ch4 + uright() + ch5 )
 
uleft() specifies the layout of ch1 and ch2, uhflex() the layout of ch3 and ch4 and uright() the layout of ch5.


Friends And Related Function Documentation

UHalign& uhcenter (  )  [friend]

children following uhcenter() are centered.

uhcenter has no effect on children width (in contrast with uhflex()). uhcenter has the same effect as uleft if uhflex() appears in the same child list

UHalign& uhflex (  )  [friend]

children following uhflex() have a "flexible" horizontal layout.

these children will occupy the remaining space and will be resized (in the horizontal direction) when their parents are resized. These rules dont apply for children that are NOT resizable (see UWidth::resizable())

UHalign& uright (  )  [friend]

children following uleft() or uright() are laid out sequentially.

..


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:44 2007 for Ubit by  doxygen 1.4.7