#include <uprop.hpp>
Inheritance diagram for ubit::UBackground:
Public Member Functions | |
UBackground () | |
creates an empty background prop. | |
UBackground (const UBackground &) | |
creates and initializes a background prop. | |
UBackground (UColor &) | |
creates a background prop with a solid color (which is not copied and should not be destroyed). | |
UBackground (UIma &) | |
creates a background prop with an image (which is not copied and should not be destroyed). | |
UBackground & | operator= (const UBackground &) |
bool | operator== (const UBackground &) |
virtual UBackground & | setColor (UColor &) |
specify a solid color (which is not copied and should not be destroyed). | |
virtual UBackground & | setIma (UIma &, bool tiling=true) |
specify a background image (which is not copied and should not be destroyed). | |
virtual UBackground & | setTiling (bool) |
sets tiling on or off in each direction. | |
operator UColor & () | |
returns the current color if any; UColor::white otherwise. | |
const UColor * | getColor () const |
UColor * | getColor () |
returns the current color if any; null otherwise. | |
const UIma * | getIma () const |
UIma * | getIma () |
returns the current image if any; null otherwise. | |
bool | isTiled () const |
returns true if the image is tiled. | |
virtual void | update () |
updates parents graphics. | |
virtual void | putProp (UContext *, UControl *) |
[impl] changes corresponding value in the UContext | |
void | set (UColor &c) |
obsolete. | |
Static Public Attributes | |
static UBackground | none |
static UBackground | inherit |
static UBackground | metal |
static UBackground | velin |
static UBackground | white |
static UBackground | black |
static UBackground | grey |
static UBackground | lightgrey |
static UBackground | darkgrey |
static UBackground | navy |
static UBackground | lightblue |
static UBackground | blue |
static UBackground | red |
static UBackground | green |
static UBackground | yellow |
static UBackground | orange |
static UBackground | wheat |
static UBackground | teal |
predefined background constants. | |
Friends | |
UBackground & | ubackground (UBackground &b) |
UBackground & | ubackground (UColor &c) |
UBackground & | ubackground (UIma &i) |
shortcuts for *new UBackground(). | |
UBackground & | ubgcolor (int r, int g, int b) |
obsolete. |
this property specifies the background of a UBox container. It is inherited by children, except if they have their own UBackground property, or if their UStyle specifies another UBackground.
This property can be added to the attribute list of one or several containers that derive from UBox. It can also be inserted in the beginning of their child list (see UProp).
Note: UBgcolor is an obsolete synonym for UBackground