TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas.core.ui.widgets Module Reference

Functions

bool atlas::ui::begin_popup_context_window (const char *str_id, ImGuiMouseButton mb, bool over_items)
 This is a free-standing function around ImGui::BeginPopupContextWindow.
 
void atlas::ui::draw_vec3 (const std::string &p_tag, glm::vec3 &p_position, float p_reset_value=0.f)
 UI render glm::vec3 values to imgui.
 
void atlas::ui::draw_vec4 (const std::string &p_tag, glm::vec4 &p_value, float p_reset_value=0.f)
 UI render glm::vec4 values to imgui.
 
void atlas::ui::draw_float (const std::string &p_tag, float &p_value, float reset_value=0.f)
 UI render glm::vec4 values to imgui.
 
void atlas::ui::draw_input_text (std::string &p_dst, std::string &p_src)
 UI rendering input text.
 
void atlas::ui::draw_text (const std::string &p_value)
 For UI rendering text to display and not input.
 
template<typename UComponent , typename UFunction >
void atlas::ui::draw_panel_component (const std::string &p_name, flecs::entity &p_entity, const UFunction &p_callback)
 Creates a panel that can be used to attach list of properties or other widgets too.
 
void atlas::ui::dockspace_window (GLFWwindow *p_window)
 used for creating a main dockspace for the editor
 
template<typename T , typename UFunction >
void atlas::ui::draw_component (const std::string &p_tag, flecs::entity &p_entity, const UFunction &p_callable)
 
void atlas::ui::button_open_file_dialog (const std::string &p_tag, std::string &p_filename, const std::string &p_filter="obj;glftf;fbx")
 opens up a file dialog that uses imgui's button widget to make this happen
 

Files

file  TheAtlasEngine/atlas/core/ui/widgets.cppm