guipy.manager
Module Contents
Classes
GUI Manager |
- class guipy.manager.GUIManager
GUI Manager
Main class that is required for all UI components to work. Add components to the manager, update, and then render them all onto a surface
- add(component, pos)
Add component to the manager
- Parameters
component – UI component to be added to the GUIManager
pos – Position of UI component on screen
- update(mouse_pos, events, root)
Update all components in the manager, and render onto root
- Parameters
mouse_pos – Mouse position used to update the components so components understand the relative location
events – pygame events used to update the components
root – the surface these components should be drawn on