LMMS
Loading...
Searching...
No Matches
stub.h
Go to the documentation of this file.
1// Copyright 2012-2022 David Robillard <d@drobilla.net>
2// SPDX-License-Identifier: ISC
3
4#ifndef PUGL_SRC_STUB_H
5#define PUGL_SRC_STUB_H
6
7#include "pugl/pugl.h"
8
9#include <stddef.h>
10
12
13static inline PuglStatus
15{
16 (void)view;
17 return PUGL_SUCCESS;
18}
19
20static inline PuglStatus
22{
23 (void)view;
24 return PUGL_SUCCESS;
25}
26
27static inline void
29{
30 (void)view;
31}
32
33static inline PuglStatus
34puglStubEnter(PuglView* const view, const PuglExposeEvent* const expose)
35{
36 (void)view;
37 (void)expose;
38 return PUGL_SUCCESS;
39}
40
41static inline PuglStatus
42puglStubLeave(PuglView* const view, const PuglExposeEvent* const expose)
43{
44 (void)view;
45 (void)expose;
46 return PUGL_SUCCESS;
47}
48
49static inline void*
51{
52 (void)view;
53 return NULL;
54}
55
57
58#endif // PUGL_SRC_STUB_H
#define NULL
Definition CarlaBridgeFormat.cpp:30
PuglStatus
Return status code.
Definition pugl.h:627
@ PUGL_SUCCESS
Success.
Definition pugl.h:628
struct PuglViewImpl PuglView
A drawable region that receives events.
Definition pugl.h:810
#define PUGL_END_DECLS
Definition pugl.h:47
#define PUGL_BEGIN_DECLS
Definition pugl.h:46
static void puglStubDestroy(PuglView *const view)
Definition stub.h:28
static PuglStatus puglStubLeave(PuglView *const view, const PuglExposeEvent *const expose)
Definition stub.h:42
static PuglStatus puglStubEnter(PuglView *const view, const PuglExposeEvent *const expose)
Definition stub.h:34
static void * puglStubGetContext(PuglView *const view)
Definition stub.h:50
static PUGL_BEGIN_DECLS PuglStatus puglStubConfigure(PuglView *const view)
Definition stub.h:14
static PuglStatus puglStubCreate(PuglView *const view)
Definition stub.h:21
Definition pugl.h:326
#define void
Definition unzip.h:396