OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Window Class Referenceabstract

#include <C4Window.h>

Inheritance diagram for C4Window:
[legend]
Collaboration diagram for C4Window:
[legend]

Public Types

enum  WindowKind {
  W_GuiWindow, W_Console, W_Viewport, W_Fullscreen,
  W_Control
}
 

Public Member Functions

 C4Window ()
 
virtual ~C4Window ()
 
virtual void Clear ()
 
virtual void Close ()=0
 
virtual void CharIn (const char *)
 
virtual bool ReInit (C4AbstractApp *pApp)
 
virtual void EnumerateMultiSamples (std::vector< int > &samples) const
 
bool StorePosition (const char *szWindowName, const char *szSubKey, bool fStoreSize=true)
 
bool RestorePosition (const char *szWindowName, const char *szSubKey, bool fHidden=false)
 
bool GetSize (C4Rect *pRect)
 
void SetSize (unsigned int cx, unsigned int cy)
 
void SetTitle (const char *Title)
 
void FlashWindow ()
 
void GrabMouse (bool grab)
 
virtual void RequestUpdate ()
 
virtual void PerformUpdate ()
 

Public Attributes

bool Active
 
C4SurfacepSurface
 
WindowKind eKind
 

Protected Member Functions

virtual C4WindowInit (WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size)
 

Friends

class C4Draw
 
class CStdGL
 
class CStdGLCtx
 
class C4AbstractApp
 

Detailed Description

Definition at line 261 of file C4Window.h.

Member Enumeration Documentation

Enumerator
W_GuiWindow 
W_Console 
W_Viewport 
W_Fullscreen 
W_Control 

Definition at line 267 of file C4Window.h.

268  {
269  W_GuiWindow,
270  W_Console,
271  W_Viewport,
272  W_Fullscreen,
273  W_Control // wrapper to a render target control inside a window
274  };

Constructor & Destructor Documentation

C4Window::C4Window ( )

Definition at line 101 of file C4AppT.cpp.

101 {}
C4Window::~C4Window ( )
virtual

Definition at line 102 of file C4AppT.cpp.

102 {}

Member Function Documentation

virtual void C4Window::CharIn ( const char *  )
inlinevirtual

Reimplemented in C4FullScreen.

Definition at line 286 of file C4Window.h.

286 { }
void C4Window::Clear ( )
virtual

Reimplemented in C4Console, and C4FullScreen.

Definition at line 100 of file C4AppT.cpp.

Referenced by C4FullScreen::Clear(), C4Console::Clear(), and C4GUI::Dialog::DestroyConsoleWindow().

100 {}

Here is the caller graph for this function:

virtual void C4Window::Close ( )
pure virtual
void C4Window::EnumerateMultiSamples ( std::vector< int > &  samples) const
virtual

Definition at line 103 of file C4AppT.cpp.

Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg().

103 {}

Here is the caller graph for this function:

void C4Window::FlashWindow ( )

Definition at line 75 of file C4AppMac.mm.

Referenced by C4AbstractApp::NotifyUserIfInactive().

76 {
77  [NSApp requestUserAttention:NSCriticalRequest];
78 }

Here is the caller graph for this function:

bool C4Window::GetSize ( C4Rect pRect)

Definition at line 106 of file C4AppT.cpp.

Referenced by C4Application::OnResolutionChanged(), C4GUI::DialogWindow::PerformUpdate(), and C4Game::PreInit().

106 {return 0;}

Here is the caller graph for this function:

void C4Window::GrabMouse ( bool  grab)

Definition at line 105 of file C4AppT.cpp.

Referenced by C4Application::GameTick().

105 {}

Here is the caller graph for this function:

C4Window * C4Window::Init ( C4Window::WindowKind  windowKind,
C4AbstractApp pApp,
const char *  Title,
const C4Rect size 
)
protectedvirtual

Definition at line 107 of file C4AppT.cpp.

Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), C4ConsoleGUI::CreateConsoleWindow(), C4ViewportWindow::Init(), and C4GUI::DialogWindow::Init().

107 {return this;}

Here is the caller graph for this function:

void C4Window::PerformUpdate ( )
virtual

Reimplemented in C4GUI::DialogWindow, C4FullScreen, and C4ViewportWindow.

Definition at line 85 of file C4App.cpp.

86 {
87 }
bool C4Window::ReInit ( C4AbstractApp pApp)
virtual

Definition at line 108 of file C4AppT.cpp.

108 {return 0;}
void C4Window::RequestUpdate ( )
virtual

Definition at line 110 of file C4AppT.cpp.

Referenced by C4FullScreen::Execute().

110 {}

Here is the caller graph for this function:

bool C4Window::RestorePosition ( const char *  szWindowName,
const char *  szSubKey,
bool  fHidden = false 
)

Definition at line 109 of file C4AppT.cpp.

Referenced by C4ViewportWindow::Init(), and C4GUI::DialogWindow::Init().

109 {return 0;}

Here is the caller graph for this function:

void C4Window::SetSize ( unsigned int  cx,
unsigned int  cy 
)

Definition at line 111 of file C4AppT.cpp.

Referenced by C4Application::DoInit(), C4GUI::DialogWindow::Init(), C4AbstractApp::SetVideoMode(), and C4GUI::Dialog::UpdateSize().

111 {}

Here is the caller graph for this function:

void C4Window::SetTitle ( const char *  Title)

Definition at line 112 of file C4AppT.cpp.

Referenced by C4Console::CloseGame(), C4Console::SetCaptionToFilename(), and C4GUI::Dialog::SetTitle().

112 {}

Here is the caller graph for this function:

bool C4Window::StorePosition ( const char *  szWindowName,
const char *  szSubKey,
bool  fStoreSize = true 
)

Definition at line 143 of file C4WindowSDL.cpp.

143 { return true; }

Friends And Related Function Documentation

friend class C4AbstractApp
friend

Definition at line 329 of file C4Window.h.

friend class C4Draw
friend

Definition at line 326 of file C4Window.h.

friend class CStdGL
friend

Definition at line 327 of file C4Window.h.

friend class CStdGLCtx
friend

Definition at line 328 of file C4Window.h.

Member Data Documentation

WindowKind C4Window::eKind

Definition at line 280 of file C4Window.h.


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