20 #ifndef _MFORMS_SECTIONBOX_H_
21 #define _MFORMS_SECTIONBOX_H_
25 #include "cairo/cairo.h"
37 friend class HeaderBox;
50 SectionBox(
bool expandable,
const std::string& title,
bool header_mode=
false);
53 void set_content(
View* page);
55 void set_expanded(
bool expanded);
59 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62 class HeaderBox :
public DrawBox
66 double _caption_offset;
73 void draw_background(cairo_t* cr,
int width,
int height);
75 HeaderBox(SectionBox* owner,
bool header_mode);
77 void repaint(cairo_t* cr,
int x,
int y,
int w,
int h);
85 #endif // _MFORMS_SECTIONBOX_H_