mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add iframe ui element
This commit is contained in:
parent
6a7e71c614
commit
71d3756902
5 changed files with 95 additions and 2 deletions
23
src/graphics/ui/elements/InlineFrame.hpp
Normal file
23
src/graphics/ui/elements/InlineFrame.hpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include "Container.hpp"
|
||||
|
||||
class UiDocument;
|
||||
|
||||
namespace gui {
|
||||
class InlineFrame : public Container {
|
||||
public:
|
||||
explicit InlineFrame(GUI& gui);
|
||||
virtual ~InlineFrame();
|
||||
|
||||
void setSrc(const std::string& src);
|
||||
void setDocument(const std::shared_ptr<UiDocument>& document);
|
||||
|
||||
void act(float delta) override;
|
||||
void setSize(glm::vec2 size) override;
|
||||
private:
|
||||
std::string src;
|
||||
std::shared_ptr<UiDocument> document;
|
||||
std::shared_ptr<UINode> root;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue