Debian Codegraph @

hiro/gtk/widget/canvas.hpp

raw
1 #if defined(Hiro_Canvas)
2
3 namespace hiro {
4
5 struct pCanvas : pWidget {
6 Declare(Canvas, Widget)
7
8 auto handle() const -> uintptr;
9 auto minimumSize() const -> Size override;
10 auto setAlignment(Alignment) -> void;
11 auto setColor(Color color) -> void;
12 auto setFocusable(bool focusable) -> void override;
13 auto setGeometry(Geometry geometry) -> void override;
14 auto setGradient(Gradient gradient) -> void;
15 auto setIcon(const image& icon) -> void;
16 auto update() -> void;
17
18 auto _onDraw(cairo_t* context) -> void;
19 auto _onExpose(GdkEventExpose* event) -> void;
20 auto _rasterize() -> void;
21 auto _redraw() -> void;
22 auto _release() -> void;
23
24 GdkPixbuf* surface = nullptr;
25 u32 surfaceWidth = 0;
26 u32 surfaceHeight = 0;
27 };
28
29 }
30
31 #endif