LMMS
Loading...
Searching...
No Matches
internal.h
Go to the documentation of this file.
1// Copyright 2012-2022 David Robillard <d@drobilla.net>
2// SPDX-License-Identifier: ISC
3
4// Internal utilities available to platform implementations
5
6#ifndef PUGL_INTERNAL_H
7#define PUGL_INTERNAL_H
8
9#include "attributes.h"
10#include "types.h"
11
12#include "pugl/pugl.h"
13
14#include <stddef.h>
15#include <stdint.h>
16
18
21puglSetBlob(PuglBlob* dest, const void* data, size_t len);
22
24void
25puglSetString(char** dest, const char* string);
26
29puglDecodeUTF8(const uint8_t* buf);
30
34
38puglConfigure(PuglView* view, const PuglEvent* event);
39
43puglExpose(PuglView* view, const PuglEvent* event);
44
47puglDispatchEvent(PuglView* view, const PuglEvent* event);
48
50
51#endif // PUGL_INTERNAL_H
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
#define PUGL_WARN_UNUSED_RESULT
Definition attributes.h:18
PuglEventType
The type of a PuglEvent.
Definition pugl.h:179
PuglStatus
Return status code.
Definition pugl.h:627
struct PuglViewImpl PuglView
A drawable region that receives events.
Definition pugl.h:810
PUGL_BEGIN_DECLS PuglStatus puglSetBlob(PuglBlob *dest, const void *data, size_t len)
Set blob to data with length len, reallocating if necessary.
Definition internal.c:16
uint32_t puglDecodeUTF8(const uint8_t *buf)
Return the Unicode code point for buf or the replacement character.
Definition internal.c:51
PUGL_WARN_UNUSED_RESULT PuglStatus puglExpose(PuglView *view, const PuglEvent *event)
Process expose event while already in the graphics context.
Definition internal.c:136
PUGL_WARN_UNUSED_RESULT PuglStatus puglConfigure(PuglView *view, const PuglEvent *event)
Process configure event while already in the graphics context.
Definition internal.c:116
PuglStatus puglDispatchEvent(PuglView *view, const PuglEvent *event)
Dispatch event to view, entering graphics context if necessary.
Definition internal.c:144
PuglStatus puglDispatchSimpleEvent(PuglView *view, PuglEventType type)
Dispatch an event with a simple type to view.
Definition internal.c:99
void puglSetString(char **dest, const char *string)
Reallocate and set *dest to string.
Definition internal.c:40
JSAMPIMAGE data
Definition jpeglib.h:945
unsigned int uint32_t
Definition mid.cpp:100
unsigned char uint8_t
Definition mid.cpp:98
#define PUGL_END_DECLS
Definition pugl.h:47
#define PUGL_BEGIN_DECLS
Definition pugl.h:46
Blob of arbitrary data.
Definition types.h:31
Definition pugl.h:599