#include <iWidgetManager.h>
Inherits igor::iModule< iWidgetManager >.
◆ deleteWidget()
void igor::iWidgetManager::deleteWidget |
( |
iWidgetPtr |
widget | ) |
|
queues widget for deletion
widget can not have a parent
caller gives up ownership
- Parameters
-
widget | the widget to be deleted |
◆ draw()
void igor::iWidgetManager::draw |
( |
| ) |
|
draws the widgets if theme is defined
needs to be called by application
make sure you have set up an orthogonal coordinate system with the same dimensions as set via setDesktopDimensions
◆ getDesktopHeight()
uint32 igor::iWidgetManager::getDesktopHeight |
( |
| ) |
const |
◆ getDesktopWidth()
uint32 igor::iWidgetManager::getDesktopWidth |
( |
| ) |
const |
◆ getDialog()
- Returns
- dialog by id
- Parameters
-
◆ getDrag()
iDrag & igor::iWidgetManager::getDrag |
( |
| ) |
const |
- Returns
- current drag if exists
test with inDrag if it exists first
◆ getModal()
iDialogPtr igor::iWidgetManager::getModal |
( |
| ) |
const |
- Returns
- current modal widget
◆ getTheme()
◆ getWidget()
- Returns
- widget by id
- Parameters
-
◆ hideTooltip()
void igor::iWidgetManager::hideTooltip |
( |
| ) |
|
◆ inDrag()
bool igor::iWidgetManager::inDrag |
( |
| ) |
const |
◆ isModal()
bool igor::iWidgetManager::isModal |
( |
iDialogPtr |
dialog | ) |
|
- Returns
- true: if widget is modal
- Parameters
-
dialog | the dialog to check if it is modal |
◆ onEvent()
void igor::iWidgetManager::onEvent |
( |
iEvent & |
event | ) |
|
called on any other event
◆ onUpdate()
void igor::iWidgetManager::onUpdate |
( |
| ) |
|
updates recursively all widgets before rendering
◆ resetModal()
void igor::iWidgetManager::resetModal |
( |
| ) |
|
◆ setDesktopDimensions()
void igor::iWidgetManager::setDesktopDimensions |
( |
uint32 |
width, |
|
|
uint32 |
height |
|
) |
| |
sets the desktop dimensions
you should update this e.g. when the window size changes
- Parameters
-
width | width of desktop |
height | height of desktop |
◆ setModal()
void igor::iWidgetManager::setModal |
( |
iDialogPtr |
dialog | ) |
|
set this widget exclusively modal
◆ setTheme()
sets the theme to use
- Parameters
-
◆ showTooltip()
shows tooltip at given position
- Parameters
-
pos | the position to show the tooltip |
text | the text of the tooltip |
◆ iDialog
◆ iDrag
◆ iModule< iWidgetManager >
◆ iWidget
◆ iWidgetMenu
◆ iWidgetSplitter
The documentation for this class was generated from the following files: