DDraceNetwork Docs
CTouchControls::CTouchButton Class Reference
Collaboration diagram for CTouchControls::CTouchButton:
[legend]

Public Member Functions

 CTouchButton (CTouchControls *pTouchControls)
 
 CTouchButton (CTouchButton &&Other) noexcept
 
 CTouchButton (const CTouchButton &Other)=delete
 
CTouchButtonoperator= (const CTouchButton &Other)=delete
 
CTouchButtonoperator= (CTouchButton &&Other) noexcept
 
void UpdatePointers ()
 
void UpdateScreenFromUnitRect ()
 
void UpdateBackgroundCorners ()
 
vec2 ClampTouchPosition (vec2 TouchPosition) const
 
bool IsInside (vec2 TouchPosition) const
 
void UpdateVisibility ()
 
bool IsVisible () const
 
void Render () const
 
void WriteToConfiguration (CJsonWriter *pWriter)
 

Public Attributes

CTouchControlsm_pTouchControls
 
CUnitRect m_UnitRect
 
CUIRect m_ScreenRect
 
EButtonShape m_Shape
 
int m_BackgroundCorners
 
std::vector< CButtonVisibilitym_vVisibilities
 
std::unique_ptr< CTouchButtonBehaviorm_pBehavior
 
bool m_VisibilityCached
 
std::chrono::nanoseconds m_VisibilityStartTime
 

Constructor & Destructor Documentation

◆ CTouchButton() [1/3]

CTouchControls::CTouchButton::CTouchButton ( CTouchControls pTouchControls)

◆ CTouchButton() [2/3]

CTouchControls::CTouchButton::CTouchButton ( CTouchButton &&  Other)
noexcept

◆ CTouchButton() [3/3]

CTouchControls::CTouchButton::CTouchButton ( const CTouchButton Other)
delete

Member Function Documentation

◆ ClampTouchPosition()

vec2 CTouchControls::CTouchButton::ClampTouchPosition ( vec2  TouchPosition) const

◆ IsInside()

bool CTouchControls::CTouchButton::IsInside ( vec2  TouchPosition) const

◆ IsVisible()

bool CTouchControls::CTouchButton::IsVisible ( ) const

◆ operator=() [1/2]

CTouchButton & CTouchControls::CTouchButton::operator= ( const CTouchButton Other)
delete

◆ operator=() [2/2]

CTouchControls::CTouchButton & CTouchControls::CTouchButton::operator= ( CTouchButton &&  Other)
noexcept

◆ Render()

void CTouchControls::CTouchButton::Render ( ) const

◆ UpdateBackgroundCorners()

void CTouchControls::CTouchButton::UpdateBackgroundCorners ( )

◆ UpdatePointers()

void CTouchControls::CTouchButton::UpdatePointers ( )

◆ UpdateScreenFromUnitRect()

void CTouchControls::CTouchButton::UpdateScreenFromUnitRect ( )

◆ UpdateVisibility()

void CTouchControls::CTouchButton::UpdateVisibility ( )

◆ WriteToConfiguration()

void CTouchControls::CTouchButton::WriteToConfiguration ( CJsonWriter pWriter)

Member Data Documentation

◆ m_BackgroundCorners

int CTouchControls::CTouchButton::m_BackgroundCorners

◆ m_pBehavior

std::unique_ptr<CTouchButtonBehavior> CTouchControls::CTouchButton::m_pBehavior

◆ m_pTouchControls

CTouchControls* CTouchControls::CTouchButton::m_pTouchControls

◆ m_ScreenRect

CUIRect CTouchControls::CTouchButton::m_ScreenRect

◆ m_Shape

EButtonShape CTouchControls::CTouchButton::m_Shape

◆ m_UnitRect

CUnitRect CTouchControls::CTouchButton::m_UnitRect

◆ m_VisibilityCached

bool CTouchControls::CTouchButton::m_VisibilityCached

◆ m_VisibilityStartTime

std::chrono::nanoseconds CTouchControls::CTouchButton::m_VisibilityStartTime

◆ m_vVisibilities

std::vector<CButtonVisibility> CTouchControls::CTouchButton::m_vVisibilities

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