5
#include "sqUnixGlobals.h"
7
static char *display_winSystemName(void) { return "none"; }
8
static void display_winInit(void) {}
9
static void display_winOpen(void) {}
10
static void display_winSetName(char *title) {}
11
static int display_winImageFind(char *imageName, int size) { return 0; }
12
static void display_winImageNotFound(void) {}
13
static void display_winExit(void) {}
16
static sqInt display_ioFormPrint(sqInt b, sqInt w, sqInt h, sqInt d, double hS, double vS, sqInt ls)
21
static sqInt display_ioBeep(void) { return 0; }
23
static sqInt display_ioRelinquishProcessorForMicroseconds(sqInt microSeconds)
25
aioSleep(microSeconds);
29
static sqInt display_ioProcessEvents(void)
35
static sqInt display_ioScreenDepth(void)
40
static sqInt display_ioScreenSize(void)
42
int sws= getSavedWindowSize();
43
return sws ? sws : ((64 << 16) | 64);
46
static sqInt display_ioSetCursorWithMask(sqInt bits, sqInt mask, sqInt x, sqInt y)
51
static sqInt display_ioSetCursorARGB(sqInt cursorBitsIndex, sqInt extentX, sqInt extentY, sqInt offsetX, sqInt offsetY)
56
static sqInt display_ioSetFullScreen(sqInt fullScreen)
61
static sqInt display_ioForceDisplayUpdate(void)
66
static sqInt display_ioShowDisplay(sqInt bits, sqInt w, sqInt h, sqInt d, sqInt l, sqInt r, sqInt t, sqInt b)
71
static sqInt display_ioHasDisplayDepth(sqInt i)
76
static sqInt display_ioSetDisplayMode(sqInt w, sqInt h, sqInt d, sqInt fullscreenFlag)
81
static sqInt display_clipboardSize(void)
86
static sqInt display_clipboardWriteFromAt(sqInt count, sqInt byteArrayIndex, sqInt startIndex)
91
static sqInt display_clipboardReadIntoAt(sqInt count, sqInt byteArrayIndex, sqInt startIndex)
96
static char **display_clipboardGetTypeNames(void)
101
static sqInt display_clipboardSizeWithType(char *typeName, int nTypeName)
106
static void display_clipboardWriteWithType(char *data, size_t ndata, char *typeName, size_t nTypeName, int isDnd, int isClaiming)
111
static sqInt display_dndOutStart(char *types, int ntypes) { return 0; }
112
static void display_dndOutSend (char *bytes, int nbytes) { return ; }
113
static sqInt display_dndOutAcceptedType(char *buf, int nbuf) { return 0; }
115
static sqInt display_ioGetButtonState(void) { return 0; }
116
static sqInt display_ioPeekKeystroke(void) { return 0; }
117
static sqInt display_ioGetKeystroke(void) { return 0; }
118
static sqInt display_ioGetNextEvent(sqInputEvent *evt) { return 0; }
119
static sqInt display_ioMousePoint(void) { return 0; }
121
static void *display_ioGetDisplay(void) { return 0; }
122
static void *display_ioGetWindow(void) { return 0; }
123
static sqInt display_ioGLinitialise(void) { return 0; }
124
static sqInt display_ioGLcreateRenderer(glRenderer *r, sqInt x, sqInt y, sqInt w, sqInt h, sqInt flags) { return 0; }
125
static sqInt display_ioGLmakeCurrentRenderer(glRenderer *r) { return 0; }
126
static void display_ioGLdestroyRenderer(glRenderer *r) {}
127
static void display_ioGLswapBuffers(glRenderer *r) {}
128
static void display_ioGLsetBufferRect(glRenderer *r, sqInt x, sqInt y, sqInt w, sqInt h) {}
130
static sqInt display_primitivePluginBrowserReady(void) { return primitiveFail(); }
131
static sqInt display_primitivePluginRequestURLStream(void) { return primitiveFail(); }
132
static sqInt display_primitivePluginRequestURL(void) { return primitiveFail(); }
133
static sqInt display_primitivePluginPostURL(void) { return primitiveFail(); }
134
static sqInt display_primitivePluginRequestFileHandle(void) { return primitiveFail(); }
135
static sqInt display_primitivePluginDestroyRequest(void) { return primitiveFail(); }
136
static sqInt display_primitivePluginRequestState(void) { return primitiveFail(); }
138
#if (SqDisplayVersionMajor >= 1 && SqDisplayVersionMinor >= 2)
139
static int display_hostWindowClose(int index) { return 0; }
140
static int display_hostWindowCreate(int w, int h, int x, int y,
141
char *list, int attributeListLength) { return 0; }
142
static int display_hostWindowShowDisplay(unsigned *dispBitsIndex, int width, int height, int depth,
143
int affectedL, int affectedR, int affectedT, int affectedB, int windowIndex) { return 0; }
144
static int display_hostWindowGetSize(int windowIndex) { return -1; }
145
static int display_hostWindowSetSize(int windowIndex, int w, int h) { return -1; }
146
static int display_hostWindowGetPosition(int windowIndex) { return -1; }
147
static int display_hostWindowSetPosition(int windowIndex, int x, int y) { return -1; }
148
static int display_hostWindowSetTitle(int windowIndex, char *newTitle, int sizeOfTitle) { return -1; }
149
static int display_hostWindowCloseAll(void) { return 0; }
153
SqDisplayDefine(null);
156
#include "SqModule.h"
158
static void display_parseEnvironment(void) {}
160
static int display_parseArgument(int argc, char **argv)
162
if (!strcmp(argv[0], "-nodisplay")) return 1;
163
if (!strcmp(argv[0], "-headless")) return 1;
167
static void display_printUsage(void) {}
168
static void display_printUsageNotes(void) {}
169
static void *display_makeInterface(void) { return &display_null_itf; }
171
SqModuleDefine(display, null);