aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_cpp_demo.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-12 10:30:10 -0500
committerDavid Robillard <d@drobilla.net>2023-01-14 11:53:28 -0500
commitbd4f79646f623e929e6aa22bea028952b515aeef (patch)
treee2dcc2635bb2b12b9c552755b35a0343005ce88a /examples/pugl_cpp_demo.cpp
parent786a28e4a2bc9fce95a8d2e6cd1a4c76d2ae1a0f (diff)
downloadpugl-bd4f79646f623e929e6aa22bea028952b515aeef.tar.gz
pugl-bd4f79646f623e929e6aa22bea028952b515aeef.tar.bz2
pugl-bd4f79646f623e929e6aa22bea028952b515aeef.zip
Add general string hint interface
This replaces the window title and class name APIs with a more general one that can be easily extended to other things, like icon names, more detailed application hints, and so on.
Diffstat (limited to 'examples/pugl_cpp_demo.cpp')
-rw-r--r--examples/pugl_cpp_demo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pugl_cpp_demo.cpp b/examples/pugl_cpp_demo.cpp
index 49d547f..2b3c0a1 100644
--- a/examples/pugl_cpp_demo.cpp
+++ b/examples/pugl_cpp_demo.cpp
@@ -112,9 +112,9 @@ main(int argc, char** argv)
CubeView view{world};
PuglFpsPrinter fpsPrinter{};
- world.setClassName("PuglCppDemo");
+ world.setString(pugl::StringHint::className, "PuglCppDemo");
- view.setWindowTitle("Pugl C++ Demo");
+ view.setString(pugl::StringHint::windowTitle, "Pugl C++ Demo");
view.setSizeHint(pugl::SizeHint::defaultSize, 512, 512);
view.setSizeHint(pugl::SizeHint::minSize, 64, 64);
view.setSizeHint(pugl::SizeHint::maxSize, 1024, 1024);