StatusBar::StatusBar(GUIComponent *parent) : GUIComponent(parent, CssStr::StatusBar::type_name), impl(new StatusBar_Impl) { impl->statusbar = this; func_resized().set(impl.get(), &StatusBar_Impl::on_resized); func_render().set(impl.get(), &StatusBar_Impl::on_render); func_input_doubleclick().set(impl.get(), &StatusBar_Impl::on_input_doubleclick); impl->create_parts(); }
CL_StatusBar::CL_StatusBar(CL_GUIComponent *parent) : CL_GUIComponent(parent), impl(new CL_StatusBar_Impl) { set_type_name("statusbar"); impl->statusbar = this; func_resized().set(impl.get(), &CL_StatusBar_Impl::on_resized); func_render().set(impl.get(), &CL_StatusBar_Impl::on_render); func_style_changed().set(impl.get(), &CL_StatusBar_Impl::on_style_changed); func_input_doubleclick().set(impl.get(), &CL_StatusBar_Impl::on_input_doubleclick); impl->create_parts(); }
GridComponent::GridComponent(clan::GUIComponent *parent, GuiEditorWindow *main_window) : clan::GUIComponent(parent), main_window(main_window), component_container(0), component_overlay(0), boundary(320,200) { set_tag_name("grid"); func_input_pressed().set(this, &GridComponent::on_input_pressed); func_input_released().set(this, &GridComponent::on_input_released); func_input_doubleclick().set(this, &GridComponent::on_input_doubleclick); func_input_pointer_moved().set(this, &GridComponent::on_input_pointer_moved); func_render().set(this, &GridComponent::on_render); func_resized().set(this, &GridComponent::on_resized); part_windowframe = clan::GUIThemePart(this, "window-frame"); edit_state.set_grid_component(this); component_container = new clan::GUIComponent(this); component_overlay = new clan::GUIComponent(this); component_overlay->func_render().set(this, &GridComponent::on_render_overlay); }