Numworks Epsilon  1.4.1
Graphing Calculator Operating System
KeyView Class Reference

#include <key_view.h>

Inheritance diagram for KeyView:
View

Public Types

enum  Type {
  Type::Up, Type::Down, Type::Left, Type::Right,
  Type::Plus, Type::Minus
}
 

Public Member Functions

 KeyView (Type type=Type::Up)
 
void setType (Type type)
 
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_keySize = 8
 

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 key_view.h.

Member Enumeration Documentation

◆ Type

enum KeyView::Type
strong
Enumerator
Up 
Down 
Left 
Right 
Plus 
Minus 

Definition at line 8 of file key_view.h.

Constructor & Destructor Documentation

◆ KeyView()

KeyView::KeyView ( Type  type = Type::Up)

Definition at line 69 of file key_view.cpp.

Member Function Documentation

◆ drawRect()

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

Reimplemented from View.

Definition at line 82 of file key_view.cpp.

◆ minimalSizeForOptimalDisplay()

KDSize KeyView::minimalSizeForOptimalDisplay ( ) const
overridevirtual

Reimplemented from View.

Definition at line 90 of file key_view.cpp.

◆ setType()

void KeyView::setType ( Type  type)

Definition at line 75 of file key_view.cpp.

Member Data Documentation

◆ k_keySize

constexpr KDCoordinate KeyView::k_keySize = 8
static

Definition at line 20 of file key_view.h.


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