ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Public Types | Public Member Functions | Protected Attributes | List of all members
Border Class Reference

A Border represented as 8 Rects. 4 sides and 4 corners. More...

#include <border.h>

Public Types

enum  BorderPos {
  bpTop = 0, bpBottom = 1, bpLeft = 2, bpRight = 3,
  bpLeftTop = 4, bpLeftBottom = 5, bpRightTop = 6, bpRightBottom = 7
}
 

Public Member Functions

 Border ()
 Standard constructor. Initializes mColor. More...
 
 ~Border () ROLAND_DEFAULT void setColor(uint color)
 Default destructor. More...
 
void setUniSize (uint width, uint height, uint thickness)
 Set the Border size & thickness. More...
 
void paint (SDL_Surface *surf)
 The paint command for the gui. More...
 

Protected Attributes

uint mColor
 
SDL_Rect mBorder [8]
 

Detailed Description

A Border represented as 8 Rects. 4 sides and 4 corners.

Member Enumeration Documentation

enum BorderPos
Enumerator
bpTop 

top side

bpBottom 

bottom side

bpLeft 

left side

bpRight 

right side

bpLeftTop 

left-top corner

bpLeftBottom 

left-bottom corner

bpRightTop 

right-top corner

bpRightBottom 

right-bottom corner

Constructor & Destructor Documentation

Border ( )
inline

Standard constructor. Initializes mColor.

References height, Border::paint(), ROLAND_DEFAULT, Border::setUniSize(), width, and Border::~Border().

~Border ( )

Default destructor.

Sets the Border color

Referenced by Border::Border().

Member Function Documentation

void paint ( SDL_Surface *  surf)

The paint command for the gui.

References Border::mBorder, and Border::mColor.

Referenced by Border::Border().

void setUniSize ( uint  width,
uint  height,
uint  thickness 
)

Member Data Documentation

SDL_Rect mBorder[8]
protected
uint mColor
protected

Referenced by Border::paint().


The documentation for this class was generated from the following files: