aboutsummaryrefslogtreecommitdiff
path: root/gui/console.h
diff options
context:
space:
mode:
authorEugene Sandulenko2006-05-27 05:46:04 +0000
committerEugene Sandulenko2006-05-27 05:46:04 +0000
commitb56c7b88d7de665f92e1600f81dcec5c4af3a2aa (patch)
tree08f6922d09a77b9d4f93c3aa354436e0e4c5713e /gui/console.h
parent3d0aa0a4d9fa36de8b8697ed65d8c1f4a6356a07 (diff)
downloadscummvm-rg350-b56c7b88d7de665f92e1600f81dcec5c4af3a2aa.tar.gz
scummvm-rg350-b56c7b88d7de665f92e1600f81dcec5c4af3a2aa.tar.bz2
scummvm-rg350-b56c7b88d7de665f92e1600f81dcec5c4af3a2aa.zip
Major GUI update:
- Implemented padding in console - Update only current line in console instead of whole screen - Fixed caret positioning in edit text widget - Improved buttons drawing, now they look more realistic - Added label spacing in popup widget - Correct shadow in popup widget - Fixed up with selected popup widget being drawn on wrong tab - Added shading to list dialog - Adjusted shading of inactive widgets - Proper coloring of browset (add game) dialog - Introduced Container widget - Used Container widget in scumm save/load dialog. Now it looks properly - Adjusted button colors even more. Now they match almost perfectly albeit with banding - Made scrollbar appear only when it is really needed svn-id: r22670
Diffstat (limited to 'gui/console.h')
-rw-r--r--gui/console.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/console.h b/gui/console.h
index 083b3a9420..ebe93b0e56 100644
--- a/gui/console.h
+++ b/gui/console.h
@@ -90,6 +90,11 @@ protected:
float _widthPercent, _heightPercent;
+ int _leftPadding;
+ int _rightPadding;
+ int _topPadding;
+ int _bottomPadding;
+
void slideUpAndClose();
public:
@@ -126,6 +131,9 @@ protected:
void init();
+ int pos2line(int pos) { return (pos - (_scrollLine - _linesPerPage + 1) * kLineWidth) / kLineWidth; }
+
+ void drawLine(int line, bool restoreBg = true);
void drawCaret(bool erase);
void putcharIntern(int c);
void insertIntoPrompt(const char *str);