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

UBackground Class Reference

Background property. More...

#include <uprop.hpp>

Inheritance diagram for UBackground:

UProp UBrick List of all members.

Public Member Functions

 UBackground (const UIma &bgima)
 UBackground (const UColor &bgcolor)
void set (const UColor &bgcolor)
 sets an uniform background color.
void set (const UIma &bgima)
 sets a tiled background from an image.
void set (const UIma &bgima, const UColor &bgcolor)
 sets a tiled background with a background color.
void setLayout (const UHalign &, const UValign &)
 if null, the bg image is tiled in this direction if &UHalign::center, it is centered in the horizontal direction, etc.
const class UColorgetColor () const
const class UImagetIma () const
const class UHaligngetHalign () const
const class UValigngetValign () const
virtual void update ()
 updates graphics.
virtual void putProp (class UContext *, class UCtrl *)
 [impl] changes corresponding value in the UContext

Friends

UBackgroundubackground (const UColor &bgcolor)
UBackgroundubackground (const UIma &bgima)

Detailed Description

Background property.

See also: UBgcolor


Member Function Documentation

void UBackground::set const UIma bgima,
const UColor bgcolor
 

sets a tiled background with a background color.

Note: useful if the image is transparent or if the image is centered instead of being tiled

void UBackground::set const UIma bgima  ) 
 

sets a tiled background from an image.

Note: the background image can be a transparent UPix


The documentation for this class was generated from the following files:
Generated on Thu May 19 12:40:32 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.2