35 struct
no_ecs :
std::logic_error {
no_ecs() : std::logic_error{
"neogfx::game::canvas::no_ecs" } {} };
40 canvas(std::shared_ptr<game::i_ecs> aEcs);
52 void set_ecs(
const std::shared_ptr<game::i_ecs>& aEcs);
66 std::shared_ptr<game::i_ecs> iEcs;
67 std::vector<bool> iLayers;
69 std::optional<widget_timer> iUpdater;
canvas(i_widget &aParent)
canvas(i_layout &aLayout, std::shared_ptr< game::i_ecs > aEcs)
void hide_layer(int32_t aLayer)
game::i_ecs & ecs() const
neogfx::logical_coordinate_system logical_coordinate_system() const override
void mouse_button_pressed(mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers) override
canvas(i_widget &aParent, game::i_ecs &aEcs)
define_event(RenderingEntities, rendering_entities, i_graphics_context &, int32_t) define_event(EntitiesRendered
canvas(i_layout &aLayout, game::i_ecs &aEcs)
bool layer_visible(int32_t aLayer) const
void set_ecs(game::i_ecs &aEcs)
void show_layer(int32_t aLayer)
canvas(i_layout &aLayout)
i_graphics_context int32_t entity_double_clicked
canvas(game::i_ecs &aEcs)
canvas(i_widget &aParent, std::shared_ptr< game::i_ecs > aEcs)
canvas(std::shared_ptr< game::i_ecs > aEcs)
void set_layers(int32_t aLayers)
void mouse_button_double_clicked(mouse_button aButton, const point &aPosition, key_modifiers_e aKeyModifiers) override
void set_ecs(const std::shared_ptr< game::i_ecs > &aEcs)
logical_coordinate_system
#define define_event(name, declName,...)