aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-08-04 18:20:35 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:34:39 +0200
commitf98e804c5f844f2dd78e94f7a1c9db15b7332fbb (patch)
tree1a3a997904eb1b68694799e302841ce980171349 /pugl/detail
parent411c7ddbb044d0eae8307858d1254ca830f0a44a (diff)
downloadpugl-f98e804c5f844f2dd78e94f7a1c9db15b7332fbb.tar.gz
pugl-f98e804c5f844f2dd78e94f7a1c9db15b7332fbb.tar.bz2
pugl-f98e804c5f844f2dd78e94f7a1c9db15b7332fbb.zip
Move trivial deprecated implementations to header
Again just makes non-deprecated things easier to read and review, and also cleans up the symbol table.
Diffstat (limited to 'pugl/detail')
-rw-r--r--pugl/detail/implementation.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c
index ac3f527..d6e4b86 100644
--- a/pugl/detail/implementation.c
+++ b/pugl/detail/implementation.c
@@ -44,21 +44,6 @@ puglSetDefaultHints(PuglHints hints)
hints[PUGL_IGNORE_KEY_REPEAT] = PUGL_FALSE;
}
-PuglView*
-puglInit(int* PUGL_UNUSED(pargc), char** PUGL_UNUSED(argv))
-{
- return puglNewView(puglNewWorld());
-}
-
-void
-puglDestroy(PuglView* const view)
-{
- PuglWorld* const world = view->world;
-
- puglFreeView(view);
- puglFreeWorld(world);
-}
-
PuglWorld*
puglNewWorld(void)
{
@@ -143,13 +128,6 @@ puglInitWindowHint(PuglView* view, PuglWindowHint hint, int value)
}
void
-puglInitWindowSize(PuglView* view, int width, int height)
-{
- view->frame.width = width;
- view->frame.height = height;
-}
-
-void
puglInitWindowMinSize(PuglView* view, int width, int height)
{
view->minWidth = width;
@@ -186,12 +164,6 @@ puglInitWindowParent(PuglView* view, PuglNativeWindow parent)
}
void
-puglInitResizable(PuglView* view, bool resizable)
-{
- view->hints[PUGL_RESIZABLE] = resizable;
-}
-
-void
puglInitTransientFor(PuglView* view, uintptr_t parent)
{
view->transientParent = parent;
@@ -222,13 +194,6 @@ puglGetVisible(PuglView* view)
return view->visible;
}
-void
-puglGetSize(PuglView* view, int* width, int* height)
-{
- *width = (int)view->frame.width;
- *height = (int)view->frame.height;
-}
-
PuglRect
puglGetFrame(const PuglView* view)
{
@@ -254,12 +219,6 @@ puglLeaveContext(PuglView* view, bool drawing)
}
void
-puglIgnoreKeyRepeat(PuglView* view, bool ignore)
-{
- puglInitWindowHint(view, PUGL_IGNORE_KEY_REPEAT, ignore);
-}
-
-void
puglSetEventFunc(PuglView* view, PuglEventFunc eventFunc)
{
view->eventFunc = eventFunc;