Skip to content

Instantly share code, notes, and snippets.

@sakex
Created June 23, 2020 18:19
Show Gist options
  • Save sakex/f6161d642b43b07cda104b0a7c897bfc to your computer and use it in GitHub Desktop.
Save sakex/f6161d642b43b07cda104b0a7c897bfc to your computer and use it in GitHub Desktop.
// main.cpp
#include <GUI/engine.hpp>
#include "CounterButton.hpp"
int main() {
// Instantiate the hypothetical engine
Engine engine();
// Instantiate the button
auto * counter = new CounterButton();
// Adds button to the view
engine.addButton(counter);
// Renders the hypothetical view
engine.render();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment