Public Member Functions | Private Member Functions | Private Attributes
CCocoaMainWindow Class Reference

#include <CocoaMainWindow.h>

Inheritance diagram for CCocoaMainWindow:
Inheritance graph
[legend]

List of all members.

Public Member Functions

WIDGET_HANDLE AddButton (int x, int y, int width, int height, const char *text, WIDGET_HANDLE parent=0)
WIDGET_HANDLE AddCheckBox (int x, int y, int width, int height, const char *text, bool checked, WIDGET_HANDLE parent=0)
WIDGET_HANDLE AddComboBox (int x, int y, int width, int height, int num_entries, const char **entries, int current_entry, WIDGET_HANDLE parent=0)
WIDGET_HANDLE AddGLWidget (int x, int y, int width, int height, WIDGET_HANDLE parent=0)
WIDGET_HANDLE AddImage (int x, int y, int width, int height, WIDGET_HANDLE parent=0)
WIDGET_HANDLE AddLabel (int x, int y, int width, int height, const char *text, WIDGET_HANDLE parent=0)
WIDGET_HANDLE AddSlider (int x, int y, int width, int height, int min_value, int max_value, int step, int value, WIDGET_HANDLE parent=0)
WIDGET_HANDLE AddTextEdit (int x, int y, int width, int height, const char *text, WIDGET_HANDLE parent=0)
 CCocoaMainWindow (int x, int y, int width, int height, const char *title)
void EventCallback (void *widget, int type, int *params)
int GetModifierKeyState ()
bool GetText (WIDGET_HANDLE widget, char *text, int len)
bool GetValue (WIDGET_HANDLE widget, int &value)
void Hide (WIDGET_HANDLE widget=0)
bool MakeCurrentGLWidget (WIDGET_HANDLE widget)
void SetEventCallback (CMainWindowEventInterface *callback)
bool SetImage (WIDGET_HANDLE widget, const CByteImage *pImage)
bool SetText (WIDGET_HANDLE widget, const char *text)
bool SetValue (WIDGET_HANDLE widget, int value)
void Show (WIDGET_HANDLE widget=0)
bool SwapBuffersGLWidget (WIDGET_HANDLE widget)
 ~CCocoaMainWindow ()

Private Member Functions

void FixPosition (int &x, int &y, int &width, int &height)

Private Attributes

voidm_cocoa_main_window
CMainWindowEventInterfacem_event_callback
int m_height
std::vector
< CCocoaMainWindowWidget * > 
m_widgets
int m_width

Detailed Description

Definition at line 32 of file CocoaMainWindow.h.


Constructor & Destructor Documentation

CCocoaMainWindow::CCocoaMainWindow ( int  x,
int  y,
int  width,
int  height,
const char *  title 
)

Definition at line 208 of file CocoaMainWindow.cpp.

Definition at line 221 of file CocoaMainWindow.cpp.


Member Function Documentation

WIDGET_HANDLE CCocoaMainWindow::AddButton ( int  x,
int  y,
int  width,
int  height,
const char *  text,
WIDGET_HANDLE  parent = 0 
) [virtual]

Implements CMainWindowInterface.

Definition at line 262 of file CocoaMainWindow.cpp.

WIDGET_HANDLE CCocoaMainWindow::AddCheckBox ( int  x,
int  y,
int  width,
int  height,
const char *  text,
bool  checked,
WIDGET_HANDLE  parent = 0 
) [virtual]

Implements CMainWindowInterface.

Definition at line 306 of file CocoaMainWindow.cpp.

WIDGET_HANDLE CCocoaMainWindow::AddComboBox ( int  x,
int  y,
int  width,
int  height,
int  num_entries,
const char **  entries,
int  current_entry,
WIDGET_HANDLE  parent = 0 
) [virtual]

Implements CMainWindowInterface.

Definition at line 372 of file CocoaMainWindow.cpp.

WIDGET_HANDLE CCocoaMainWindow::AddGLWidget ( int  x,
int  y,
int  width,
int  height,
WIDGET_HANDLE  parent = 0 
) [virtual]

