ClanSoft logo
ClanSoft logo
Entire Class Index Main Class Index Cross Index Global Index

Class CL_Window

Window component
Contained in: global
Derived from: CL_Component
Derived by: CL_FileDialog CL_MessageBox
Group: GUI (Controls)

#include <ClanLib/gui.h>


public function member index:

Construction:

CL_Window(CL_Component* parent, CL_StyleManager* style = NULL);
CL_Window(const std::string& title, CL_Component* parent, CL_StyleManager* style = NULL);
CL_Window(const CL_Rect& pos, const std::string& title, CL_Component* parent, CL_StyleManager* style = NULL);
CL_Window(const CL_Rect& pos, CL_Component* parent, CL_StyleManager* style = NULL);
virtual ~CL_Window();

Attributes:

CL_Component* get_client_area() const;
const std::string& get_title() const;

Operations:

void set_title(const std::string& text);
void set_client_size(int width, int height);
 

private function member index:

Implementation:

CL_Window(const CL_Window& copy);
 

Description:


Function Member Descriptions:

CL_Window::CL_Window - Creates a window.
CL_Window(CL_Component* parent, CL_StyleManager* style = NULL);


CL_Window::CL_Window - Creates a window.
CL_Window(const std::string& title, CL_Component* parent, CL_StyleManager* style = NULL);


CL_Window::CL_Window - Creates a window located at the given position.
CL_Window(const CL_Rect& pos, const std::string& title, CL_Component* parent, CL_StyleManager* style = NULL);


CL_Window::CL_Window - Creates a window located at the given position.
CL_Window(const CL_Rect& pos, CL_Component* parent, CL_StyleManager* style = NULL);


CL_Window::get_client_area - Returns the client area of the component.
CL_Component* get_client_area() const;


CL_Window::get_title - Returns the window title.
const std::string& get_title() const;


CL_Window::set_client_size - Sets the size of the client area, and resizes the window accordingly.
void set_client_size(int width, int height);
width - The new width of the window
height - The new height of the window



CL_Window::set_title - Sets the window title.
void set_title(const std::string& text);
text - An std::string with the new title



CL_Window::~CL_Window - Window destructor
virtual ~CL_Window();



Variable Member Descriptions: