11 std::string message =
"";
19 void add_line(
const std::string& line) {
27 void add_bullet_point(
const std::string& line) {
29 add_line(
" -\t" + line);
41 int x = btn->get<
int>(
"x");
42 int y = btn->get<
int>(
"y");
46 if(group->get_nr_children() > 1) {
49 int last_x = last_child->get<
int>(
"x");
50 int last_y = last_child->get<
int>(
"y");
51 int last_w = last_child->get<
int>(
"w");
52 int last_h = last_child->get<
int>(
"h");
54 x = last_x + (last_w > 200 ? last_w - 20 : 180);
65 connect_copy(btn->click, cgv::signal::rebind(
this, &help_message::show));
button_ptr add_button(const std::string &label, const std::string &options="", const std::string &align="\n")
use the current gui driver to append a new button with the given label