Numworks Epsilon
1.4.1
Graphing Calculator Operating System
|
#include <battery_view.h>
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 | |
View & | operator= (const View &other)=delete |
View & | operator= (View &&other)=delete |
void | resetSuperview () |
void | setSize (KDSize size) |
void | setFrame (KDRect frame) |
KDPoint | pointFromPointInView (View *view, KDPoint point) |
KDRect | bounds () const |
View * | subview (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 |
Definition at line 6 of file battery_view.h.
BatteryView::BatteryView | ( | ) |
Definition at line 25 of file battery_view.cpp.
Reimplemented from View.
Definition at line 63 of file battery_view.cpp.
|
overridevirtual |
Reimplemented from View.
Definition at line 92 of file battery_view.cpp.
bool BatteryView::setChargeState | ( | Ion::Battery::Charge | chargeState | ) |
Definition at line 33 of file battery_view.cpp.
Definition at line 42 of file battery_view.cpp.
Definition at line 51 of file battery_view.cpp.
|
static |
Definition at line 14 of file battery_view.h.
|
static |
Definition at line 15 of file battery_view.h.
|
static |
Definition at line 16 of file battery_view.h.
|
static |
Definition at line 17 of file battery_view.h.