mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:40:37 +00:00
New stuff for moving and sizing windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4517 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
091a243983
commit
a79eeb8a2d
4 changed files with 176 additions and 17 deletions
|
@ -252,7 +252,7 @@ NSGraphicsContext *GSCurrentContext()
|
|||
*/
|
||||
- (BOOL) _addDragTypes: (NSArray*)types toWindow: (int)winNum
|
||||
{
|
||||
NSCountedSet *old = (NSCountedSet*)NSMapGet(drag_types, winNum);
|
||||
NSCountedSet *old = (NSCountedSet*)NSMapGet(drag_types, (void*)winNum);
|
||||
unsigned originalCount;
|
||||
unsigned i = [types count];
|
||||
|
||||
|
@ -288,7 +288,7 @@ NSGraphicsContext *GSCurrentContext()
|
|||
*/
|
||||
- (BOOL) _removeDragTypes: (NSArray*)types fromWindow: (int)winNum
|
||||
{
|
||||
NSCountedSet *old = (NSCountedSet*)NSMapGet(drag_types, winNum);
|
||||
NSCountedSet *old = (NSCountedSet*)NSMapGet(drag_types, (void*)winNum);
|
||||
|
||||
if (types == nil)
|
||||
{
|
||||
|
@ -320,7 +320,16 @@ NSGraphicsContext *GSCurrentContext()
|
|||
|
||||
- (NSCountedSet*) _dragTypesForWindow: (int)winNum
|
||||
{
|
||||
return (NSCountedSet*)NSMapGet(drag_types, winNum);
|
||||
return (NSCountedSet*)NSMapGet(drag_types, (void*)winNum);
|
||||
}
|
||||
|
||||
/*
|
||||
* Misc window management support.
|
||||
*/
|
||||
- (BOOL) _setFrame: (NSRect)frameRect forWindow: (int)winNum
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue