Debian Codegraph @

Examples/GUIStyle/ZZ_Theme/frame_zz.cpp

raw
1 #include <ClanLib/display.h>
2 #include <ClanLib/gl.h>
3
4 #include "frame_zz.h"
5 #include "stylemanager_zz.h"
6
7 CL_Frame_ZZ::CL_Frame_ZZ(
8 CL_Frame *frame,
9 CL_StyleManager_ZZ *style)
10 :
11 CL_ComponentStyle(frame),
12 frame(frame),
13 style(style)
14 {
15 slot_draw = frame->sig_paint().connect(this, &CL_Frame_ZZ::on_draw);
16 }
17
18 void CL_Frame_ZZ::on_draw()
19 {
20 CL_Display::clear(CL_Color(108, 139, 138));
21 }