#include <GTKMainWindow.h>
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) |
CMainWindowEventInterface * | GetEventCallback () |
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 () |
Private Attributes | |
bool | m_bDestroyed |
CMainWindowEventInterface * | m_event_callback |
GtkWidget * | m_fixed_container |
GtkWidget * | m_main_window |
std::vector < CGTKMainWindowWidget * > | m_widgets |
Static Private Attributes | |
static int | m_ref_count = 0 |
Definition at line 33 of file GTKMainWindow.h.
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.
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 | ) | [inline, virtual] |
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.
bool CGTKMainWindow::m_bDestroyed [private] |
Definition at line 85 of file GTKMainWindow.h.
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 [static, private] |
Definition at line 83 of file GTKMainWindow.h.
std::vector<CGTKMainWindowWidget*> CGTKMainWindow::m_widgets [private] |
Definition at line 78 of file GTKMainWindow.h.