|
| RuleLine (Direction direction, double length, double width, const Color color, uiLayoutFlags_t layoutFlags=0) |
| Constructor. More...
|
|
virtual | ~RuleLine () |
|
void | AttachView (Display &disp) override |
|
const Color | GetColor () const |
|
Direction | GetDirection () const |
|
double | GetLength () const |
|
double | GetWidth () const |
|
Vec3 | Measure () override |
| Calculate the size of the component. More...
|
|
void | SetColor (const Color color) |
| Set the color of the line. More...
|
|
void | SetDirection (Direction direction) |
| Sets the direction of the line. More...
|
|
void | SetLength (double length) |
| Sets the length of the line. More...
|
|
void | SetWidth (double width) |
| Sets the width (thickness) of the line. More...
|
|
| UiViewModel (uiLayoutFlags_t layoutFlags=0) |
|
virtual | ~UiViewModel () |
|
virtual void | DropFocus () |
| Force this widget to give up focus, if it is currently focused. More...
|
|
Vec2 | GetAlignedPos (const Vec2 &pos, double w, double h) const |
| Retrieve an arbitrary position adjusted by the current alignment. More...
|
|
Vec2 | GetAlignedPos (double w, double h) const |
| Retrieve the position adjusted by the current alignment. More...
|
|
Alignment | GetAlignment () const |
| Retrieve the alignment of the component. More...
|
|
focusRelinquishedSignal_t & | GetFocusRelinquishedSignal () |
|
focusRequestedSignal_t & | GetFocusRequestedSignal () |
|
uiLayoutFlags_t | GetLayoutFlags () const |
| Retrieve the layout flags. More...
|
|
const Vec2 & | GetPos () const |
| Get the position of the component. More...
|
|
const Vec2 & | GetTranslation () const |
| Retrieves the position translation. More...
|
|
bool | IsFocused () const |
| Check if this widget currently has input focus. More...
|
|
uiLayoutFlags_t | IsLayoutFloating () const |
|
uiLayoutFlags_t | IsLayoutUnscaled () const |
|
virtual bool | OnAction () |
|
virtual bool | OnMouseMoved (const Vec2 &) |
|
virtual bool | OnMousePressed (const Control::Mouse::Click &) |
|
virtual bool | OnMouseReleased (const Control::Mouse::Click &) |
|
virtual bool | OnMouseScrolled (const Control::Mouse::Scroll &) |
|
virtual bool | OnNavigate (const Control::Nav &) |
|
void | RequestFocus () |
| Attempt to hand over the input focus to this widget. More...
|
|
void | SetAlignment (Alignment alignment) |
| Set the alignment of the component. More...
|
|
void | SetPos (const Vec2 &pos) |
| Set the position of the component. More...
|
|
void | SetPos (double x, double y) |
| Convenience function for SetPos(const Vec2&). More...
|
|
void | SetTranslation (const Vec2 &translation) |
| Sets the position translation. More...
|
|
void | SetTranslation (double x, double y) |
| Convenience function for SetTranslation(const Vec2&). More...
|
|
virtual bool | TryFocus (const Control::Nav &nav=Control::Nav::NEUTRAL) |
| Attempts to give this widget focus. More...
|
|
| ViewModel () |
|
virtual | ~ViewModel () |
|
View * | GetView () const |
|
void | PrepareRender () |
|
void | Render () |
|
void | SetView (std::unique_ptr< View > &&view) |
|
A horizontal or vertical line.
Unlike a FillBox, this line is guaranteed to be at least one pixel in width.
- Author
- Michael Imamura