Symphony Of Empires
|
#include <main_menu.hpp>
Public Member Functions | |
MainMenuConnectServer (GameState &gs) | |
Public Member Functions inherited from UI::Window | |
Window (int x, int y, unsigned w, unsigned h, Widget *parent=nullptr) | |
virtual | ~Window () override |
void | set_close_btn_function (std::function< void(Widget &)> on_click) |
Public Member Functions inherited from UI::Widget | |
Widget ()=default | |
Widget (Widget *parent, int x, int y, unsigned w, unsigned h, WidgetType type) | |
Widget (Widget *parent, int x, int y, unsigned w, unsigned h, WidgetType type, std::shared_ptr< Eng3D::Texture > tex) | |
Widget (const Widget &)=default | |
Widget (Widget &&) noexcept=default | |
Widget & | operator= (Widget &) noexcept=default |
Widget & | operator= (const Widget &)=default |
virtual | ~Widget () |
constexpr void | move_by (const glm::ivec2 offset) |
Moves a widget by x and y. More... | |
void | add_child (UI::Widget &child) |
Adds a children to the widget. More... | |
template<typename T , typename ... Targs> | |
T & | make_widget (Targs &&...args) |
virtual void | on_render (Context &, Eng3D::Rect viewport) |
virtual void | set_text (const std::string &text) |
Generates text for the widget and overrides the current text texture. More... | |
virtual void | set_tooltip (UI::Tooltip *tooltip) |
Set the tooltip to be shown when this widget is hovered, overrides the previous tooltip. More... | |
virtual void | set_tooltip (const std::string &text) |
Set the tooltip to be shown when this widget is hovered, but generate it from a string instead of taking an already existing widget. More... | |
virtual void | set_tooltip (std::function< std::string()> tooltip_text_creator) |
Set the tooltip to be shown when this widget is hovered, but generate when used needed. It is created from a string instead of taking an already existing widget. More... | |
glm::ivec2 | get_y_bounds () const |
Obtains the height of the top and bottom overflow in widget That is the space that the children of this widget take up but cannot be seen. More... | |
void | scroll (int y) |
Scrolls all the children of this widget by a factor of y. More... | |
constexpr void | set_y (int _y) |
constexpr void | above_of (const UI::Widget &rhs) |
constexpr void | below_of (const UI::Widget &rhs) |
constexpr void | left_side_of (const UI::Widget &rhs) |
constexpr void | right_side_of (const UI::Widget &rhs) |
virtual void | set_on_click (std::function< void(UI::Widget &)> _on_click) |
Sets the on_click function of this widget. More... | |
virtual void | set_on_each_tick (std::function< void(UI::Widget &)> _on_each_tick) |
Sets the on_each_tick function of this widget. More... | |
virtual void | set_on_drag (std::function< void(glm::ivec2, glm::ivec2)> _on_drag) |
template<typename F > | |
void | sort_children (F &&comp) |
Sort the children of this widget. More... | |
void | kill () |
Kills the current widget, setting it up for deletion when dead widgets are cleared by the UI context. More... | |
void | kill_children () |
size_t | max_height () const |
Additional Inherited Members | |
Protected Member Functions inherited from UI::Widget | |
void | draw_rectangle (int x, int y, unsigned w, unsigned h, Eng3D::Rect viewport, const Eng3D::Texture *tex) |
void | draw_rect (const Eng3D::Texture *tex, Eng3D::Rect rect_pos, Eng3D::Rect rect_tex, Eng3D::Rect viewport) |
Protected Attributes inherited from UI::Widget | |
bool | clickable_effect = true |
Definition at line 37 of file main_menu.hpp.
Interface::MainMenuConnectServer::MainMenuConnectServer | ( | GameState & | gs | ) |
Definition at line 49 of file main_menu.cpp.
UI::Button* Interface::MainMenuConnectServer::conn_btn |
Definition at line 44 of file main_menu.hpp.
UI::Input* Interface::MainMenuConnectServer::ip_addr_inp |
Definition at line 42 of file main_menu.hpp.
UI::Input* Interface::MainMenuConnectServer::username_inp |
Definition at line 43 of file main_menu.hpp.