add try_engine
This commit is contained in:
44
src/rrr/layers/gui/browser/history/history.cpp
Normal file
44
src/rrr/layers/gui/browser/history/history.cpp
Normal file
@@ -0,0 +1,44 @@
|
||||
#include "history.hpp"
|
||||
|
||||
namespace rrr::layers::gui
|
||||
{
|
||||
void history::on_attach()
|
||||
{
|
||||
BASE_WINDOW_FLAGS();
|
||||
}
|
||||
|
||||
void history::on_detach()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void history::gui_render()
|
||||
{
|
||||
ImGui::SetNextWindowPos(ImVec2(pos_x, pos_y));
|
||||
ImGui::SetNextWindowSize(ImVec2(width, height));
|
||||
|
||||
BEGIN_IMGUI_WIN();
|
||||
|
||||
|
||||
END_IMGUI_WIN();
|
||||
}
|
||||
|
||||
void history::on_event(system_event& e)
|
||||
{
|
||||
if (e.get_name() == try_engine::system_event::classificator::WINDOW_RESIZE())
|
||||
{
|
||||
height = try_engine::application::get()->get_window()->height() - 40.f;
|
||||
width = try_engine::application::get()->get_window()->width() / 3.f;
|
||||
}
|
||||
}
|
||||
|
||||
void history::on_event(std::any e, std::any value)
|
||||
{
|
||||
}
|
||||
|
||||
void history::on_update(time t)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user