system¶
- class bgui.system.System(textlib, theme=None)¶
Bases: bgui.widget.Widget
The main gui system. Add widgets to this and then call the render() method draw the gui.
Parameters: theme – the path to a theme directory - normalize_text = True¶
- focused_widget¶
The widget which currently has “focus”
- update_mouse(pos, click_state=0)¶
Updates the system’s mouse data
Parameters: - pos – the mouse position
- click_state – the current state of the mouse
Return type: None
- update_keyboard(key, is_shifted)¶
Updates the system’s keyboard data
Parameters: - key – the key being input
- is_shifted – is the shift key held down?
Return type: None
- render()¶
Renders the GUI system
Return type: None