//basic_window //@brief: constructor for the root window basic_window::basic_window(basic_window* owner, std::unique_ptr<widget_notifier_interface>&& wdg_notifier, category::root_tag**) : widget_notifier(std::move(wdg_notifier)), other(category::root_tag::value) { drawer.bind(this); _m_init_pos_and_size(nullptr, rectangle()); this->_m_initialize(owner); }
//basic_window //@brief: constructor for the root window basic_window::basic_window(basic_window* owner, gui::category::root_tag**) : other(category::root_tag::value) { drawer.attached(this); _m_init_pos_and_size(0, rectangle()); //wait for constexpr this->other.category = category::root_tag::value; this->_m_initialize(owner); }
basic_window(basic_window* parent, std::unique_ptr<widget_notifier_interface>&& wdg_notifier, const rectangle& r, Category**) : widget_notifier(std::move(wdg_notifier)), other(Category::value) { drawer.bind(this); if(parent) { _m_init_pos_and_size(parent, r); _m_initialize(parent); } }
basic_window(basic_window* parent, const rectangle& r, widget* wdg, Category**) : widget_ptr(wdg), other(Category::value) { drawer.bind(this); if(parent) { _m_init_pos_and_size(parent, r); _m_initialize(parent); } }