@@ -53,53 +53,53 @@ int main(int argc, char** argv)
53
53
egt::HorizontalBoxSizer hbox_big (vbox);
54
54
egt::expand_horizontal (hbox_big);
55
55
hbox_big.justify (egt::Justification::justify);
56
- TestButton b01 (hbox_big, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), true , false );
57
- TestButton b02 (hbox_big, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), false , false );
58
- TestButton b03 (hbox_big, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), true , true );
59
- TestButton b04 (hbox_big, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), false , true );
60
- TestButton b05 (hbox_big, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), true , false );
61
- TestButton b06 (hbox_big, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), false , false );
62
- TestButton b07 (hbox_big, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), true , true );
63
- TestButton b08 (hbox_big, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), false , true );
56
+ TestButton b01 (hbox_big, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), true , false );
57
+ TestButton b02 (hbox_big, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), false , false );
58
+ TestButton b03 (hbox_big, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), true , true );
59
+ TestButton b04 (hbox_big, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), false , true );
60
+ TestButton b05 (hbox_big, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), true , false );
61
+ TestButton b06 (hbox_big, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), false , false );
62
+ TestButton b07 (hbox_big, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), true , true );
63
+ TestButton b08 (hbox_big, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), false , true );
64
64
65
65
egt::Label lbl1 (vbox, " ImageButton without text, original image size is 128x128" , egt::Rect (0 , 0 , 1400 , 50 ));
66
66
egt::HorizontalBoxSizer hbox_big2 (vbox);
67
67
egt::expand_horizontal (hbox_big2);
68
68
hbox_big2.justify (egt::Justification::justify);
69
- TestButton b11 (hbox_big2, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), true , false );
70
- TestButton b12 (hbox_big2, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), false , false );
71
- TestButton b13 (hbox_big2, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), true , true );
72
- TestButton b14 (hbox_big2, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), false , true );
73
- TestButton b15 (hbox_big2, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), true , false );
74
- TestButton b16 (hbox_big2, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), false , false );
75
- TestButton b17 (hbox_big2, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), true , true );
76
- TestButton b18 (hbox_big2, egt::Image (" icon:egt_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), false , true );
69
+ TestButton b11 (hbox_big2, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), true , false );
70
+ TestButton b12 (hbox_big2, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), false , false );
71
+ TestButton b13 (hbox_big2, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), true , true );
72
+ TestButton b14 (hbox_big2, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), false , true );
73
+ TestButton b15 (hbox_big2, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), true , false );
74
+ TestButton b16 (hbox_big2, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), false , false );
75
+ TestButton b17 (hbox_big2, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), true , true );
76
+ TestButton b18 (hbox_big2, egt::Image (" icon:mgs_logo_icon .png;128" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), false , true );
77
77
78
78
egt::Label lbl2 (vbox, " ImageButton with text, original image size is 32x32" , egt::Rect (0 , 0 , 1400 , 50 ));
79
79
egt::HorizontalBoxSizer hbox_small (vbox);
80
80
egt::expand_horizontal (hbox_small);
81
81
hbox_small.justify (egt::Justification::justify);
82
- TestButton b21 (hbox_small, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), true , false );
83
- TestButton b22 (hbox_small, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), false , false );
84
- TestButton b23 (hbox_small, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), true , true );
85
- TestButton b24 (hbox_small, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), false , true );
86
- TestButton b25 (hbox_small, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), true , false );
87
- TestButton b26 (hbox_small, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), false , false );
88
- TestButton b27 (hbox_small, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), true , true );
89
- TestButton b28 (hbox_small, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), false , true );
82
+ TestButton b21 (hbox_small, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), true , false );
83
+ TestButton b22 (hbox_small, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), false , false );
84
+ TestButton b23 (hbox_small, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), true , true );
85
+ TestButton b24 (hbox_small, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 100 , 50 ), false , true );
86
+ TestButton b25 (hbox_small, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), true , false );
87
+ TestButton b26 (hbox_small, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), false , false );
88
+ TestButton b27 (hbox_small, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), true , true );
89
+ TestButton b28 (hbox_small, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{" test" }, egt::Rect (0 , 0 , 0 , 0 ), false , true );
90
90
91
91
egt::Label lbl3 (vbox, " ImageButton without text, original image size is 32x32" , egt::Rect (0 , 0 , 1400 , 50 ));
92
92
egt::HorizontalBoxSizer hbox_small2 (vbox);
93
93
egt::expand_horizontal (hbox_small2);
94
94
hbox_small2.justify (egt::Justification::justify);
95
- TestButton b31 (hbox_small2, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), true , false );
96
- TestButton b32 (hbox_small2, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), false , false );
97
- TestButton b33 (hbox_small2, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), true , true );
98
- TestButton b34 (hbox_small2, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), false , true );
99
- TestButton b35 (hbox_small2, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), true , false );
100
- TestButton b36 (hbox_small2, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), false , false );
101
- TestButton b37 (hbox_small2, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), true , true );
102
- TestButton b38 (hbox_small2, egt::Image (" icon:egt_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), false , true );
95
+ TestButton b31 (hbox_small2, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), true , false );
96
+ TestButton b32 (hbox_small2, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), false , false );
97
+ TestButton b33 (hbox_small2, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), true , true );
98
+ TestButton b34 (hbox_small2, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 100 , 50 ), false , true );
99
+ TestButton b35 (hbox_small2, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), true , false );
100
+ TestButton b36 (hbox_small2, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), false , false );
101
+ TestButton b37 (hbox_small2, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), true , true );
102
+ TestButton b38 (hbox_small2, egt::Image (" icon:mgs_logo_icon .png;32" ), std::string{}, egt::Rect (0 , 0 , 0 , 0 ), false , true );
103
103
104
104
window.show ();
105
105
0 commit comments