|
LMMS
|
Typedefs | |
| typedef PuglCreateEvent | PuglEventCreate |
| typedef PuglDestroyEvent | PuglEventDestroy |
| typedef PuglConfigureEvent | PuglEventConfigure |
| typedef PuglMapEvent | PuglEventMap |
| typedef PuglUnmapEvent | PuglEventUnmap |
| typedef PuglUpdateEvent | PuglEventUpdate |
| typedef PuglExposeEvent | PuglEventExpose |
| typedef PuglCloseEvent | PuglEventClose |
| typedef PuglFocusEvent | PuglEventFocus |
| typedef PuglKeyEvent | PuglEventKey |
| typedef PuglTextEvent | PuglEventText |
| typedef PuglCrossingEvent | PuglEventCrossing |
| typedef PuglButtonEvent | PuglEventButton |
| typedef PuglMotionEvent | PuglEventMotion |
| typedef PuglScrollEvent | PuglEventScroll |
| typedef PuglClientEvent | PuglEventClient |
| typedef PuglTimerEvent | PuglEventTimer |
| typedef PuglLoopEnterEvent | PuglEventLoopEnter |
| typedef PuglLoopLeaveEvent | PuglEventLoopLeave |
| typedef uintptr_t | PuglNativeWindow |
Functions | |
| static | PUGL_DEPRECATED_BY ("puglNewView") PuglView *puglInit(const int *pargc |
| return | puglNewView (puglNewWorld(PUGL_MODULE, 0)) |
| static | PUGL_DEPRECATED_BY ("puglFreeView") void puglDestroy(PuglView *view) |
| static | PUGL_DEPRECATED_BY ("puglSetClassName") void puglInitWindowClass(PuglView *view |
| static | PUGL_DEPRECATED_BY ("puglSetFrame") void puglInitWindowSize(PuglView *view |
| puglSetFrame (view, frame) | |
| static | PUGL_DEPRECATED_BY ("puglSetMinSize") void puglInitWindowMinSize(PuglView *view |
| static | PUGL_DEPRECATED_BY ("puglSetAspectRatio") void puglInitWindowAspectRatio(PuglView *view |
| puglSetSizeHint (view, PUGL_MAX_ASPECT,(PuglSpan) maxX,(PuglSpan) maxY) | |
| static | PUGL_DEPRECATED_BY ("puglSetTransientParent") void puglInitTransientFor(PuglView *view |
| static | PUGL_DEPRECATED_BY ("puglSetViewHint") void puglInitResizable(PuglView *view |
| static | PUGL_DEPRECATED_BY ("puglGetFrame") void puglGetSize(PuglView *view |
| static | PUGL_DEPRECATED_BY ("puglSetParentWindow") void puglInitWindowParent(PuglView *view |
| static | PUGL_DEPRECATED_BY ("puglSetBackend") int puglInitBackend(PuglView *view |
| static | PUGL_DEPRECATED_BY ("puglRealize") PuglStatus puglCreateWindow(PuglView *view |
| return | puglRealize (view) |
| PUGL_API PuglStatus | puglWaitForEvent (PuglView *view) |
| PUGL_API PuglStatus | puglProcessEvents (PuglView *view) |
| static | PUGL_DEPRECATED_BY ("puglUpdate") PuglStatus puglPollEvents(PuglWorld *world |
| static | PUGL_DEPRECATED_BY ("puglShow") PuglStatus puglShowWindow(PuglView *view) |
| static | PUGL_DEPRECATED_BY ("puglHide") PuglStatus puglHideWindow(PuglView *view) |
| static | PUGL_DEPRECATED_BY ("puglSetSizeHint") PuglStatus puglSetDefaultSize(PuglView *view |
| static | PUGL_DEPRECATED_BY ("puglGetNativeView") PuglNativeView puglGetNativeWindow(PuglView *view) |
| Return the native window handle. | |
Variables | |
| static char ** | argv |
| static const char * | name |
| static int | width = (PuglSpan)width |
| static int int | height |
| static int | minX |
| static int int | minY |
| static int int int | maxX |
| static int int int int | maxY |
| static uintptr_t | parent |
| static bool | resizable |
| static bool | ignore |
| static PuglViewHint | hint |
| static PuglViewHint int | value |
| static const PuglBackend * | backend |
| static const char * | title |
| static double | timeout |
| const PuglStatus | st1 |
| return st0 | st0 |
| char * | argv [] |
| typedef PuglButtonEvent PuglEventButton |
| typedef PuglClientEvent PuglEventClient |
| typedef PuglCloseEvent PuglEventClose |
| typedef PuglConfigureEvent PuglEventConfigure |
| typedef PuglCreateEvent PuglEventCreate |
| typedef PuglCrossingEvent PuglEventCrossing |
| typedef PuglDestroyEvent PuglEventDestroy |
| typedef PuglExposeEvent PuglEventExpose |
| typedef PuglFocusEvent PuglEventFocus |
| typedef PuglKeyEvent PuglEventKey |
| typedef PuglLoopEnterEvent PuglEventLoopEnter |
| typedef PuglLoopLeaveEvent PuglEventLoopLeave |
| typedef PuglMapEvent PuglEventMap |
| typedef PuglMotionEvent PuglEventMotion |
| typedef PuglScrollEvent PuglEventScroll |
| typedef PuglTextEvent PuglEventText |
| typedef PuglTimerEvent PuglEventTimer |
| typedef PuglUnmapEvent PuglEventUnmap |
| typedef PuglUpdateEvent PuglEventUpdate |
| typedef uintptr_t PuglNativeWindow |
A native window handle.
X11: This is a Window.
MacOS: This is a pointer to an NSView*.
Windows: This is a HWND.
|
inlinestatic |
Destroy an app and view created with puglInit().
|
inlinestatic |
Get the current size of the view.
|
inlinestatic |
Return the native window handle.
|
inlinestatic |
|
inlinestatic |
Create a Pugl application and view.
To create a window, call the various puglInit* functions as necessary, then call puglRealize().
|
inlinestatic |
Realize a view by creating a corresponding system view or window.
The view should be fully configured using the above functions before this is called. This function may only be called once per view.
|
inlinestatic |
Set the window aspect ratio range before creating a window.
The x and y values here represent a ratio of width to height. To set a fixed aspect ratio, set the minimum and maximum values to the same ratio.
Note that setting different minimum and maximum constraints does not currently work on MacOS (the minimum is used), so only setting a fixed aspect ratio works properly across all platforms.
|
inlinestatic |
Set the graphics backend to use.
|
inlinestatic |
Set the window class name before creating a window.
|
inlinestatic |
Set the window size before creating a window.
|
inlinestatic |
Set the minimum window size before creating a window.
|
inlinestatic |
Set the parent window before creating a window (for embedding).
|
inlinestatic |
Set the default size of the view.
This should be called before puglRealize() to set the default size of the view, which will be the initial size of the window if this is a top level view.
Set the minimum size of the view.
If an initial minimum size is known, this should be called before puglRealize() to avoid stutter, though it can be called afterwards as well.
Set the maximum size of the view.
If an initial maximum size is known, this should be called before puglRealize() to avoid stutter, though it can be called afterwards as well.
Set the view aspect ratio range.
The x and y values here represent a ratio of width to height. To set a fixed aspect ratio, set the minimum and maximum values to the same ratio.
Note that setting different minimum and maximum constraints does not currently work on MacOS (the minimum is used), so only setting a fixed aspect ratio works properly across all platforms.
If an initial aspect ratio is known, this should be called before puglRealize() to avoid stutter, though it can be called afterwards as well.
|
inlinestatic |
Set transient parent before creating a window.
On X11, parent must be a Window. On OSX, parent must be an NSView*.
Set transient parent before creating a window.
|
inlinestatic |
Enable or disable resizing before creating a window.
Ignore synthetic repeated key events.
Set a hint before creating a window.
|
inlinestatic |
|
inlinestatic |
Poll for events that are ready to be processed.
This polls for events that are ready for any view in the world, potentially blocking depending on timeout.
| world | The world to poll for events. |
| timeout | Maximum time to wait, in seconds. If zero, the call returns immediately, if negative, the call blocks indefinitely. |
Dispatch any pending events to views.
This processes all pending events, dispatching them to the appropriate views. View event handlers will be called in the scope of this call. This function does not block, if no events are pending then it will return immediately.
| return puglNewView | ( | puglNewWorld(PUGL_MODULE, 0) | ) |
| PUGL_API PuglStatus puglProcessEvents | ( | PuglView * | view | ) |
Process all pending window events.
This handles input events as well as rendering, so it should be called regularly and rapidly enough to keep the UI responsive. This function does not block if no events are pending.
| return puglRealize | ( | view | ) |
| puglSetFrame | ( | view | , |
| frame | ) |
| puglSetSizeHint | ( | view | , |
| PUGL_MAX_ASPECT | , | ||
| (PuglSpan) | maxX, | ||
| (PuglSpan) | maxY ) |
| PUGL_API PuglStatus puglWaitForEvent | ( | PuglView * | view | ) |
Block and wait for an event to be ready.
This can be used in a loop to only process events via puglProcessEvents when necessary. This function will block indefinitely if no events are available, so is not appropriate for use in programs that need to perform regular updates (e.g. animation).
| void argv |
| void argv |
| const PuglBackend* backend |
| PuglViewHint hint |
| bool ignore |
| int minX |
| const char* name |
| PuglNativeWindow parent |
| bool resizable |
| return st0 st0 |
| const PuglStatus st1 |
| double timeout |
| const char* title |
| PuglViewHint int value |
| png_const_structrp png_inforp int png_fixed_point width = (PuglSpan)width |