Classes | Enumerations | Functions | Variables
CocoaMainWindow.cpp File Reference
#include "CocoaMainWindow.h"
#include "Interfaces/MainWindowEventInterface.h"
#include "Image/ByteImage.h"
#include "Image/ImageProcessor.h"
Include dependency graph for CocoaMainWindow.cpp:

Go to the source code of this file.

Classes

struct  CCocoaMainWindowWidget
 
class  SetTheCWDHack
 

Enumerations

enum  CocoaWidgetType {
  eImage = 0, eButton, eLabel, eCheckBox,
  eTextEdit, eSlider, eComboBox, eGLWidget
}
 

Functions

voidCocoaCreateButton (void *window, int x, int y, int width, int height, const char *text, void *ptr)
 
voidCocoaCreateCheckBox (void *window, int x, int y, int width, int height, const char *text, bool checked, void *ptr)
 
voidCocoaCreateComboBox (void *window, int x, int y, int width, int height, int num_entries, const char **entries, int current_entry, void *ptr)
 
voidCocoaCreateImage (void *window, int x, int y, int width, int height, void *ptr)
 
voidCocoaCreateLabel (void *window, int x, int y, int width, int height, const char *text, void *ptr)
 
voidCocoaCreateMainWindow (int x, int y, int width, int height, const char *title, void *main_window_ptr)
 
voidCocoaCreateOpenGLWidget (void *window, int x, int y, int width, int height, void *ptr)
 
voidCocoaCreateSlider (void *window, int x, int y, int width, int height, int min_value, int max_value, int step, int value, void *ptr)
 
voidCocoaCreateTextEdit (void *window, int x, int y, int width, int height, const char *text, void *ptr)
 
void CocoaDestroyMainWindow (void *window)
 
int CocoaGetComboBoxSelection (void *ptr)
 
void CocoaGetCurrentWorkingDirectory (char *str, int len)
 
int CocoaGetInt (void *ptr)
 
int CocoaGetModifierKeyState ()
 
void CocoaGetText (void *ptr, char *str, int len)
 
void CocoaGetTitle (void *ptr, char *str, int len)
 
void CocoaHide (void *ptr)
 
void CocoaHideWindow (void *ptr)
 
void CocoaMakeCurrent (void *ptr)
 
void CocoaSetComboBoxSelection (void *ptr, int value)
 
void CocoaSetImage (void *ptr, int width, int height, unsigned char *pixels)
 
void CocoaSetInt (void *ptr, int value)
 
void CocoaSetText (void *ptr, const char *str)
 
void CocoaSetTitle (void *ptr, const char *str)
 
void CocoaShow (void *ptr)
 
void CocoaShowWindow (void *ptr)
 
void CocoaSwapBuffers (void *ptr)
 
void EventCallback (void *window, void *widget, int type, int *params)
 

Variables

SetTheCWDHack hack
 

Enumeration Type Documentation

◆ CocoaWidgetType

Enumerator
eImage 
eButton 
eLabel 
eCheckBox 
eTextEdit 
eSlider 
eComboBox 
eGLWidget 

Definition at line 25 of file CocoaMainWindow.cpp.

Function Documentation

◆ CocoaCreateButton()

void* CocoaCreateButton ( void window,
int  x,
int  y,
int  width,
int  height,
const char *  text,
void ptr 
)

◆ CocoaCreateCheckBox()

void* CocoaCreateCheckBox ( void window,
int  x,
int  y,
int  width,
int  height,
const char *  text,
bool  checked,
void ptr 
)

◆ CocoaCreateComboBox()

void* CocoaCreateComboBox ( void window,
int  x,
int  y,
int  width,
int  height,
int  num_entries,
const char **  entries,
int  current_entry,
void ptr 
)

◆ CocoaCreateImage()

void* CocoaCreateImage ( void window,
int  x,
int  y,
int  width,
int  height,
void ptr 
)

◆ CocoaCreateLabel()

void* CocoaCreateLabel ( void window,
int  x,
int  y,
int  width,
int  height,
const char *  text,
void ptr 
)

◆ CocoaCreateMainWindow()

void* CocoaCreateMainWindow ( int  x,
int  y,
int  width,
int  height,
const char *  title,
void main_window_ptr 
)

◆ CocoaCreateOpenGLWidget()

void* CocoaCreateOpenGLWidget ( void window,
int  x,
int  y,
int  width,
int  height,
void ptr 
)

◆ CocoaCreateSlider()

void* CocoaCreateSlider ( void window,
int  x,
int  y,
int  width,
int  height,
int  min_value,
int  max_value,
int  step,
int  value,
void ptr 
)

◆ CocoaCreateTextEdit()

void* CocoaCreateTextEdit ( void window,
int  x,
int  y,
int  width,
int  height,
const char *  text,
void ptr 
)

◆ CocoaDestroyMainWindow()

void CocoaDestroyMainWindow ( void window)

◆ CocoaGetComboBoxSelection()

int CocoaGetComboBoxSelection ( void ptr)

◆ CocoaGetCurrentWorkingDirectory()

void CocoaGetCurrentWorkingDirectory ( char *  str,
int  len 
)

◆ CocoaGetInt()

int CocoaGetInt ( void ptr)

◆ CocoaGetModifierKeyState()

int CocoaGetModifierKeyState ( )

◆ CocoaGetText()

void CocoaGetText ( void ptr,
char *  str,
int  len 
)

◆ CocoaGetTitle()

void CocoaGetTitle ( void ptr,
char *  str,
int  len 
)

◆ CocoaHide()

void CocoaHide ( void ptr)

◆ CocoaHideWindow()

void CocoaHideWindow ( void ptr)

◆ CocoaMakeCurrent()

void CocoaMakeCurrent ( void ptr)

◆ CocoaSetComboBoxSelection()

void CocoaSetComboBoxSelection ( void ptr,
int  value 
)

◆ CocoaSetImage()

void CocoaSetImage ( void ptr,
int  width,
int  height,
unsigned char *  pixels 
)

◆ CocoaSetInt()

void CocoaSetInt ( void ptr,
int  value 
)

◆ CocoaSetText()

void CocoaSetText ( void ptr,
const char *  str 
)

◆ CocoaSetTitle()

void CocoaSetTitle ( void ptr,
const char *  str 
)

◆ CocoaShow()

void CocoaShow ( void ptr)

◆ CocoaShowWindow()

void CocoaShowWindow ( void ptr)

◆ CocoaSwapBuffers()

void CocoaSwapBuffers ( void ptr)

◆ EventCallback()

void EventCallback ( void window,
void widget,
int  type,
int *  params 
)

Definition at line 99 of file CocoaMainWindow.cpp.

Variable Documentation

◆ hack

Definition at line 96 of file CocoaMainWindow.cpp.



asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Feb 28 2022 21:44:00