Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F632466
messages.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
663 B
Referenced Files
None
Subscribers
None
messages.h
View Options
#ifndef _rtech1_messages_h
#define _rtech1_messages_h
#include
<string>
#include
<vector>
#include
"graphics/color.h"
namespace
Graphics
{
class
Bitmap
;
}
class
Font
;
class
Messages
{
public
:
Messages
(
int
width
,
int
height
,
int
opaque
=
128
);
virtual
inline
int
getHeight
()
const
{
return
height
;
}
virtual
inline
int
getWidth
()
const
{
return
width
;
}
virtual
void
addMessage
(
const
std
::
string
&
s
);
virtual
void
draw
(
int
x
,
int
y
,
const
Graphics
::
Bitmap
&
work
,
const
Font
&
font
);
virtual
~
Messages
();
protected
:
int
width
;
int
height
;
int
opaque
;
Graphics
::
Color
borderColor
;
std
::
vector
<
std
::
string
>
messages
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 2:27 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
129268
Default Alt Text
messages.h (663 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline