Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F621410
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
667 B
Referenced Files
None
Subscribers
None
messages.h
View Options
#ifndef _paintown_messages_h
#define _paintown_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
Sat, Nov 14, 7:05 PM (19 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
114003
Default Alt Text
messages.h (667 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline