Sparkle 0.0.1
Loading...
Searching...
No Matches
spk_paint_module.hpp
1#pragma once
2
3#include "structure/system/event/spk_paint_event.hpp"
4
5#include "structure/widget/spk_widget.hpp"
6
7namespace spk
8{
9 namespace Module
10 {
16 class PaintModule final
17 {
18 private:
19 spk::Widget *_widget = nullptr;
20
21 public:
26 void setWidget(spk::Widget *p_widget);
31 void paint(spk::PaintEvent p_event);
32 };
33 }
34}
Forwards paint events to the bound widget.
Definition spk_paint_module.hpp:17
void paint(spk::PaintEvent p_event)
Dispatches a paint event to the widget if present.
Definition spk_paint_module.cpp:12
void setWidget(spk::Widget *p_widget)
Associates the module with a widget.
Definition spk_paint_module.cpp:7
Base class for interactive UI elements handling focus and events.
Definition spk_widget.hpp:52
Event emitted when a drawable region needs repainting.
Definition spk_paint_event.hpp:19