1 #include "lxgui/gui_layout_node.hpp"
2 #include "lxgui/gui_out.hpp"
3 #include "lxgui/gui_parser_common.hpp"
4 #include "lxgui/gui_slider.hpp"
5 #include "lxgui/gui_texture.hpp"
33 auto thumb_texture =
parse_region_(defaulted,
"ARTWORK",
"Texture");
35 thumb_texture->set_manually_inherited(
true);
40 thumb_node->bypass_access_check();
virtual void parse_all_nodes_before_children_(const layout_node &node)
void parse_attributes_(const layout_node &node) override
utils::observer_ptr< layered_region > parse_region_(const layout_node &node, const std::string &layer_name, const std::string &type)
An node in a layout file.
std::optional< std::string_view > try_get_attribute_value(std::string_view name) const noexcept
Returns the value of the attribute with the provided name, nullopt if not found.
std::string_view get_or_set_attribute_value(std::string_view name, std::string_view value)
Returns the value of the attribute with the provided name, or set it if none.
const layout_node * try_get_child(std::string_view name) const noexcept
Returns the first child with a given name, or null if none.
void set_value(float value, bool silent=false)
Sets this slider's value.
void set_orientation(orientation orient)
Sets the orientation of this slider.
void parse_attributes_(const layout_node &node) override
void set_min_value(float min_value)
Sets this slider's minimum value.
void set_thumb_texture(utils::observer_ptr< texture > tex)
Sets the texture to use for the thumb.
void parse_all_nodes_before_children_(const layout_node &node) override
void set_thumb_draw_layer(layer thumb_layer)
Sets the draw layer of this slider's thumb texture.
void set_value_step(float value_step)
Sets this slider's value step.
void set_max_value(float max_value)
Sets this slider's maximum value.
layer
ID of a layer for rendering inside a frame.
void warn_for_not_accessed_node(const layout_node &node)
Emit a warning if this node (or any of its attributes/children) was not read.