Numworks Epsilon  1.4.1
Graphing Calculator Operating System
GaugeView Class Reference

#include <gauge_view.h>

Inheritance diagram for GaugeView:
View

Public Member Functions

 GaugeView ()
 
float level ()
 
void setLevel (float level)
 
void setBackgroundColor (KDColor color)
 
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_indicatorDiameter = 10
 

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

Constructor & Destructor Documentation

◆ GaugeView()

GaugeView::GaugeView ( )

Definition at line 17 of file gauge_view.cpp.

Member Function Documentation

◆ drawRect()

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

Reimplemented from View.

Definition at line 46 of file gauge_view.cpp.

◆ level()

float GaugeView::level ( )

Definition at line 24 of file gauge_view.cpp.

◆ minimalSizeForOptimalDisplay()

KDSize GaugeView::minimalSizeForOptimalDisplay ( ) const
overridevirtual

Reimplemented from View.

Definition at line 58 of file gauge_view.cpp.

◆ setBackgroundColor()

void GaugeView::setBackgroundColor ( KDColor  color)

Definition at line 37 of file gauge_view.cpp.

◆ setLevel()

void GaugeView::setLevel ( float  level)

Definition at line 28 of file gauge_view.cpp.

Member Data Documentation

◆ k_indicatorDiameter

constexpr KDCoordinate GaugeView::k_indicatorDiameter = 10
static

Definition at line 14 of file gauge_view.h.


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