DUDS
Distributed Update of Data from Something
duds::ui::graphics::EmptyPanel Class Reference

An empty panel; useful for taking up space according to a layout configuration. More...

#include <Panel.hpp>

Inheritance diagram for duds::ui::graphics::EmptyPanel:
Collaboration diagram for duds::ui::graphics::EmptyPanel:

Classes

struct  Token
 

Public Member Functions

virtual const BppImagerender (ImageLocation &, ImageDimensions &, PanelMargins &, int)
 Just returns nullptr. More...
 
- Public Member Functions inherited from duds::ui::graphics::Panel
virtual void added (PriorityGridLayout *pgl, unsigned int pri)
 Informs the panel that it is being added to a layout. More...
 
virtual void removing (PriorityGridLayout *pgl, unsigned int pri)
 Informs the panel that it is being removed from a layout. More...
 

Static Public Member Functions

static std::shared_ptr< EmptyPanelmake ()
 Returns a shared pointer to a new empty panel. More...
 

Private Member Functions

 EmptyPanel (Token)
 

Detailed Description

An empty panel; useful for taking up space according to a layout configuration.

All layout configurations must have a Panel object. An instance of EmptyPanel can be used for all empty spots.

Note
The PriorityGridLayout will not render anything to the area assigned to this panel. It will effectively be transparent.
Author
Jeff Jackowski

Definition at line 117 of file Panel.hpp.

Constructor & Destructor Documentation

◆ EmptyPanel()

duds::ui::graphics::EmptyPanel::EmptyPanel ( Token  )
inlineprivate

Definition at line 123 of file Panel.hpp.

Member Function Documentation

◆ make()

static std::shared_ptr<EmptyPanel> duds::ui::graphics::EmptyPanel::make ( )
inlinestatic

Returns a shared pointer to a new empty panel.

Definition at line 127 of file Panel.hpp.

◆ render()

const BppImage * duds::ui::graphics::EmptyPanel::render ( ImageLocation ,
ImageDimensions ,
PanelMargins ,
int   
)
virtual

Just returns nullptr.

Implements duds::ui::graphics::Panel.

Definition at line 18 of file Panel.cpp.


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