Numworks Epsilon  1.4.1
Graphing Calculator Operating System
SwitchView Class Reference

#include <switch_view.h>

Inheritance diagram for SwitchView:
View

Public Member Functions

 SwitchView ()
 
bool state ()
 
void setState (bool state)
 
void drawRect (KDContext *ctx, KDRect rect) const override
 
KDSize minimalSizeForOptimalDisplay () const override
 
- Public Member Functions inherited from View
 View ()
 
virtual ~View ()
 
 View (const View &other)=delete
 
 View (View &&other)=delete
 
Viewoperator= (const View &other)=delete
 
Viewoperator= (View &&other)=delete
 
void resetSuperview ()
 
void setSize (KDSize size)
 
void setFrame (KDRect frame)
 
KDPoint pointFromPointInView (View *view, KDPoint point)
 
KDRect bounds () const
 
Viewsubview (int index)
 

Static Public Attributes

static constexpr KDCoordinate k_onOffSize = 12
 
static constexpr KDCoordinate k_switchHeight = 12
 
static constexpr KDCoordinate k_switchWidth = 22
 

Additional Inherited Members

- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 
- Protected Attributes inherited from View
KDRect m_frame
 

Detailed Description

Definition at line 6 of file switch_view.h.

Constructor & Destructor Documentation

◆ SwitchView()

SwitchView::SwitchView ( )

Definition at line 35 of file switch_view.cpp.

Member Function Documentation

◆ drawRect()

void SwitchView::drawRect ( KDContext ctx,
KDRect  rect 
) const
overridevirtual

Reimplemented from View.

Definition at line 52 of file switch_view.cpp.

◆ minimalSizeForOptimalDisplay()

KDSize SwitchView::minimalSizeForOptimalDisplay ( ) const
overridevirtual

Reimplemented from View.

Definition at line 68 of file switch_view.cpp.

◆ setState()

void SwitchView::setState ( bool  state)

Definition at line 45 of file switch_view.cpp.

◆ state()

bool SwitchView::state ( )

Definition at line 41 of file switch_view.cpp.

Member Data Documentation

◆ k_onOffSize

constexpr KDCoordinate SwitchView::k_onOffSize = 12
static

Definition at line 15 of file switch_view.h.

◆ k_switchHeight

constexpr KDCoordinate SwitchView::k_switchHeight = 12
static

Definition at line 16 of file switch_view.h.

◆ k_switchWidth

constexpr KDCoordinate SwitchView::k_switchWidth = 22
static

Definition at line 17 of file switch_view.h.


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