-
Notifications
You must be signed in to change notification settings - Fork 17
/
window.h
33 lines (31 loc) · 1.43 KB
/
window.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#import <Cocoa/Cocoa.h>
#include "button.h"
#include "combobox.h"
#include "datepicker.h"
#include "imageview.h"
#include "textview.h"
#include "textfield.h"
#include "progressIndicator.h"
#include "slider.h"
void* Window_New(int goWindowID, int x, int y, int width, int height, const char* title);
void* Centered_Window_New(int goWindowID, int width, int height, const char* title);
int Screen_Center_X(void *wndPtr);
int Screen_Center_Y(void *wndPtr);
int Screen_X(void *wndPtr);
int Screen_Y(void *wndPtr);
void Window_MakeKeyAndOrderFront(void *wndPtr);
void Window_AddButton(void *wndPtr, ButtonPtr btnPtr);
void Window_AddDatePicker(void *wndPtr, DatePickerPtr datePickerPtr);
void Window_AddTextView(void *wndPtr, TextViewPtr tvPtr);
void Window_AddTextField(void *wndPtr, TextFieldPtr tfPtr);
void Window_AddProgressIndicator(void *wndPtr, ProgressIndicatorPtr progressIndicatorPtr);
void Window_AddImageView(void *wndPtr, ImageViewPtr imageViewPtr);
void Window_AddSlider(void *wndPtr, SliderPtr sliderPtr);
void Window_AddComboBox(void *wndPtr, ComboBoxPtr comboBoxPtr);
void Window_Update(void *wndPtr);
void Window_SetTitle(void *wndPtr, const char* title);
void Window_SetMiniaturizeButtonEnabled(void *wndPtr, int enabled);
void Window_SetZoomButtonEnabled(void *wndPtr, int enabled);
void Window_SetCloseButtonEnabled(void *wndPtr, int enabled);
void Window_SetAllowsResizing(void *wndPtr, int enabled);
void Window_AddDefaultQuitMenu(void *wndPtr);