JM9 XRCU Board 0.1.3a
Libraries API Reference
Loading...
Searching...
No Matches
dsgc::PortSelector Class Reference
Inheritance diagram for dsgc::PortSelector:
dsgc::Component dsgc::Dimensions

Public Member Functions

 PortSelector (Adafruit_GFX &graphics)
 
virtual void paint () override
 Paints this component.
 
void setEnabled (int port, bool enabled)
 
bool isEnabled (int port)
 
void selectPrevEnabledPort ()
 
void selectNextEnabledPort ()
 
int getSelectedPort ()
 
virtual void setBackgroundColor (Color color) override
 
virtual void setForegroundColor (Color color) override
 
virtual void setBorderColor (Color color) override
 
virtual void setDisabledBackgroundColor (Color color) override
 
virtual void setDisabledForegroundColor (Color color) override
 
virtual void setDisabledBorderColor (Color color) override
 
virtual void setFocusedBackgroundColor (Color color) override
 
virtual void setFocusedForegroundColor (Color color) override
 
virtual void setFocusedBorderColor (Color color) override
 
- Public Member Functions inherited from dsgc::Component
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 repaint ()
 Repaints this component.
 
- Public Member Functions inherited from dsgc::Dimensions
unsigned int getX ()
 
unsigned int getY ()
 
unsigned int getWidth ()
 
unsigned int getHeight ()
 

Additional Inherited Members

- Protected Member Functions inherited from dsgc::Component
 Component (Adafruit_GFX &graphics, unsigned int x, unsigned int y, unsigned int width, unsigned int height)
 
virtual Adafruit_GFXgetGraphics ()
 
virtual Color getCurrentBackgroundColor ()
 
virtual Color getCurrentForegroundColor ()
 
virtual Color getCurrentBorderColor ()
 
- Protected Member Functions inherited from dsgc::Dimensions
 Dimensions (unsigned int x, unsigned int y, unsigned int width, unsigned int height)
 

Member Function Documentation

◆ paint()

void dsgc::PortSelector::paint ( )
overridevirtual

Paints this component.

Override this function to implement the specifics of the actual component. In the overriding function, it is a must to call this parent function.

Reimplemented from dsgc::Component.

◆ setBackgroundColor()

void dsgc::PortSelector::setBackgroundColor ( dsgc::Color color)
overridevirtual

Reimplemented from dsgc::Component.

◆ setBorderColor()

void dsgc::PortSelector::setBorderColor ( dsgc::Color color)
overridevirtual

Reimplemented from dsgc::Component.

◆ setDisabledBackgroundColor()

void dsgc::PortSelector::setDisabledBackgroundColor ( dsgc::Color color)
overridevirtual

Reimplemented from dsgc::Component.

◆ setDisabledBorderColor()

void dsgc::PortSelector::setDisabledBorderColor ( dsgc::Color color)
overridevirtual

Reimplemented from dsgc::Component.

◆ setDisabledForegroundColor()

void dsgc::PortSelector::setDisabledForegroundColor ( dsgc::Color color)
overridevirtual

Reimplemented from dsgc::Component.

◆ setFocusedBackgroundColor()

void dsgc::PortSelector::setFocusedBackgroundColor ( dsgc::Color color)
overridevirtual

Reimplemented from dsgc::Component.

◆ setFocusedBorderColor()

void dsgc::PortSelector::setFocusedBorderColor ( dsgc::Color color)
overridevirtual

Reimplemented from dsgc::Component.

◆ setFocusedForegroundColor()

void dsgc::PortSelector::setFocusedForegroundColor ( dsgc::Color color)
overridevirtual

Reimplemented from dsgc::Component.

◆ setForegroundColor()

void dsgc::PortSelector::setForegroundColor ( dsgc::Color color)
overridevirtual

Reimplemented from dsgc::Component.


The documentation for this class was generated from the following files: