Euphoria
|
load.cc
Go to the documentation of this file.
285 if (const auto relative_image_file = io::FilePath::from_script_or_empty(src.button_image); relative_image_file)
#define FUN(NAME)
Definition: button.cc:13
void setup_layout(LayoutData *data, const files::gui::Widget &src)
Definition: load.cc:80
bool load_gui(Root *root, io::FileSystem *fs, render::FontCache *font, const io::FilePath &path, render::TextureCache *cache)
Definition: load.cc:308
std::shared_ptr< Layout > create_single_row_layout(float padding)
Definition: layoutcontainer.cc:30
void build_layout_container(io::FileSystem *fs, State *state, LayoutContainer *root, const files::gui::LayoutContainer &c, render::TextureCache *cache, const std::map< std::string, Skin * > &skins)
Definition: load.cc:188
std::shared_ptr< Skin > load_skin(const files::gui::Skin &src, render::FontCache *font, const io::DirPath &folder)
Definition: load.cc:263
ButtonState load_button(const files::gui::ButtonState &src)
Definition: load.cc:234
std::shared_ptr< Layout > create_table_layout(const std::vector< bool > &expandable_rows, const std::vector< bool > &expandable_cols, float combined_padding)
Definition: layoutcontainer.cc:10
std::shared_ptr< Layout > create_layout(const files::gui::Layout &c)
Definition: load.cc:26
std::shared_ptr< Widget > create_widget(io::FileSystem *fs, State *state, const files::gui::Widget &w, render::TextureCache *cache, const std::map< std::string, Skin * > &skins)
Definition: load.cc:104
Lrud< float > from_gaf_to_lrud(const files::gui::Lrtb &lrtd)
Definition: load.cc:90
JsonResult read_json_file(FileSystem *fs, const FilePath &file_name)
Definition: json.cc:58
std::optional< DirPath > resolve_relative(const DirPath &base)
Definition: vfs_path.cc:349
static Self from_lrud(const T &lr, const T &ud)
Create a new fourway from left-righ and up-down.
Definition: lrud.h:41
Definition: gui.h:109
InterpolationType interpolate_color
Definition: gui.h:120
float interpolate_position_time
Definition: gui.h:118
float interpolate_color_time
Definition: gui.h:121
InterpolationType interpolate_size
Definition: gui.h:123
InterpolationType interpolate_position
Definition: gui.h:117
Definition: gui.h:140
Definition: gui.h:91
Definition: gui.h:85
Definition: gui.h:47
Definition: gui.h:102
Definition: gui.h:128
Definition: gui.h:55
Definition: skin.h:25
Interpolation interpolation_position
Definition: skin.h:33
Definition: button.h:26
Definition: load.cc:50
Definition: layoutcontainer.h:27
std::shared_ptr< gui::Layout > layout
Definition: layoutcontainer.h:28
Definition: layoutdata.h:6
Definition: root.h:36
Definition: skin.h:40
Definition: uistate.h:13
Definition: vfs_path.h:67
Definition: vfs_path.h:36
static std::optional< FilePath > from_script_or_empty(const std::string &path)
optional or not, log if error
Definition: vfs_path.cc:102
static std::optional< FilePath > from_script(const std::string &path)
apply only minor changes, return null on invalid
Definition: vfs_path.cc:46
Definition: vfs.h:74
Definition: fontcache.h:19
std::shared_ptr< DrawableFont > get_font(const io::FilePath &path) const
Definition: fontcache.cc:41
Definition: scalablesprite.h:28
Definition: texturecache.h:18
std::shared_ptr< Texture2 > get_texture(const io::FilePath &path) const
Definition: texturecache.cc:47