1+ # MatrixOS Python Interface - UI
2+ # Core UI class for creating user interfaces
3+
4+ from MatrixOS_UIComponent import UIComponent
5+ from MatrixOS_Point import Point
6+ from MatrixOS_KeyEvent import KeyEvent
7+ from MatrixOS_Color import Color
8+
9+ class UI :
10+ def __init__ (self , * val ) -> None : ...
11+
12+ # UI control methods
13+ def Start (self ) -> bool : ...
14+ def SetName (self , name : str ) -> bool : ...
15+ def SetColor (self , color : Color ) -> bool : ...
16+ def ShouldCreatenewLEDLayer (self , create : bool ) -> bool : ...
17+
18+ # Callback setters
19+ def SetSetupFunc (self , setupFunc : any ) -> bool : ...
20+ def SetLoopFunc (self , loopFunc : any ) -> bool : ...
21+ def SetEndFunc (self , endFunc : any ) -> bool : ...
22+ def SetPreRenderFunc (self , pre_renderFunc : any ) -> bool : ...
23+ def SetPostRenderFunc (self , post_renderFunc : any ) -> bool : ...
24+ def SetKeyEventHandler (self , key_event_handler : any ) -> bool : ...
25+
26+ # UI Component management
27+ def AddUIComponent (self , uiComponent : UIComponent , xy : Point ) -> bool : ...
28+ def ClearUIComponents (self ) -> bool : ...
29+
30+ # UI control
31+ def AllowExit (self , allow : bool ) -> bool : ...
32+ def SetFPS (self , fps : int ) -> bool : ...
0 commit comments