|
ubit
|
Length of positions (UPos), sizes (USize) and padding (UPadding) More...
#include <ulength.hpp>
Classes | |
| struct | Modes |
Public Member Functions | |
| ULength (float value=0.0) | |
| creates a new length with the specified value, unit = PX and modes = 0. | |
| ULength (float value, UUnit u) | |
| creates a new length with the specified value and unit (modes = 0). | |
| ULength (float value, UUnit u, Modes m) | |
| creates a new length with the specified value, unit and modes. | |
| ULength (const UStr &text_spec) | |
| creates a new length with a value and a unit taken from a textual specification (modes = NONE). | |
| bool | operator== (const ULength &) const |
| bool | operator!= (const ULength &) const |
| operator float () const | |
| float | getValue () const |
| UUnit | getUnit () const |
| Modes | getModes () const |
| ULength & | setValue (float value) |
| ULength & | setUnit (UUnit u) |
| ULength & | setUnit (const char *unit) |
| ULength & | setModes (Modes m) |
| ULength & | set (const UStr &text_spec) |
| changes the value and the unit from a textual specification (modes are set to NONE). | |
| UStr | toString () const |
| float | toPixels (UDisp *, const UFontDesc &, float view_len, float parview_len) const |
Public Attributes | |
| float | val |
| UUnit | unit |
| Modes | modes |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const ULength &l) |
| prints out this ULength on an output stream. | |
| ULength | operator| (float len, UUnit u) |
| | makes its possible to specify the Unit of a Length in simple way (see exemples). More... | |
| ULength | operator| (ULength len, UUnit u) |
| ULength | operator| (ULength len, ULength::Modes m) |
| makes its possible to specify the Unit of a Length in simple way (see exemples).
Exemples:
1.8.12