Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CContainerWithButtons Class Reference

#include <CContainerWithButtons.hpp>

Inheritance diagram for CContainerWithButtons:
[legend]
Collaboration diagram for CContainerWithButtons:
[legend]

Classes

struct  SPrvButtonContainer
 

Public Types

enum class  AlignButtons { Horizontal , Vertical }
 

Public Member Functions

 CContainerWithButtons (AlignButtons alignButtons, bool isChangeColor=false, iv::types::color colorSelected=iv::color::Undefined, iv::types::color colorUnselected=iv::color::Undefined)
 
 CContainerWithButtons (const CContainerWithButtons &)=delete
 
 ~CContainerWithButtons () override
 
CContainerWithButtonsoperator= (CContainerWithButtons &)=delete
 
void addButton (const std::string &txtButton, ICreatorPanel **creatorPanel, bool isSelected=false)
 
void addButtonWithImage (const iv::ui::resources::ImageResource &resource, const std::string &txtButton, ICreatorPanel **creatorPanel, bool isSelected=false)
 
void unSelectAll ()
 
void panelBreakDown (AbstractComponentGUI **buttons, AbstractComponentGUI **containerLayout)
 
void updateColor ()
 
bool getIsColorChange () const
 

Public Attributes

uint8_t m_marginButtons {4}
 
bool m_expandButtons {false}
 
std::optional< iv::math::geometry::Aream_minOptionButtonSize {std::nullopt}
 

Private Member Functions

CLayoutContainerprvPanelContainerLayout ()
 
AbstractComponentGUIprvPanelButtons (CLayoutContainer *containerLayout)
 

Private Attributes

AlignButtons m_alignButtons
 
std::vector< SPrvButtonContainer * > * m_buttons
 
bool m_isColorChange
 
uint32_t m_colorSelected
 
uint32_t m_colorUnselected
 

Member Enumeration Documentation

◆ AlignButtons

Enumerator
Horizontal 
Vertical 

Constructor & Destructor Documentation

◆ CContainerWithButtons() [1/2]

CContainerWithButtons::CContainerWithButtons ( AlignButtons alignButtons,
bool isChangeColor = false,
iv::types::color colorSelected = iv::color::Undefined,
iv::types::color colorUnselected = iv::color::Undefined )
explicit

◆ CContainerWithButtons() [2/2]

CContainerWithButtons::CContainerWithButtons ( const CContainerWithButtons & )
delete

◆ ~CContainerWithButtons()

CContainerWithButtons::~CContainerWithButtons ( )
override

Member Function Documentation

◆ addButton()

void CContainerWithButtons::addButton ( const std::string & txtButton,
ICreatorPanel ** creatorPanel,
bool isSelected = false )

◆ addButtonWithImage()

void CContainerWithButtons::addButtonWithImage ( const iv::ui::resources::ImageResource & resource,
const std::string & txtButton,
ICreatorPanel ** creatorPanel,
bool isSelected = false )

◆ getIsColorChange()

bool CContainerWithButtons::getIsColorChange ( ) const
nodiscard

◆ operator=()

CContainerWithButtons & CContainerWithButtons::operator= ( CContainerWithButtons & )
delete

◆ panelBreakDown()

void CContainerWithButtons::panelBreakDown ( AbstractComponentGUI ** buttons,
AbstractComponentGUI ** containerLayout )

◆ prvPanelButtons()

AbstractComponentGUI * CContainerWithButtons::prvPanelButtons ( CLayoutContainer * containerLayout)
private

◆ prvPanelContainerLayout()

CLayoutContainer * CContainerWithButtons::prvPanelContainerLayout ( )
private

◆ unSelectAll()

void CContainerWithButtons::unSelectAll ( )

◆ updateColor()

void CContainerWithButtons::updateColor ( )

Member Data Documentation

◆ m_alignButtons

AlignButtons CContainerWithButtons::m_alignButtons
private

◆ m_buttons

std::vector<SPrvButtonContainer *>* CContainerWithButtons::m_buttons
private

◆ m_colorSelected

uint32_t CContainerWithButtons::m_colorSelected
private

◆ m_colorUnselected

uint32_t CContainerWithButtons::m_colorUnselected
private

◆ m_expandButtons

bool CContainerWithButtons::m_expandButtons {false}

◆ m_isColorChange

bool CContainerWithButtons::m_isColorChange
private

◆ m_marginButtons

uint8_t CContainerWithButtons::m_marginButtons {4}

◆ m_minOptionButtonSize

std::optional<iv::math::geometry::Area> CContainerWithButtons::m_minOptionButtonSize {std::nullopt}

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