v0.1.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Pages
CGUL::WindowStyle Struct Reference

Contains customizable attributes for window creation. More...

#include <WindowStyle.hpp>

Public Member Functions

 WindowStyle ()
 Default constructor. Loads the window style with presets. More...
 
 WindowStyle (const WindowStyle &style)
 Copy constructor. More...
 
 WindowStyle (const std::string &title, Color backgroundColor, UCoord32 size, Boolean resizable, Boolean centerWindow, SCoord32 position, Boolean alwaysOnTop)
 Parameterized constructor. More...
 

Public Attributes

String title
 
Color backgroundColor
 
UCoord32 size
 
Boolean resizable
 
Boolean centerWindow
 
SCoord32 position
 
Boolean alwaysOnTop
 

Friends

std::ostream & operator<< (std::ostream &stream, const WindowStyle &style)
 

Detailed Description

Contains customizable attributes for window creation.

Constructor & Destructor Documentation

CGUL::WindowStyle::WindowStyle ( )

Default constructor. Loads the window style with presets.

Sets up the window style with the following presets:

title = "CGUL Window";
backgroundColor = Color(255, 255, 255);
size = SCoord32(640, 480);
resizable = true;
centerWindow = true;
position = SCoord32(0, 0);
alwaysOnTop = false
CGUL::WindowStyle::WindowStyle ( const WindowStyle style)

Copy constructor.

Parameters
styleThe style to copy.
CGUL::WindowStyle::WindowStyle ( const std::string &  title,
Color  backgroundColor,
UCoord32  size,
Boolean  resizable,
Boolean  centerWindow,
SCoord32  position,
Boolean  alwaysOnTop 
)

Parameterized constructor.

Parameters
titleThe title of the window.
backgroundColorThe background color of the window.
sizeThe size of the window.
resizableWhether the window is resizable or not.
minimizableWhether the minimize button is enabled or not.
maximizableWhether the maximize button is enabled or not.
closeableWhether the close button is enabled or not.
centerWindowWhether the window should be in the center of the screen or not.
positionThe position of the window on screen. If centerWindow is set to true this
alwaysOnTopWhether the windows is above all others even when not focused.

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