@@ -37,10 +37,10 @@ static struct SqDisplay *dpy= 0;
37
37
38
38
#define noDisplay ( (!dpy && !(dpy= ioGetDisplayModule())) || (dpy->version < 0x10002) )
39
39
40
- /* closeWindow: arg is int windowIndex. Fail (return 0) if anything goes wrong
40
+ /* closeWindow: arg is sqInt windowIndex. Fail (return 0) if anything goes wrong
41
41
* - typically the windowIndex invalid or similar
42
42
*/
43
- int closeWindow (int index )
43
+ sqInt closeWindow (sqInt index )
44
44
{
45
45
if (noDisplay )
46
46
return 0 ;
@@ -49,14 +49,14 @@ int closeWindow(int index)
49
49
}
50
50
51
51
52
- /* createWindow: takes int width, height and origin x/y plus a char* list of
53
- * as yet undefined attributes. Returns an int window index or 0 for failure
52
+ /* createWindow: takes sqInt width, height and origin x/y plus a char* list of
53
+ * as yet undefined attributes. Returns an sqInt window index or 0 for failure
54
54
* Failure may occur because of an inability to add the window, too many
55
55
* windows already extant (platform dependant), the specified size being
56
56
* unreasonable etc.
57
57
*/
58
- int createWindowWidthheightoriginXyattrlength (
59
- int w , int h , int x , int y , char * list , int attributeListLength )
58
+ sqInt createWindowWidthheightoriginXyattrlength (
59
+ sqInt w , sqInt h , sqInt x , sqInt y , char * list , sqInt attributeListLength )
60
60
{
61
61
if (noDisplay )
62
62
return 0 ;
@@ -65,7 +65,7 @@ int createWindowWidthheightoriginXyattrlength(
65
65
}
66
66
67
67
68
- /* ioShowDisplayOnWindow: similar to ioShowDisplay but adds the int windowIndex
68
+ /* ioShowDisplayOnWindow: similar to ioShowDisplay but adds the sqInt windowIndex
69
69
* Return true if ok, false if not, but not currently checked
70
70
*/
71
71
sqInt ioShowDisplayOnWindow (
@@ -82,13 +82,13 @@ sqInt ioShowDisplayOnWindow(
82
82
}
83
83
84
84
85
- /* ioSizeOfWindow: arg is int windowIndex. Return the size of the specified
85
+ /* ioSizeOfWindow: arg is sqInt windowIndex. Return the size of the specified
86
86
* window in (width<<16 || height) format like ioScreenSize.
87
87
* Return -1 for failure - typically invalid windowIndex
88
88
* -1 is chosen since itwould correspond to a window size of 64k@64k which
89
89
* I hope is unlikely for some time to come
90
90
*/
91
- int ioSizeOfWindow (int windowIndex )
91
+ sqInt ioSizeOfWindow (sqInt windowIndex )
92
92
{
93
93
if (noDisplay )
94
94
return -1 ;
@@ -97,11 +97,11 @@ int ioSizeOfWindow(int windowIndex)
97
97
}
98
98
99
99
100
- /* ioSizeOfWindowSetxy: args are int windowIndex, int w & h for the
100
+ /* ioSizeOfWindowSetxy: args are sqInt windowIndex, sqInt w & h for the
101
101
* width / height to make the window. Return the actual size the OS
102
102
* produced in (width<<16 || height) format or -1 for failure as above.
103
103
*/
104
- int ioSizeOfWindowSetxy (int windowIndex , int w , int h )
104
+ sqInt ioSizeOfWindowSetxy (sqInt windowIndex , sqInt w , sqInt h )
105
105
{
106
106
if (noDisplay )
107
107
return -1 ;
@@ -110,11 +110,11 @@ int ioSizeOfWindowSetxy(int windowIndex, int w, int h)
110
110
}
111
111
112
112
113
- /* ioPositionOfWindow: arg is int windowIndex. Return the pos of the specified
113
+ /* ioPositionOfWindow: arg is sqInt windowIndex. Return the pos of the specified
114
114
* window in (left<<16 || top) format like ioScreenSize.
115
115
* Return -1 (as above) for failure - typically invalid windowIndex
116
116
*/
117
- int ioPositionOfWindow (int windowIndex )
117
+ sqInt ioPositionOfWindow (sqInt windowIndex )
118
118
{
119
119
if (noDisplay )
120
120
return -1 ;
@@ -123,11 +123,11 @@ int ioPositionOfWindow(int windowIndex)
123
123
}
124
124
125
125
126
- /* ioPositionOfWindowSetxy: args are int windowIndex, int x & y for the
126
+ /* ioPositionOfWindowSetxy: args are sqInt windowIndex, sqInt x & y for the
127
127
* origin x/y for the window. Return the actual origin the OS
128
128
* produced in (left<<16 || top) format or -1 for failure, as above
129
129
*/
130
- int ioPositionOfWindowSetxy (int windowIndex , int x , int y )
130
+ sqInt ioPositionOfWindowSetxy (sqInt windowIndex , sqInt x , sqInt y )
131
131
{
132
132
if (noDisplay )
133
133
return -1 ;
@@ -136,11 +136,11 @@ int ioPositionOfWindowSetxy(int windowIndex, int x, int y)
136
136
}
137
137
138
138
139
- /* ioSetTitleOfWindow: args are int windowIndex, char* newTitle and
140
- * int size of new title. Fail with -1 if windowIndex is invalid, string is too
139
+ /* ioSetTitleOfWindow: args are sqInt windowIndex, char* newTitle and
140
+ * sqInt size of new title. Fail with -1 if windowIndex is invalid, string is too
141
141
* long for platform etc. Leave previous title in place on failure
142
142
*/
143
- int ioSetTitleOfWindow (int windowIndex , char * newTitle , int sizeOfTitle )
143
+ sqInt ioSetTitleOfWindow (sqInt windowIndex , char * newTitle , sqInt sizeOfTitle )
144
144
{
145
145
if (noDisplay )
146
146
return -1 ;
@@ -149,8 +149,8 @@ int ioSetTitleOfWindow(int windowIndex, char *newTitle, int sizeOfTitle)
149
149
}
150
150
151
151
152
- /* ioSetIconOfWindow: args are int windowIndex, char* iconPath and
153
- * int size of new logo path. If one of the function is failing, the logo is not set.
152
+ /* ioSetIconOfWindow: args are sqInt windowIndex, char* iconPath and
153
+ * sqInt size of new logo path. If one of the function is failing, the logo is not set.
154
154
*/
155
155
sqInt ioSetIconOfWindow (sqInt windowIndex , char * iconPath , sqInt sizeOfPath ) {
156
156
//Not implemented
@@ -161,7 +161,7 @@ sqInt ioSetIconOfWindow(sqInt windowIndex, char * iconPath, sqInt sizeOfPath) {
161
161
* Close all the windows that appear to be open.
162
162
* No useful return value since we're getting out of Dodge anyway.
163
163
*/
164
- int ioCloseAllWindows (void )
164
+ sqInt ioCloseAllWindows (void )
165
165
{
166
166
if (noDisplay )
167
167
return 0 ;
0 commit comments