Fix window number casting from int to NSInteger

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40198 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2016-11-08 21:38:17 +00:00
parent 5d1a88a4db
commit f32af34fe8
2 changed files with 64 additions and 64 deletions

View file

@ -91,7 +91,7 @@ APPKIT_EXPORT NSString *GSScreenNumber;
- (NSCountedSet*) dragTypesForWindow: (NSWindow *)win; - (NSCountedSet*) dragTypesForWindow: (NSWindow *)win;
- (id <NSDraggingInfo>) dragInfo; - (id <NSDraggingInfo>) dragInfo;
- (BOOL) slideImage: (NSImage*)image from: (NSPoint)from to: (NSPoint)to; - (BOOL) slideImage: (NSImage*)image from: (NSPoint)from to: (NSPoint)to;
- (void) restrictWindow: (int)win toImage: (NSImage*)image; - (void) restrictWindow: (NSInteger)win toImage: (NSImage*)image;
- (int) findWindowAt: (NSPoint)screenLocation - (int) findWindowAt: (NSPoint)screenLocation
windowRef: (int*)windowRef windowRef: (int*)windowRef
excluding: (int)win; excluding: (int)win;
@ -122,47 +122,47 @@ APPKIT_EXPORT NSString *GSScreenNumber;
/* GNUstep Window operations */ /* GNUstep Window operations */
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
@interface GSDisplayServer (WindowOps) @interface GSDisplayServer (WindowOps)
- (void) _setWindowOwnedByServer: (int)win; - (void) _setWindowOwnedByServer: (NSInteger)win;
- (int) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style; - (NSInteger) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style;
- (int) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style - (NSInteger) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style
: (int)screen; : (int)screen;
- (void) termwindow: (int)win; - (void) termwindow: (NSInteger)win;
- (int) nativeWindow: (void *)winref : (NSRect*)frame : (NSBackingStoreType*)type - (int) nativeWindow: (void *)winref : (NSRect*)frame : (NSBackingStoreType*)type
: (unsigned int*)style : (int*)screen; : (unsigned int*)style : (int*)screen;
/* Only if handlesWindowDecorations returns YES. */ /* Only if handlesWindowDecorations returns YES. */
- (void) stylewindow: (unsigned int)style : (int)win; - (void) stylewindow: (unsigned int)style : (NSInteger)win;
- (void) windowbacking: (NSBackingStoreType)type : (int)win; - (void) windowbacking: (NSBackingStoreType)type : (NSInteger)win;
- (void) titlewindow: (NSString *)window_title : (int)win; - (void) titlewindow: (NSString *)window_title : (NSInteger)win;
- (void) miniwindow: (int)win; - (void) miniwindow: (NSInteger)win;
- (BOOL) appOwnsMiniwindow; - (BOOL) appOwnsMiniwindow;
- (void) setWindowdevice: (int)win forContext: (NSGraphicsContext *)ctxt; - (void) setWindowdevice: (NSInteger)win forContext: (NSGraphicsContext *)ctxt;
// Deprecated // Deprecated
- (void) windowdevice: (int) winNum; - (void) windowdevice: (NSInteger) winNum;
- (void) orderwindow: (int)op : (int)otherWin : (int)win; - (void) orderwindow: (int)op : (NSInteger)otherWin : (NSInteger)win;
- (void) movewindow: (NSPoint)loc : (int)win; - (void) movewindow: (NSPoint)loc : (NSInteger)win;
- (void) placewindow: (NSRect)frame : (int)win; - (void) placewindow: (NSRect)frame : (NSInteger)win;
- (NSRect) windowbounds: (int)win; - (NSRect) windowbounds: (NSInteger)win;
- (void) setwindowlevel: (int)level : (int)win; - (void) setwindowlevel: (int)level : (NSInteger)win;
- (int) windowlevel: (int)win; - (int) windowlevel: (NSInteger)win;
- (NSArray *) windowlist; - (NSArray *) windowlist;
- (int) windowdepth: (int)win; - (int) windowdepth: (NSInteger)win;
- (void) setmaxsize: (NSSize)size : (int)win; - (void) setmaxsize: (NSSize)size : (NSInteger)win;
- (void) setminsize: (NSSize)size : (int)win; - (void) setminsize: (NSSize)size : (NSInteger)win;
- (void) setresizeincrements: (NSSize)size : (int)win; - (void) setresizeincrements: (NSSize)size : (NSInteger)win;
- (void) flushwindowrect: (NSRect)rect : (int)win; - (void) flushwindowrect: (NSRect)rect : (NSInteger)win;
- (void) styleoffsets: (float*)l : (float*)r : (float*)t : (float*)b - (void) styleoffsets: (float*)l : (float*)r : (float*)t : (float*)b
: (unsigned int)style; : (unsigned int)style;
- (void) docedited: (int) edited : (int)win; - (void) docedited: (int) edited : (NSInteger)win;
- (void) setinputstate: (int)state : (int)win; - (void) setinputstate: (int)state : (NSInteger)win;
- (void) setinputfocus: (int)win; - (void) setinputfocus: (NSInteger)win;
- (void) setalpha: (float)alpha : (int)win; - (void) setalpha: (float)alpha : (NSInteger)win;
- (void) setShadow: (BOOL)hasShadow : (int)win; - (void) setShadow: (BOOL)hasShadow : (NSInteger)win;
- (NSPoint) mouselocation; - (NSPoint) mouselocation;
- (NSPoint) mouseLocationOnScreen: (int)aScreen window: (int *)win; - (NSPoint) mouseLocationOnScreen: (int)aScreen window: (NSInteger *)win;
- (BOOL) capturemouse: (int)win; - (BOOL) capturemouse: (NSInteger)win;
- (void) releasemouse; - (void) releasemouse;
- (void) setMouseLocation: (NSPoint)mouseLocation onScreen: (int)aScreen; - (void) setMouseLocation: (NSPoint)mouseLocation onScreen: (int)aScreen;
- (void) hidecursor; - (void) hidecursor;
@ -173,9 +173,9 @@ APPKIT_EXPORT NSString *GSScreenNumber;
- (void) recolorcursor: (NSColor *)fg : (NSColor *)bg : (void*) cid; - (void) recolorcursor: (NSColor *)fg : (NSColor *)bg : (void*) cid;
- (void) setcursor: (void*) cid; - (void) setcursor: (void*) cid;
- (void) freecursor: (void*) cid; - (void) freecursor: (void*) cid;
- (void) setParentWindow: (int)parentWin - (void) setParentWindow: (NSInteger)parentWin
forChildWindow: (int)childWin; forChildWindow: (NSInteger)childWin;
- (void) setIgnoreMouse: (BOOL)ignoreMouse : (int)win; - (void) setIgnoreMouse: (BOOL)ignoreMouse : (NSInteger)win;
@end @end

