Public Member Functions | Private Attributes | Static Private Attributes | List of all members
CGTKMainWindow Class Reference

#include <GTKMainWindow.h>

Inheritance diagram for CGTKMainWindow:
Inheritance graph
[legend]

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)
 
 CGTKMainWindow (int x, int y, int width, int height, const char *title)
 
void Destroy (GtkWidget *widget)
 
CMainWindowEventInterfaceGetEventCallback ()
 
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)
 
virtual ~CGTKMainWindow ()
 
- Public Member Functions inherited from CMainWindowInterface
virtual void SetSize (int width, int height, WIDGET_HANDLE widget=0)
 
virtual ~CMainWindowInterface ()
 

Private Attributes

bool m_bDestroyed
 
CMainWindowEventInterfacem_event_callback
 
GtkWidget * m_fixed_container
 
GtkWidget * m_main_window
 
std::vector< CGTKMainWindowWidget * > m_widgets
 

Static Private Attributes

static int m_ref_count = 0
 

Detailed Description

Definition at line 33 of file GTKMainWindow.h.

Constructor & Destructor Documentation

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

Definition at line 517 of file GTKMainWindow.cpp.

CGTKMainWindow::~CGTKMainWindow ( )
virtual

Definition at line 537 of file GTKMainWindow.cpp.

Member Function Documentation

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

Implements CMainWindowInterface.

Definition at line 600 of file GTKMainWindow.cpp.

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

Implements CMainWindowInterface.

Definition at line 636 of file GTKMainWindow.cpp.

WIDGET_HANDLE CGTKMainWindow::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 701 of file GTKMainWindow.cpp.

WIDGET_HANDLE CGTKMainWindow::AddGLWidget ( int  x,
int  y,
int  width,
int  height,
WIDGET_HANDLE  parent = 0 
)
virtual

Implements CMainWindowInterface.

Definition at line 728 of file GTKMainWindow.cpp.

WIDGET_HANDLE CGTKMainWindow::AddImage ( int  x,
int  y,
int  width,
int  height,
WIDGET_HANDLE  parent = 0 
)
virtual

Implements CMainWindowInterface.

Definition at line 560 of file GTKMainWindow.cpp.

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

Implements CMainWindowInterface.

Definition at line 618 of file GTKMainWindow.cpp.

WIDGET_HANDLE CGTKMainWindow::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 677 of file GTKMainWindow.cpp.

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

Implements CMainWindowInterface.

Definition at line 655 of file GTKMainWindow.cpp.

void CGTKMainWindow::Destroy ( GtkWidget *  widget)

Definition at line 502 of file GTKMainWindow.cpp.

CMainWindowEventInterface* CGTKMainWindow::GetEventCallback ( )
inline

Definition at line 70 of file GTKMainWindow.h.

int CGTKMainWindow::GetModifierKeyState ( )
virtual

Implements CMainWindowInterface.

Definition at line 1015 of file GTKMainWindow.cpp.

bool CGTKMainWindow::GetText ( WIDGET_HANDLE  widget,
char *  text,
int  len 
)
virtual

Implements CMainWindowInterface.

Definition at line 796 of file GTKMainWindow.cpp.

bool CGTKMainWindow::GetValue ( WIDGET_HANDLE  widget,
int &  value 
)
virtual

Implements CMainWindowInterface.

Definition at line 890 of file GTKMainWindow.cpp.

void CGTKMainWindow::Hide ( WIDGET_HANDLE  widget = 0)
virtual

Implements CMainWindowInterface.

Definition at line 1001 of file GTKMainWindow.cpp.

bool CGTKMainWindow::MakeCurrentGLWidget ( WIDGET_HANDLE  widget)
virtual

Implements CMainWindowInterface.

Definition at line 964 of file GTKMainWindow.cpp.

void CGTKMainWindow::SetEventCallback ( CMainWindowEventInterface callback)
inlinevirtual

Implements CMainWindowInterface.

Definition at line 67 of file GTKMainWindow.h.

bool CGTKMainWindow::SetImage ( WIDGET_HANDLE  widget,
const CByteImage pImage 
)
virtual

Implements CMainWindowInterface.

Definition at line 856 of file GTKMainWindow.cpp.

bool CGTKMainWindow::SetText ( WIDGET_HANDLE  widget,
const char *  text 
)
virtual

Implements CMainWindowInterface.

Definition at line 827 of file GTKMainWindow.cpp.

bool CGTKMainWindow::SetValue ( WIDGET_HANDLE  widget,
int  value 
)
virtual

Implements CMainWindowInterface.

Definition at line 916 of file GTKMainWindow.cpp.

void CGTKMainWindow::Show ( WIDGET_HANDLE  widget = 0)
virtual

Implements CMainWindowInterface.

Definition at line 989 of file GTKMainWindow.cpp.

bool CGTKMainWindow::SwapBuffersGLWidget ( WIDGET_HANDLE  widget)
virtual

Implements CMainWindowInterface.

Definition at line 942 of file GTKMainWindow.cpp.

Member Data Documentation

bool CGTKMainWindow::m_bDestroyed
private

Definition at line 85 of file GTKMainWindow.h.

CMainWindowEventInterface* CGTKMainWindow::m_event_callback
private

Definition at line 76 of file GTKMainWindow.h.

GtkWidget* CGTKMainWindow::m_fixed_container
private

Definition at line 81 of file GTKMainWindow.h.

GtkWidget* CGTKMainWindow::m_main_window
private

Definition at line 80 of file GTKMainWindow.h.

int CGTKMainWindow::m_ref_count = 0
staticprivate

Definition at line 83 of file GTKMainWindow.h.

std::vector<CGTKMainWindowWidget*> CGTKMainWindow::m_widgets
private

Definition at line 78 of file GTKMainWindow.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 Mon Dec 2 2019 03:47:28