#include <uprop.hpp>
Inheritance diagram for ubit::UAlpha:
Public Member Functions | |
UAlpha (float=1.0) | |
creates an alpha blending property. | |
operator float () const | |
type conversion: returns value which is in range [0., 1.]. | |
UAlpha & | operator= (float v) |
UAlpha & | operator= (const UFloat &v) |
UAlpha & | operator= (const UAlpha &v) |
virtual UAlpha & | set (float) |
changes alpha value. must be in range [0., 1.]. | |
bool | operator== (float v) const |
bool | operator== (const UFloat &v) const |
bool | operator== (const UAlpha &v) const |
virtual void | update () |
updates parents graphics. | |
virtual void | putProp (UContext *, UControl *) |
[impl] changes corresponding value in the UContext | |
Friends | |
UAlpha & | ualpha (float v=1.0) |
shortcut for *new UAlpha(value). |
value must be in range [0.0, 1.0]. A value of 1.0 makes the perent widget opaque, 0.0 makes it fully transparent
ubit::UAlpha::UAlpha | ( | float | = 1.0 |
) |
creates an alpha blending property.
specifies if the widget (UBox and subclass) that contains this prop is opaque (value = 1.0), fully stransparent (value = 0.0) or translucent (value in range ]0.0, 1.0[)