View file

@ -410,7 +410,7 @@ GSCurrentServer(void)
return [GSSlideView _slideImage: image from: from to: to]; return [GSSlideView _slideImage: image from: from to: to];
} }
- (void) restrictWindow: (int)win toImage: (NSImage*)image - (void) restrictWindow: (NSInteger)win toImage: (NSImage*)image
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -527,7 +527,7 @@ GSCurrentServer(void)
win. Concrete subclasses must call this function when creating a win. Concrete subclasses must call this function when creating a
window. Do not call this method in any other case, particularly window. Do not call this method in any other case, particularly
for a window that has already been created */ for a window that has already been created */
- (void) _setWindowOwnedByServer: (int)win - (void) _setWindowOwnedByServer: (NSInteger)win
{ {
if (windowmaps != NULL) if (windowmaps != NULL)
{ {
@ -547,7 +547,7 @@ GSCurrentServer(void)
Use -styleoffsets::::: to determine the extent of the decorations Use -styleoffsets::::: to determine the extent of the decorations
and determine the size of the drawable area inside them. and determine the size of the drawable area inside them.
*/ */
- (int) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style - (NSInteger) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style
{ {
int sn = [[server_info objectForKey: GSScreenNumber] intValue]; int sn = [[server_info objectForKey: GSScreenNumber] intValue];
@ -556,7 +556,7 @@ GSCurrentServer(void)
/** Like -window::: only there is an additional argument to specify which /** Like -window::: only there is an additional argument to specify which
screen the window will display on */ screen the window will display on */
- (int) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style - (NSInteger) window: (NSRect)frame : (NSBackingStoreType)type : (unsigned int)style
: (int)screen : (int)screen
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
@ -565,7 +565,7 @@ GSCurrentServer(void)
/** Destroys the representation of the window and frees and memory /** Destroys the representation of the window and frees and memory
associated with it. */ associated with it. */
- (void) termwindow: (int) win - (void) termwindow: (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -584,25 +584,25 @@ GSCurrentServer(void)
/** Sets the style of the window. See [NSWindow-styleMask] for a /** Sets the style of the window. See [NSWindow-styleMask] for a
description of the available styles */ description of the available styles */
- (void) stylewindow: (unsigned int) style : (int) win - (void) stylewindow: (unsigned int) style : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
/** Changes window's the backing store to type */ /** Changes window's the backing store to type */
- (void) windowbacking: (NSBackingStoreType)type : (int) win - (void) windowbacking: (NSBackingStoreType)type : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
/** Sets the window title */ /** Sets the window title */
- (void) titlewindow: (NSString *) window_title : (int) win - (void) titlewindow: (NSString *) window_title : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
/** Miniaturizes the window */ /** Miniaturizes the window */
- (void) miniwindow: (int) win - (void) miniwindow: (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -621,7 +621,7 @@ GSCurrentServer(void)
typically by calling [NSGraphicsContext-GSSetDevice:::], typically by calling [NSGraphicsContext-GSSetDevice:::],
although depending on the concrete implmentation, more information although depending on the concrete implmentation, more information
than this may need to be exchanged. */ than this may need to be exchanged. */
- (void) windowdevice: (int)winNum - (void) windowdevice: (NSInteger)winNum
{ {
[self setWindowdevice: winNum forContext: GSCurrentContext()]; [self setWindowdevice: winNum forContext: GSCurrentContext()];
} }
@ -630,7 +630,7 @@ GSCurrentServer(void)
typically by calling [NSGraphicsContext-GSSetDevice:::], typically by calling [NSGraphicsContext-GSSetDevice:::],
although depending on the concrete implmentation, more information although depending on the concrete implmentation, more information
than this may need to be exchanged. */ than this may need to be exchanged. */
- (void) setWindowdevice: (int)win forContext: (NSGraphicsContext *)ctxt - (void) setWindowdevice: (NSInteger)win forContext: (NSGraphicsContext *)ctxt
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -675,7 +675,7 @@ GSCurrentServer(void)
* </desc> * </desc>
* </deflist> * </deflist>
*/ */
- (void) orderwindow: (int) op : (int) otherWin : (int) win - (void) orderwindow: (int) op : (NSInteger) otherWin : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -685,7 +685,7 @@ GSCurrentServer(void)
* The position is expressed as an offset from the bottom left * The position is expressed as an offset from the bottom left
* corner of the screen. * corner of the screen.
*/ */
- (void) movewindow: (NSPoint)loc : (int) win - (void) movewindow: (NSPoint)loc : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -695,7 +695,7 @@ GSCurrentServer(void)
* any border/decorations. Its position is expressed as an offset from * any border/decorations. Its position is expressed as an offset from
* the bottom left corner of the screen. * the bottom left corner of the screen.
*/ */
- (void) placewindow: (NSRect)frame : (int) win - (void) placewindow: (NSRect)frame : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -705,7 +705,7 @@ GSCurrentServer(void)
* any border/decorations. Its position is expressed as an offset from * any border/decorations. Its position is expressed as an offset from
* the bottom left corner of the screen. * the bottom left corner of the screen.
*/ */
- (NSRect) windowbounds: (int) win - (NSRect) windowbounds: (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return NSZeroRect; return NSZeroRect;
@ -717,13 +717,13 @@ GSCurrentServer(void)
* -orderwindow::: method in the case where the position is 'above' or * -orderwindow::: method in the case where the position is 'above' or
* 'below' and the other window number is zero. * 'below' and the other window number is zero.
*/ */
- (void) setwindowlevel: (int) level : (int) win - (void) setwindowlevel: (int) level : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
/** Returns the window level as in [NSWindow -level] */ /** Returns the window level as in [NSWindow -level] */
- (int) windowlevel: (int) win - (int) windowlevel: (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return 0; return 0;
@ -751,26 +751,26 @@ GSCurrentServer(void)
} }
/** Returns the depth of the window */ /** Returns the depth of the window */
- (int) windowdepth: (int) win - (int) windowdepth: (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return 0; return 0;
} }
/** Set the maximum size (pixels) of the window */ /** Set the maximum size (pixels) of the window */
- (void) setmaxsize: (NSSize)size : (int) win - (void) setmaxsize: (NSSize)size : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
/** Set the minimum size (pixels) of the window */ /** Set the minimum size (pixels) of the window */
- (void) setminsize: (NSSize)size : (int) win - (void) setminsize: (NSSize)size : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
/** Set the resize incremenet of the window */ /** Set the resize incremenet of the window */
- (void) setresizeincrements: (NSSize)size : (int) win - (void) setresizeincrements: (NSSize)size : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -778,7 +778,7 @@ GSCurrentServer(void)
/** Causes buffered graphics to be flushed to the screen. /** Causes buffered graphics to be flushed to the screen.
* The value of rect is expressed in OpenStep window coordinates. * The value of rect is expressed in OpenStep window coordinates.
*/ */
- (void) flushwindowrect: (NSRect)rect : (int) win - (void) flushwindowrect: (NSRect)rect : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -798,7 +798,7 @@ GSCurrentServer(void)
} }
/** Sets the document edited flag for the window */ /** Sets the document edited flag for the window */
- (void) docedited: (int) edited : (int) win - (void) docedited: (int) edited : (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
@ -806,26 +806,26 @@ GSCurrentServer(void)
/** Sets the input state for the window given by the /** Sets the input state for the window given by the
GSWindowInputState constant. Instructs the window manager that the GSWindowInputState constant. Instructs the window manager that the
specified window is 'key', 'main', or just a normal window. */ specified window is 'key', 'main', or just a normal window. */
- (void) setinputstate: (int)state : (int)win - (void) setinputstate: (int)state : (NSInteger)win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
/** Forces focus to the window so that all key events are sent to this /** Forces focus to the window so that all key events are sent to this
window */ window */
- (void) setinputfocus: (int) win - (void) setinputfocus: (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
/** Sets the transparancy value for the whole window */ /** Sets the transparancy value for the whole window */
- (void) setalpha: (float)alpha : (int) win - (void) setalpha: (float)alpha : (NSInteger) win
{ {
//[self subclassResponsibility: _cmd]; //[self subclassResponsibility: _cmd];
} }
/** Sets the window shadow */ /** Sets the window shadow */
- (void) setShadow: (BOOL)hasShadow : (int)win - (void) setShadow: (BOOL)hasShadow : (NSInteger)win
{ {
//[self subclassResponsibility: _cmd]; //[self subclassResponsibility: _cmd];
} }
@ -850,7 +850,7 @@ GSCurrentServer(void)
* The location is expressed as an offset from the bottom left corner * The location is expressed as an offset from the bottom left corner
* of the screen. * of the screen.
*/ */
- (NSPoint) mouseLocationOnScreen: (int)aScreen window: (int *)win - (NSPoint) mouseLocationOnScreen: (int)aScreen window: (NSInteger *)win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return NSZeroPoint; return NSZeroPoint;
@ -860,7 +860,7 @@ GSCurrentServer(void)
directed only to the window win. If successful, the return value directed only to the window win. If successful, the return value
is YES and this message must be balanced by a -releasemouse is YES and this message must be balanced by a -releasemouse
message. */ message. */
- (BOOL) capturemouse: (int) win - (BOOL) capturemouse: (NSInteger) win
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
return NO; return NO;
@ -938,13 +938,13 @@ GSCurrentServer(void)
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
- (void) setParentWindow: (int)parentWin - (void) setParentWindow: (NSInteger)parentWin
forChildWindow: (int)childWin forChildWindow: (NSInteger)childWin
{ {
[self subclassResponsibility: _cmd]; [self subclassResponsibility: _cmd];
} }
- (void) setIgnoreMouse: (BOOL)ignoreMouse : (int)win - (void) setIgnoreMouse: (BOOL)ignoreMouse : (NSInteger)win
{ {
// Do nothing if not overridden by subclass // Do nothing if not overridden by subclass
} }