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 UColor * getColor () const
const class UIma * getIma () const
const class UHalign * getHalign () const
const class UValign * getValign () const
virtual void update ()
 updates graphics.

virtual void putProp (class UContext *, class UCtrl *)
 [impl] changes corresponding value in the UContext


Friends

UBackground & ubackground (const UColor &bgcolor)
UBackground & ubackground (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 Tue Jul 27 18:01:55 2004 for Ubit[Eric.Lecolinet@enst.fr] by doxygen 1.3.7