8 #ifndef _COCOA_MAIN_WINDOW_H_ 9 #define _COCOA_MAIN_WINDOW_H_ 70 void FixPosition(
int &x,
int &y,
int &width,
int &height);
bool MakeCurrentGLWidget(WIDGET_HANDLE widget)
bool SetText(WIDGET_HANDLE widget, const char *text)
GLenum const GLfloat * params
bool SetValue(WIDGET_HANDLE widget, int value)
WIDGET_HANDLE AddComboBox(int x, int y, int width, int height, int num_entries, const char **entries, int current_entry, WIDGET_HANDLE parent=0)
CMainWindowEventInterface * m_event_callback
bool SwapBuffersGLWidget(WIDGET_HANDLE widget)
int GetModifierKeyState()
WIDGET_HANDLE AddGLWidget(int x, int y, int width, int height, WIDGET_HANDLE parent=0)
WIDGET_HANDLE AddButton(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)
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
GLuint GLuint GLsizei GLenum type
void EventCallback(void *widget, int type, int *params)
WIDGET_HANDLE AddCheckBox(int x, int y, int width, int height, const char *text, bool checked, WIDGET_HANDLE parent=0)
std::vector< CCocoaMainWindowWidget * > m_widgets
WIDGET_HANDLE AddImage(int x, int y, int width, int height, WIDGET_HANDLE parent=0)
GLsizei const GLfloat * value
bool GetValue(WIDGET_HANDLE widget, int &value)
void Hide(WIDGET_HANDLE widget=0)
void * m_cocoa_main_window
Interface for the creation of GUIs with the GUI toolkit of the IVT.
CCocoaMainWindow(int x, int y, int width, int height, const char *title)
GLenum GLsizei GLsizei height
WIDGET_HANDLE AddLabel(int x, int y, int width, int height, const char *text, WIDGET_HANDLE parent=0)
void SetEventCallback(CMainWindowEventInterface *callback)
bool GetText(WIDGET_HANDLE widget, char *text, int len)
void FixPosition(int &x, int &y, int &width, int &height)
void Show(WIDGET_HANDLE widget=0)
Interface for the event mechanism of GUIs using the GUI toolkit of the IVT.
bool SetImage(WIDGET_HANDLE widget, const CByteImage *pImage)
static void callback(IplImage *pIplImage)
WIDGET_HANDLE AddTextEdit(int x, int y, int width, int height, const char *text, WIDGET_HANDLE parent=0)