Numworks Epsilon  1.4.1
Graphing Calculator Operating System
BatteryView Class Reference

#include <battery_view.h>

Inheritance diagram for BatteryView:
View

Public Member Functions

 BatteryView ()
 
bool setChargeState (Ion::Battery::Charge chargeState)
 
bool setIsCharging (bool isCharging)
 
bool setIsPlugged (bool isPlugged)
 
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 int k_flashHeight = 8
 
static constexpr int k_flashWidth = 4
 
static constexpr int k_tickHeight = 6
 
static constexpr int k_tickWidth = 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 battery_view.h.

Constructor & Destructor Documentation

◆ BatteryView()

BatteryView::BatteryView ( )

Definition at line 25 of file battery_view.cpp.

Member Function Documentation

◆ drawRect()

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

Reimplemented from View.

Definition at line 63 of file battery_view.cpp.

◆ minimalSizeForOptimalDisplay()

KDSize BatteryView::minimalSizeForOptimalDisplay ( ) const
overridevirtual

Reimplemented from View.

Definition at line 92 of file battery_view.cpp.

◆ setChargeState()

bool BatteryView::setChargeState ( Ion::Battery::Charge  chargeState)

Definition at line 33 of file battery_view.cpp.

◆ setIsCharging()

bool BatteryView::setIsCharging ( bool  isCharging)

Definition at line 42 of file battery_view.cpp.

◆ setIsPlugged()

bool BatteryView::setIsPlugged ( bool  isPlugged)

Definition at line 51 of file battery_view.cpp.

Member Data Documentation

◆ k_flashHeight

constexpr int BatteryView::k_flashHeight = 8
static

Definition at line 14 of file battery_view.h.

◆ k_flashWidth

constexpr int BatteryView::k_flashWidth = 4
static

Definition at line 15 of file battery_view.h.

◆ k_tickHeight

constexpr int BatteryView::k_tickHeight = 6
static

Definition at line 16 of file battery_view.h.

◆ k_tickWidth

constexpr int BatteryView::k_tickWidth = 8
static

Definition at line 17 of file battery_view.h.


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