Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628012
TextArea.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
1 KB
Referenced Files
None
Subscribers
None
TextArea.h
View Options
/***************************************************************************
TextArea.h - description
-------------------
begin : Wed Jan 28 2004
copyright : (C) 2004 by upi
email : upi@feel
***************************************************************************/
#ifndef TEXTAREA_H
#define TEXTAREA_H
#include
"SDL_video.h"
struct
SDL_Surface
;
struct
_sge_TTFont
;
#include
<string>
#include
<list>
typedef
std
::
list
<
std
::
string
>
TStringList
;
typedef
std
::
list
<
int
>
TIntList
;
class
CTextArea
{
public
:
CTextArea
(
SDL_Surface
*
a_poScreen
,
_sge_TTFont
*
a_poFont
,
int
a_x
,
int
a_y
,
int
a_w
,
int
a_h
);
~
CTextArea
();
void
TintBackground
(
int
a_iColor
,
int
a_iAlpha
);
void
AddString
(
const
char
*
a_poText
,
int
a_iColor
);
void
Redraw
();
void
Clear
();
void
ScrollUp
();
void
ScrollDown
();
protected
:
SDL_Surface
*
m_poScreen
;
SDL_Surface
*
m_poBackground
;
_sge_TTFont
*
m_poFont
;
SDL_Rect
m_oClipRect
;
int
x
,
y
,
w
,
h
;
int
m_iScrollOffset
;
TStringList
m_asRowTexts
;
TIntList
m_aiRowColors
;
};
#endif
// TEXTAREA_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 3:08 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
133398
Default Alt Text
TextArea.h (1 KB)
Attached To
Mode
R76 OpenMortal
Attached
Detach File
Event Timeline