|
| virtual void | setEnabled (bool enabled) |
| | Sets whether this component is enabled.
|
| |
| virtual bool | isEnabled () |
| | Checks whether this component is enabled.
|
| |
|
virtual void | setFocused (bool focused) |
| |
| virtual bool | isFocused () |
| | Checks whether this component has focus.
|
| |
| virtual Color | getBackgroundColor () |
| | Gets the background color when enabled but not focused.
|
| |
| virtual Color | getForegroundColor () |
| | Gets the foreground color when enabled but not focused.
|
| |
| virtual Color | getBorderColor () |
| | Gets the border color when enabled but not focused.
|
| |
| virtual Color | getDisabledBackgroundColor () |
| | Gets the background color when disabled.
|
| |
| virtual Color | getDisabledForegroundColor () |
| | Gets the foreground color when disabled.
|
| |
| virtual Color | getDisabledBorderColor () |
| | Gets the border color when disabled.
|
| |
| virtual Color | getFocusedBackgroundColor () |
| | Gets the background color when enabled and focused.
|
| |
| virtual Color | getFocusedForegroundColor () |
| | Gets the foreground color when enabled and focused.
|
| |
| virtual Color | getFocusedBorderColor () |
| | Gets the border color when enabled and focused.
|
| |
|
virtual void | setBackgroundColor (Color color) |
| |
|
virtual void | setForegroundColor (Color color) |
| |
|
virtual void | setBorderColor (Color color) |
| |
|
virtual void | setDisabledBackgroundColor (Color color) |
| |
|
virtual void | setDisabledForegroundColor (Color color) |
| |
|
virtual void | setDisabledBorderColor (Color color) |
| |
|
virtual void | setFocusedBackgroundColor (Color color) |
| |
|
virtual void | setFocusedForegroundColor (Color color) |
| |
|
virtual void | setFocusedBorderColor (Color color) |
| |
| virtual void | paint () |
| | Paints this component.
|
| |
| virtual void | repaint () |
| | Repaints this component.
|
| |
|
unsigned int | getX () |
| |
|
unsigned int | getY () |
| |
|
unsigned int | getWidth () |
| |
|
unsigned int | getHeight () |
| |
|
|
| Component (Adafruit_GFX &graphics, unsigned int x, unsigned int y, unsigned int width, unsigned int height) |
| |
|
virtual Adafruit_GFX & | getGraphics () |
| |
|
virtual Color | getCurrentBackgroundColor () |
| |
|
virtual Color | getCurrentForegroundColor () |
| |
|
virtual Color | getCurrentBorderColor () |
| |
|
| Dimensions (unsigned int x, unsigned int y, unsigned int width, unsigned int height) |
| |
◆ getBackgroundColor()
Gets the background color when enabled but not focused.
- Returns
- The background color.
◆ getBorderColor()
Gets the border color when enabled but not focused.
- Returns
- The border color.
◆ getDisabledBackgroundColor()
| dsgc::Color dsgc::Component::getDisabledBackgroundColor |
( |
| ) |
|
|
virtual |
Gets the background color when disabled.
- Returns
- The background color when disabled.
◆ getDisabledBorderColor()
| dsgc::Color dsgc::Component::getDisabledBorderColor |
( |
| ) |
|
|
virtual |
Gets the border color when disabled.
- Returns
- The border color when disabled.
◆ getDisabledForegroundColor()
| dsgc::Color dsgc::Component::getDisabledForegroundColor |
( |
| ) |
|
|
virtual |
Gets the foreground color when disabled.
- Returns
- The foreground color when disabled.
◆ getFocusedBackgroundColor()
| dsgc::Color dsgc::Component::getFocusedBackgroundColor |
( |
| ) |
|
|
virtual |
Gets the background color when enabled and focused.
- Returns
- The background color when enabled and focused.
◆ getFocusedBorderColor()
Gets the border color when enabled and focused.
- Returns
- The border color when enabled and focused.
◆ getFocusedForegroundColor()
| dsgc::Color dsgc::Component::getFocusedForegroundColor |
( |
| ) |
|
|
virtual |
Gets the foreground color when enabled and focused.
- Returns
- The foreground color when enabled and focused.
◆ getForegroundColor()
Gets the foreground color when enabled but not focused.
- Returns
- The foreground color.
◆ isEnabled()
| bool dsgc::Component::isEnabled |
( |
| ) |
|
|
virtual |
Checks whether this component is enabled.
- Returns
- true if this component is enabled, false otherwise.
◆ isFocused()
| bool dsgc::Component::isFocused |
( |
| ) |
|
|
virtual |
Checks whether this component has focus.
- Returns
- true if this component is focused, false otherwise.
- Note
- Focus is lost when disabled.
◆ paint()
| void dsgc::Component::paint |
( |
| ) |
|
|
virtual |
◆ repaint()
| void dsgc::Component::repaint |
( |
| ) |
|
|
virtual |
Repaints this component.
This function will only paint after paint() is called.
- See also
- paint()
◆ setEnabled()
| void dsgc::Component::setEnabled |
( |
bool | enabled | ) |
|
|
virtual |
Sets whether this component is enabled.
- Parameters
-
| enabled | true to enable this component, false to disable. |
The documentation for this class was generated from the following files: