Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

otMiniGUI Class Reference
[Mini GUI - Minimal Graphic User Interface, Mini GUI - Minimal Graphic User Interface]

Implementation of a minimal graphics user interface.

#include <otMiniGUI.h>


Public Types

enum  GuiId { PUSH_BUTTON = 1, LABEL, SPINBOX, CHECKBOX }

Public Member Functions

 otMiniGUI ()
bool init (otGraphics *tft, U32 guiObjects)
U32 addPushButton (U16 sx, U16 sy, const char *text, U16 textSize)
void pushButtonSetToggle (U32 id, bool toggle)
void pushButtonSetText (U32 id, const char *text)
bool pushButtonIsOn (U32 id)
U32 addLabel (U16 sx, U16 sy, const char *text, U16 textSize)
void labelSetText (U32 id, const char *text)
U32 addSpinBox (U16 sx, U16 sy, U16 nDigits, U16 textSize)
void spinBoxSetMinimum (U32 id, S32 minv)
void spinBoxSetMaximum (U32 id, S32 maxv)
void spinBoxSetValue (U32 id, S32 v)
S32 spinBoxValue (U32 id)
U32 addCheckBox (U16 sx, U16 sy, const char *text, U16 textSize)
void checkBoxSetChecked (U32 id, bool ena)
bool checkBoxIsChecked (U32 id)
void regen ()
void regen (U32 id, bool active=false)
U32 selectNext (S32 id=-1)
void activate (U32 id, U16 timeout=250)
S32 selected ()
U16 objectType (U32 id)


Member Enumeration Documentation

enum otMiniGUI::GuiId
 

Enumeration values:
PUSH_BUTTON 
LABEL 
SPINBOX 
CHECKBOX 


Constructor & Destructor Documentation

otMiniGUI.otMiniGUI (   ) 
 


Member Function Documentation

void otMiniGUI.activate (  U32  id,
U16  timeout = 250
) 
 

U32 otMiniGUI.addCheckBox (  U16  sx,
U16  sy,
const char *  text,
U16  textSize
) 
 

U32 otMiniGUI.addLabel (  U16  sx,
U16  sy,
const char *  text,
U16  textSize
) 
 

U32 otMiniGUI.addPushButton (  U16  sx,
U16  sy,
const char *  text,
U16  textSize
) 
 

U32 otMiniGUI.addSpinBox (  U16  sx,
U16  sy,
U16  nDigits,
U16  textSize
) 
 

bool otMiniGUI.checkBoxIsChecked (  U32  id  ) 
 

void otMiniGUI.checkBoxSetChecked (  U32  id,
bool  ena
) 
 

bool otMiniGUI.init (  otGraphics *  tft,
U32  guiObjects
) 
 

void otMiniGUI.labelSetText (  U32  id,
const char *  text
) 
 

U16 otMiniGUI.objectType (  U32  id  ) 
 

bool otMiniGUI.pushButtonIsOn (  U32  id  ) 
 

void otMiniGUI.pushButtonSetText (  U32  id,
const char *  text
) 
 

void otMiniGUI.pushButtonSetToggle (  U32  id,
bool  toggle
) 
 

void otMiniGUI.regen (  U32  id,
bool  active = false
) 
 

void otMiniGUI.regen (   ) 
 

S32 otMiniGUI.selected (   ) 
 

U32 otMiniGUI.selectNext (  S32  id = -1  ) 
 

void otMiniGUI.spinBoxSetMaximum (  U32  id,
S32  maxv
) 
 

void otMiniGUI.spinBoxSetMinimum (  U32  id,
S32  minv
) 
 

void otMiniGUI.spinBoxSetValue (  U32  id,
S32  v
) 
 

S32 otMiniGUI.spinBoxValue (  U32  id  ) 
 


The documentation for this class was generated from the following file: footer
otStudio - Library Reference - (C) 2020-25 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0