#include <uprop.hpp>
Inheritance diagram for UBackground:
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) |
See also: UBgcolor
|
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 |
|
sets a tiled background from an image. Note: the background image can be a transparent UPix |