Euphoria
eu::gui::Root Struct Reference

#include <root.h>

Public Member Functions

 Root (const size2f &s)
 
 ~Root ()
 
 Root (const Root &other)=delete
 
void operator= (const Root &)=delete
 
 Root (Root &&other)=delete
 
void operator= (Root &&)=delete
 
bool load (io::FileSystem *fs, render::FontCache *font, const ::eu::io::FilePath &path, render::TextureCache *cache)
 
void set_input_mouse (const vec2f &pos, bool down)
 
void update (float dt)
 
void set_size (const size2f &new_size)
 
void render (render::SpriteRenderer *sp) const
 

Public Attributes

std::vector< std::shared_ptr< Skin > > skins
 
size2f size
 
State state
 
LayoutContainer container
 
std::shared_ptr< render::Texture2cursor_image
 
std::shared_ptr< render::Texture2hover_image
 

Detailed Description

Definition at line 35 of file root.h.

Constructor & Destructor Documentation

◆ Root() [1/3]

eu::gui::Root::Root ( const size2f s)
explicit

Definition at line 13 of file root.cc.

◆ ~Root()

eu::gui::Root::~Root ( )
default

◆ Root() [2/3]

eu::gui::Root::Root ( const Root other)
delete

◆ Root() [3/3]

eu::gui::Root::Root ( Root &&  other)
delete

Member Function Documentation

◆ load()

bool eu::gui::Root::load ( io::FileSystem fs,
render::FontCache font,
const ::eu::io::FilePath path,
render::TextureCache cache 
)

Definition at line 23 of file root.cc.

◆ operator=() [1/2]

void eu::gui::Root::operator= ( const Root )
delete

◆ operator=() [2/2]

void eu::gui::Root::operator= ( Root &&  )
delete

◆ render()

void eu::gui::Root::render ( render::SpriteRenderer sp) const

Definition at line 68 of file root.cc.

◆ set_input_mouse()

void eu::gui::Root::set_input_mouse ( const vec2f pos,
bool  down 
)

Definition at line 43 of file root.cc.

◆ set_size()

void eu::gui::Root::set_size ( const size2f new_size)

Definition at line 60 of file root.cc.

◆ update()

void eu::gui::Root::update ( float  dt)

Definition at line 51 of file root.cc.

Member Data Documentation

◆ container

LayoutContainer eu::gui::Root::container

Definition at line 69 of file root.h.

◆ cursor_image

std::shared_ptr<render::Texture2> eu::gui::Root::cursor_image

Definition at line 70 of file root.h.

◆ hover_image

std::shared_ptr<render::Texture2> eu::gui::Root::hover_image

Definition at line 71 of file root.h.

◆ size

size2f eu::gui::Root::size

Definition at line 67 of file root.h.

◆ skins

std::vector<std::shared_ptr<Skin> > eu::gui::Root::skins

Definition at line 66 of file root.h.

◆ state

State eu::gui::Root::state

Definition at line 68 of file root.h.


The documentation for this struct was generated from the following files: