41 using Ptr = std::shared_ptr<CanvasBase>;
42 using ConstPtr = std::shared_ptr<const CanvasBase>;
50 CanvasBase(
const char* typeName,
bool initRenderer);
59 TGUI_DEPRECATED(
"Use setIgnoreMouseEvents instead") void ignoreMouseEvents(
bool ignore = true);
66 TGUI_DEPRECATED("Use getIgnoreMouseEvents instead") TGUI_NODISCARD
bool isIgnoringMouseEvents() const;
74 TGUI_NODISCARD
bool canGainFocus() const override;
80 TGUI_NODISCARD
bool isMouseOnWidget(
Vector2f pos) const override;
88 TGUI_NODISCARD std::unique_ptr<DataIO::Node> save(SavingRenderersMap& renderers) const override;
93 void load(const std::unique_ptr<DataIO::Node>& node, const LoadingRenderersMap& renderers) override;
98 bool m_ignoringMouseEvents = false;