-
Notifications
You must be signed in to change notification settings - Fork 0
/
tampilan.h
96 lines (83 loc) · 2.56 KB
/
tampilan.h
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/**
* Program file name : tampilan.h
* Description : deklarasi prototipe modul-modul behavior untuk tampilan pada Kakuraato.
* Author : Danu Mahesa, 211524037
* Compiler : GCC
*
*/
#ifndef tampilan_h
#define tampilan_h
/**
* Mendapatkan lebar screen monitor user dalam bilangan integer.
*/
int getScreenWidth();
/**
* Mendapatkan tinggi screen monitor user dalam bilangan integer.
*/
int getScreenHeight();
/**
* Mengarahkan kursor untuk tampilan output ataupun kursor
* untuk proses inputan ke koordinat yang diinginkan di dalam
* tampilan jendela konsol.
*
* I.S. : Kursor masih berada di posisi default (sebelah kiri jendela konsol)
* F.S. : Kursor sudah berada pada posisi yang diejawantahkan.
*/
void gotoxy(int x, int y);
/**
* Menampilkan tampilan main menu.
*
* I.S. : Tampilan main menu belum tampil di layar.
* F.S. : Tampilan main menu tampil di layar.
*/
void tampilMainMenu();
/**
* Menampilkan tampilan kalkulator standar.
*
* I.S. : Tampilan kalkulator standar belum tampil di layar
* F.S. : Tampilan kalkulator standar tampil di layar.
*/
void tampilKalkStandar();
/**
* Menampilkan tampilan kalkulator akar kuadrat.
*
* I.S. : Tampilan kalkulator akar kuadrat belum tampil di layar.
* F.S. : Tampilan kalkulator akar kuadrat tampil di layar.
*/
void tampilKalkAkur();
/**
* Membaca lalu menampilkan file yang berisi fitur help
*
* I.S. : Isi file yang berisi fitur help belum tampil di layar.
* F.S. : Isi file yang berisi fitur help tampil di layar.
*/
void tampilHelp();
/**
* Menampilkan tampilan credit ataupun author.
*
* I.S. : tampilan credit belum tampil di layar.
* F.S. : tampilan credit tampil di layar.
*/
void tampilCredit();
/**
* Menampilkan teks banner “Kakurato” pada saat tampilan main menu dimuat di dalam jendela konsol aplikasi.
*
* I.S. : tampilan teks banner belum muncul.
* F.S. : tampilan teks banner sudah muncul.
*/
void printBanner();
/**
* Mengubah karakter-karakter pada array teks banner di dalam method printBanner agar menjadi character blok yang diperindah.
*
* I.S. : Array banner masih berupa karakter standar
* F.S. : Array banner sudah dikonversi menjadi bentuk blok-blok pada karakter ASCII extended.
*/
void printASCIIforBanner(char ch);
/**
* Mengubah karakter-karakter pada array history table agar menjadi character blok ASCII extended sehingga membentuk tabel.
*
* I.S. : Array historyTable masih berupa karakter standar
* F.S. : Array historyTable sudah menjadi karakter ASCII extended.
*/
void printASCIIforHistTable(char ch);
#endif