Return the current state of a window
long PtWindowGetState( PtWidget_t *widget )
This function returns the current state of the window pointed to by the widget variable:
State | Description |
---|---|
Ph_WM_STATE_ISHIDDEN | The window is hidden. |
Ph_WM_STATE_ISMAX | The window is maximized. |
Ph_WM_STATE_ISBACKDROP | The window is a backdrop. |
Ph_WM_STATE_ISTASKBAR | The window is a taskbar. |
Ph_WM_STATE_ISICONIFIED | The window is iconified. |
Ph_WM_STATE_ISFRONT | The window is the frontmost in the family. |
Ph_WM_STATE_ISFOCUS | The window has focus. |
The current state of the window, or -1 if the widget isn't a PtWindow or PtIcon widget, or the window wasn't realized.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |