MonoBrick EV3 Firmware
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MonoBrickFirmware.Display.Dialogs.Dialog Class Referenceabstract
Inheritance diagram for MonoBrickFirmware.Display.Dialogs.Dialog:
MonoBrickFirmware.Display.Dialogs.CharacterDialog MonoBrickFirmware.Display.Dialogs.DialogWithProgessAnimation MonoBrickFirmware.Display.Dialogs.InfoDialog MonoBrickFirmware.Display.Dialogs.QuestionDialog MonoBrickFirmware.Display.Dialogs.SelectDialog< SelectionType > MonoBrickFirmware.Display.Dialogs.ProgressDialog MonoBrickFirmware.Display.Dialogs.StepDialog

Public Member Functions

 Dialog (Font f, string title, int width=160, int height=90, int topOffset=0)
 
bool Show ()
 
virtual bool Show (CancellationToken token)
 

Public Attributes

Action OnShow = delegate {}
 
Action OnExit = delegate {}
 

Protected Member Functions

virtual bool OnEnterAction ()
 
virtual bool OnLeftAction ()
 
virtual bool OnRightAction ()
 
virtual bool OnUpAction ()
 
virtual bool OnDownAction ()
 
virtual bool OnEscape ()
 
void WriteTextOnLine (string text, int lineIndex, bool color=true, Lcd.Alignment alignment=Lcd.Alignment.Center)
 
void DrawCenterButton (string text, bool color)
 
void DrawCenterButton (string text, bool color, int textSize)
 
void DrawLeftButton (string text, bool color)
 
void DrawLeftButton (string text, bool color, int textSize)
 
void DrawRightButton (string text, bool color)
 
void DrawRightButton (string text, bool color, int textSize)
 
void WriteTextOnDialog (string text)
 
abstract void OnDrawContent ()
 
void ClearContent ()
 
virtual void Draw ()
 

Protected Attributes

Font font
 
Rectangle outherWindow
 
Rectangle innerWindow
 
List< Rectanglelines
 

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