LMMS
Loading...
Searching...
No Matches
common.c File Reference
#include "internal.h"
#include "platform.h"
#include "types.h"
#include "pugl/pugl.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

const char * puglStrerror (const PuglStatus status)
 Return a string describing a status code.
PuglWorldpuglNewWorld (PuglWorldType type, PuglWorldFlags flags)
void puglFreeWorld (PuglWorld *const world)
 Free a world allocated with puglNewWorld().
void puglSetWorldHandle (PuglWorld *world, PuglWorldHandle handle)
PuglWorldHandle puglGetWorldHandle (PuglWorld *world)
 Get the user data for the world.
PuglStatus puglSetClassName (PuglWorld *const world, const char *const name)
const char * puglGetClassName (const PuglWorld *world)
 Get the class name of the application, or null.
static void puglSetDefaultHints (PuglHints hints)
PuglViewpuglNewView (PuglWorld *const world)
void puglFreeView (PuglView *view)
 Free a view created with puglNewView().
PuglWorldpuglGetWorld (PuglView *view)
 Return the world that View is a part of.
void puglSetHandle (PuglView *view, PuglHandle handle)
PuglHandle puglGetHandle (PuglView *view)
 Get the user data for a view.
PuglStatus puglSetBackend (PuglView *view, const PuglBackend *backend)
const PuglBackendpuglGetBackend (const PuglView *view)
 Return the graphics backend used by a view.
PuglStatus puglSetEventFunc (PuglView *view, PuglEventFunc eventFunc)
 Set the function to call when an event occurs.
PuglStatus puglSetViewHint (PuglView *view, PuglViewHint hint, int value)
int puglGetViewHint (const PuglView *view, PuglViewHint hint)
PuglRect puglGetFrame (const PuglView *view)
const char * puglGetWindowTitle (const PuglView *const view)
 Return the title of the window, or null.
PuglStatus puglSetParentWindow (PuglView *view, PuglNativeView parent)
PuglNativeView puglGetParentWindow (const PuglView *const view)
 Return the parent window this view is embedded in, or null.
PuglNativeView puglGetTransientParent (const PuglView *const view)
bool puglGetVisible (const PuglView *view)
 Return true iff the view is currently visible.
voidpuglGetContext (PuglView *view)

Function Documentation

◆ puglSetDefaultHints()

void puglSetDefaultHints ( PuglHints hints)
static