My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
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
#ifndef _WinGl_Console_h_
#define _WinGl_Console_h_

#include "ControlPanel.h"
#include "Scrollbar.h"

NAMESPACE_UPP

struct Console : Ctrl
{
Ctrl* parent;
SlimScrollBar sb;
SlimButton clear;

struct LineInfo : Moveable<LineInfo> {
Color ink;
String text;
};

bool init;
bool resize;
Point pos;
Point tl;
Size rs;
int currLine;
int scrollLine;
int maxLine;
VectorMap<int, LineInfo> fixedText;
Vector<LineInfo> floatText;
void Init(Ctrl& parent);
void SetConsoleRect(int x, int y, int cx = -1, int cy = -1);
virtual void Paint(Draw& w);
virtual void LeftDown(Point p, dword keys);
virtual void LeftUp(Point p, dword keys);
virtual void MouseMove(Point p, dword keys);
virtual void Layout();

void Log(int line, const char* text, Color ink = White);
void Log(const char* text, Color ink = White);

void SetLines(int lines);
void Show(bool b = true);
void Clear();

typedef Console CLASSNAME;
Console();
};

END_UPP_NAMESPACE

#endif

Change log

r4188 by unodgs on Nov 22, 2011   Diff
WinGL: Added automatic atlas textures,
fixed some bugs
Go to: 
Project members, sign in to write a code review

Older revisions

r3915 by unodgs on Sep 26, 2011   Diff
Rainbow: WinGL..
All revisions of this file

File info

Size: 969 bytes, 51 lines

File properties

svn:eol-style
native
Powered by Google Project Hosting