ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
border.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) by Fred Klaus *
3  * development@fkweb.de *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 #ifndef SDLTK_BORDER_H
21 #define SDLTK_BORDER_H
22 
23 #include "compspec.h"
24 #include "def.h"
25 #include "SDL.h"
26 
27 namespace sdltk
28 {
29 
31  class Border
32  {
33 
34  public:
35  enum BorderPos
36  {
37  bpTop = 0,
38  bpBottom = 1,
39  bpLeft = 2,
40  bpRight = 3,
41  bpLeftTop = 4,
43  bpRightTop = 6,
45  };
46 
48  Border() : mColor(0xffffffff) {};
51 
53  void setColor(uint color);
55  void setUniSize(uint width, uint height, uint thickness);
56 
58  void paint(SDL_Surface * surf);
59 
60  protected:
62  SDL_Rect mBorder[8];
63  };
64 
65 } // sdltk
66 
67 #endif // SDLTK_BORDER_H
uint mColor
Definition: border.h:61
SDL_Rect mBorder[8]
Definition: border.h:62
bottom side
Definition: border.h:38
left-bottom corner
Definition: border.h:42
A Border represented as 8 Rects. 4 sides and 4 corners.
Definition: border.h:31
void setUniSize(uint width, uint height, uint thickness)
Set the Border size & thickness.
Definition: border.cpp:25
right-top corner
Definition: border.h:43
BorderPos
Definition: border.h:35
left side
Definition: border.h:39
Border()
Standard constructor. Initializes mColor.
Definition: border.h:48
right-bottom corner
Definition: border.h:44
#define ROLAND_DEFAULT
Definition: compspec.h:46
unsigned int uint
Definition: types.h:121
GLuint GLfloat GLenum cap GLsizei GLuint *textures GLenum GLint *params void GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar GLenum GLint GLint GLsizei GLsizei height
Definition: glfunclist.h:21
top side
Definition: border.h:37
left-top corner
Definition: border.h:41
~Border() ROLAND_DEFAULT void setColor(uint color)
Default destructor.
void paint(SDL_Surface *surf)
The paint command for the gui.
Definition: border.cpp:68
GLuint GLfloat GLenum cap GLsizei GLuint *textures GLenum GLint *params void GLdouble GLdouble GLdouble GLdouble GLdouble GLdouble zFar GLenum GLint GLint GLsizei width
Definition: glfunclist.h:21
the SDL based Stuff
Definition: audio.cpp:22
right side
Definition: border.h:40