Browse Source

doOnClick(), createComponentTree(), build UI from browser.ntrml

Odilitime 5 years ago
parent
commit
1812283434
  1. 6
      src/browser.h

6
src/browser.h

@ -15,6 +15,8 @@ @@ -15,6 +15,8 @@
#include "URL.h"
#include "graphics/opengl/Window.h"
void doOnClick(std::string type, Component *component, Window *win);
// this is the actually application that
// contains a list of windows
// separate window functions from browser functions
@ -22,6 +24,7 @@ class Browser { @@ -22,6 +24,7 @@ class Browser {
private:
public:
Browser();
void createComponentTree(const std::shared_ptr<Node> node, const std::shared_ptr<Component> &parentComponent, const std::shared_ptr<Window> win);
void addWindow();
void render();
void loop();
@ -30,6 +33,9 @@ public: @@ -30,6 +33,9 @@ public:
void navTo(std::string url);
// properties
std::shared_ptr<Node> uiRootNode;
std::vector<std::shared_ptr<Component>> layers;
std::vector<std::shared_ptr<Window>> windows;
Window *activeWindow = nullptr;
size_t windowCounter = 0;

Loading…
Cancel
Save