Implements CMainWindowInterface.

Definition at line 394 of file CocoaMainWindow.cpp.

WIDGET_HANDLE CCocoaMainWindow::AddImage ( int  x,
int  y,
int  width,
int  height,
WIDGET_HANDLE  parent = 0 
) [virtual]

Implements CMainWindowInterface.

Definition at line 237 of file CocoaMainWindow.cpp.

WIDGET_HANDLE CCocoaMainWindow::AddLabel ( int  x,
int  y,
int  width,
int  height,
const char *  text,
WIDGET_HANDLE  parent = 0 
) [virtual]

Implements CMainWindowInterface.

Definition at line 284 of file CocoaMainWindow.cpp.

WIDGET_HANDLE CCocoaMainWindow::AddSlider ( int  x,
int  y,
int  width,
int  height,
int  min_value,
int  max_value,
int  step,
int  value,
WIDGET_HANDLE  parent = 0 
) [virtual]

Implements CMainWindowInterface.

Definition at line 350 of file CocoaMainWindow.cpp.

WIDGET_HANDLE CCocoaMainWindow::AddTextEdit ( int  x,
int  y,
int  width,
int  height,
const char *  text,
WIDGET_HANDLE  parent = 0 
) [virtual]

Implements CMainWindowInterface.

Definition at line 328 of file CocoaMainWindow.cpp.

void CCocoaMainWindow::EventCallback ( void widget,
int  type,
int *  params 
)

Definition at line 105 of file CocoaMainWindow.cpp.

void CCocoaMainWindow::FixPosition ( int &  x,
int &  y,
int &  width,
int &  height 
) [private]

Definition at line 594 of file CocoaMainWindow.cpp.

Implements CMainWindowInterface.

Definition at line 589 of file CocoaMainWindow.cpp.

bool CCocoaMainWindow::GetText ( WIDGET_HANDLE  widget,
char *  text,
int  len 
) [virtual]

Implements CMainWindowInterface.

Definition at line 421 of file CocoaMainWindow.cpp.

bool CCocoaMainWindow::GetValue ( WIDGET_HANDLE  widget,
int &  value 
) [virtual]

Implements CMainWindowInterface.

Definition at line 485 of file CocoaMainWindow.cpp.

void CCocoaMainWindow::Hide ( WIDGET_HANDLE  widget = 0) [virtual]

Implements CMainWindowInterface.

Definition at line 575 of file CocoaMainWindow.cpp.

Implements CMainWindowInterface.

Definition at line 542 of file CocoaMainWindow.cpp.

Implements CMainWindowInterface.

Definition at line 66 of file CocoaMainWindow.h.

bool CCocoaMainWindow::SetImage ( WIDGET_HANDLE  widget,
const CByteImage pImage 
) [virtual]

Implements CMainWindowInterface.

Definition at line 454 of file CocoaMainWindow.cpp.

bool CCocoaMainWindow::SetText ( WIDGET_HANDLE  widget,
const char *  text 
) [virtual]

Implements CMainWindowInterface.

Definition at line 437 of file CocoaMainWindow.cpp.

bool CCocoaMainWindow::SetValue ( WIDGET_HANDLE  widget,
int  value 
) [virtual]

Implements CMainWindowInterface.

Definition at line 505 of file CocoaMainWindow.cpp.

void CCocoaMainWindow::Show ( WIDGET_HANDLE  widget = 0) [virtual]

Implements CMainWindowInterface.

Definition at line 562 of file CocoaMainWindow.cpp.

Implements CMainWindowInterface.

Definition at line 525 of file CocoaMainWindow.cpp.


Member Data Documentation

Definition at line 72 of file CocoaMainWindow.h.

Definition at line 75 of file CocoaMainWindow.h.

Definition at line 74 of file CocoaMainWindow.h.

Definition at line 77 of file CocoaMainWindow.h.

Definition at line 73 of file CocoaMainWindow.h.


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


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Thu Jun 6 2019 21:46:58