Management Events¶
-
typedef PuglAnyEvent PuglCloseEvent¶
View close event.
This is sent when the view is to be closed, for example when the user clicks the close button.
-
typedef PuglAnyEvent PuglLoopEnterEvent¶
Recursive loop enter event.
This is sent when the window system enters a recursive loop. While in the recursive loop, the main loop will be stalled and no expose events will be received. A typical use is to install a timer to perform continuous actions, such as drawing.
MacOS: A recursive loop is entered while the window is being live resized.
Windows: A recursive loop is entered while the window is being live resized or the menu is shown.
X11: A recursive loop is never entered and the event loop runs as usual while the view is being resized.
-
typedef PuglAnyEvent PuglLoopLeaveEvent¶
Recursive loop leave event.
This is sent after a loop enter event when the recursive loop is finished and normal iteration will continue.
-
typedef PuglAnyEvent PuglRealizeEvent¶
View realize event.
This is sent when a view is realized before it’s first displayed, with the graphics context entered (but not prepared to draw). This can be used to set up the graphics system, for example by loading OpenGL extensions.
-
typedef PuglAnyEvent PuglUnrealizeEvent¶
View unrealize event.
This counterpart to
PuglRealizeEventis sent when the view will no longer be displayed. This can be used to tear down the graphics system, or free any resources allocated when the view was realized.
-
struct PuglConfigureEvent¶
View configure (resize/move) event.
This is sent whenever the view is resized or moved. The application must adapt to the given configuration, and must not attempt to reposition/resize or access the graphics context while handling this event. If necessary, the values should be saved and applied during the next expose or update.
-
PuglEventFlags flags¶
Bitwise OR of
PuglEventFlagvalues.
-
double scale¶
Scale factor.
-
PuglViewStyleFlags style¶
Bitwise OR of
PuglViewStyleFlagflags.
-
PuglEventFlags flags¶