We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1d4f9 commit da023a3Copy full SHA for da023a3
docs/snippets/graphics_event.cc
@@ -4,7 +4,7 @@ void doc_Event() {
4
5
// tag::loop[]
6
while (auto event = gf::Event::poll()) {
7
- switch (event->type) {
+ switch (event->type()) {
8
case gf::EventType::Quit:
9
// close the window
10
break;
docs/snippets/graphics_window.cc
@@ -9,7 +9,7 @@ void doc_Window() {
while (!window.should_close()) {
11
12
13
14
window.close(); // don't forget this!
15
0 commit comments