repo.or.cz
/
NXEngine.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
NXEngine v1.0.0.6
[NXEngine.git]
/
TextBox
/
YesNoPrompt.h
blob
dc7286aac41fa5be31d623550bec164a64c663c0
1
2
#ifndef _YESNOPROMPT_H
3
#define _YESNOPROMPT_H
4
5
enum
YNJResult
6
{
7
NO
,
8
YES
9
};
10
11
class
TB_YNJPrompt
12
{
13
public
:
14
void
SetVisible
(
bool
enable
);
15
void
ResetState
();
16
17
void
Draw
();
18
19
bool
IsVisible
() {
return
fVisible
; }
20
bool
ResultReady
();
// returns true if the user has selected a result
21
int
GetResult
();
// returns YES or NO
22
23
private
:
24
bool
fVisible
;
25
struct
{
int
y
; }
fCoords
;
26
27
int
fState
;
28
int
fTimer
;
29
30
int
fAnswer
;
31
};
32
33
34
#endif