ScummVM API documentation
gbevel.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 *
21 * Based on the original sources
22 * Faery Tale II -- The Halls of the Dead
23 * (c) 1993-1996 The Wyrmkeep Entertainment Co.
24 */
25
26#ifndef SAGA2_GBEVEL_H
27#define SAGA2_GBEVEL_H
28
29namespace Saga2 {
30
31/* ===================================================================== *
32 Standard Pens
33 * ===================================================================== */
34
35// Defines all the standard drawing pens for bevels
36
37enum bevelPens {
38
39 kTranspPen = 0, // transparent pen for mouse
40
41 // color pens
42
43 kBlackPen, // black
44 kWhitePen, // white
45
46 // Background pens
47
48 kBackPen, // background fill
49 kBackLtPen, // background highlight
50 kBackDkPen, // background shadow
51
52 // Button pens
53
54 kButtonPen, // button fill color
55 kButtonLtPen, // button highlight
56 kButtonDkPen, // button shadow
57
58 // UI highlighting pens
59
60 kHilitePen, // text highlight color
61
62 kCStdPenCount
63};
64
65/* ===================================================================== *
66 Bevel Boxes
67 * ===================================================================== */
68
69enum bevelOptions {
70 kBevelRecessed = (1 << 0), // bevel is pushed in
71 kBevelFilled = (1 << 1), // bevel filled with approp. color
72 kBevelInverted = (1 << 2) // pushed in w/slightly diff. look
73};
74
75void DrawBevelFrame(gPort &port, const Rect16 &r, uint16 flags);
76void DrawOutlineFrame(gPort &port, const Rect16 &r, int16 fillColor);
77void DrawTitleBar(gPort &port, const Rect16 &extent, int16 selected, char *title);
78void DrawTextFrame(gPort &port, const Rect16 &r);
79void ThinBevelFrame(gPort &port, const Rect16 &r, gPen ul, gPen lr, gPen corner);
80void DrawWell(gPort &port, const Rect16 &r, gPen fillColor, uint16 flags);
81
82} // end of namespace Saga2
83
84#endif