-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.cpp
50 lines (37 loc) · 967 Bytes
/
about.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "about.hpp"
#include <iostream>
About :: About() {
set_title("about");
set_default_size(300, 300);
set_visible(true);
set_resizable(false);
set_position(Gtk::WIN_POS_CENTER_ALWAYS);
draw_widgets();
set_hierarchy();
show_all_children();
}
About :: ~About() {
}
void About :: set_hierarchy() {
add(mbox);
mbox.pack_start(lblTitulo, Gtk :: PACK_SHRINK);
mbox.pack_start(lblVersao, Gtk :: PACK_SHRINK);
mbox.pack_start(lblAutor, Gtk :: PACK_SHRINK);
mbox.pack_start(lblAno, Gtk :: PACK_SHRINK);
mbox.pack_start(link, Gtk :: PACK_SHRINK);
}
void About :: draw_widgets() {
//mbox
mbox = Gtk :: Box(Gtk :: ORIENTATION_VERTICAL);
//lblTitulo
lblTitulo.set_label("SOS Board Game");
//lblAutor
lblAutor.set_label("Thiago F. B. da Silva");
//lblAno
lblAno.set_label("2023");
//lblVersão
lblVersao.set_label("Versão 1.0");
//lblLink
link.set_label("Site");
link.set_uri("https://github.com/ThiagoFBastos/SOS-Board-Game.git");
}