Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SimpleGUI by
SpinnerWidget Class Reference
A spinner widget shows up and down arrows to set a value It automatically sizes itself to fit the screen dimensions when created. More...
#include <SpinnerWidget.h>
Inherits ContainerWidget.
Public Member Functions | |
virtual void | setSize (int width, int height) |
Overrides. | |
virtual void | setOffset (int x, int y) |
const Rectangle &Widget::outer() { return _outer; } | |
virtual void | setPadding (int pixels) |
Set the amount of padding between the border and a widget edge. | |
virtual void | draw () |
Cause the widget to redraw itself if is is dirty or damaged. | |
void | dirty () |
Mark the widget as needing to be redrawn. | |
void | damage () |
Mark the widget as having changed dimensions or location. | |
GraphicsDisplay * | display () |
Convenience method. | |
Protected Member Functions | |
virtual void | _dirty () |
Overrides. | |
virtual void | _adjust () |
Override. | |
virtual void | _draw () |
Override to draw all the children. | |
bool | _isEventTarget (Event e) |
Methods to help with event handling. |
Detailed Description
A spinner widget shows up and down arrows to set a value It automatically sizes itself to fit the screen dimensions when created.
Definition at line 13 of file SpinnerWidget.h.
Member Function Documentation
void _adjust | ( | ) | [protected, virtual, inherited] |
void _dirty | ( | ) | [protected, virtual] |
void _draw | ( | ) | [protected, virtual, inherited] |
Override to draw all the children.
Definition at line 46 of file Window.cpp.
bool _isEventTarget | ( | Event | e ) | [protected, inherited] |
Methods to help with event handling.
Definition at line 188 of file Widget.cpp.
void damage | ( | ) | [inherited] |
Mark the widget as having changed dimensions or location.
Definition at line 253 of file Widget.cpp.
void dirty | ( | ) | [inherited] |
Mark the widget as needing to be redrawn.
Definition at line 235 of file Widget.cpp.
GraphicsDisplay * display | ( | ) | [inherited] |
Convenience method.
Definition at line 274 of file Widget.cpp.
void draw | ( | ) | [virtual, inherited] |
Cause the widget to redraw itself if is is dirty or damaged.
Definition at line 144 of file Widget.cpp.
void setOffset | ( | int | x, |
int | y | ||
) | [virtual, inherited] |
const Rectangle &Widget::outer() { return _outer; }
const Rectangle &Widget::inner() { return _inner; }
Definition at line 89 of file Widget.cpp.
void setPadding | ( | int | pixels ) | [virtual, inherited] |
Set the amount of padding between the border and a widget edge.
Definition at line 127 of file Widget.cpp.
void setSize | ( | int | width, |
int | height | ||
) | [virtual] |
Generated on Tue Jul 12 2022 22:27:14 by
