2004-11-18 05:34:19 +00:00
|
|
|
/* NSView+GormExtensions.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004 Free Software Foundation, Inc.
|
|
|
|
*
|
|
|
|
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
|
|
|
* Date: 2004
|
|
|
|
*
|
|
|
|
* This file is part of GNUstep.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2005-05-26 03:37:38 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
2004-11-18 05:34:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_NSView_GormExtensions_h
|
|
|
|
#define INCLUDED_NSView_GormExtensions_h
|
|
|
|
|
|
|
|
#include <AppKit/NSView.h>
|
|
|
|
|
|
|
|
@class NSArray;
|
|
|
|
|
|
|
|
@interface NSView (GormExtensions)
|
2005-07-27 02:49:57 +00:00
|
|
|
/**
|
|
|
|
* All superviews of the receiver.
|
|
|
|
*/
|
2004-11-18 05:34:19 +00:00
|
|
|
- (NSArray *) superviews;
|
2005-07-27 02:49:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns YES if the receiver has an instance of the Class cls
|
|
|
|
* as a superview.
|
|
|
|
*/
|
2004-11-18 05:34:19 +00:00
|
|
|
- (BOOL) hasSuperviewKindOfClass: (Class)cls;
|
2005-07-27 02:49:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Move the subview sv in reciever to the end of the reciever's
|
|
|
|
* display list. This has the effect of making it appear in front
|
|
|
|
* of the other views.
|
|
|
|
*/
|
2005-07-04 21:53:33 +00:00
|
|
|
- (void) moveViewToFront: (NSView *)sv;
|
2005-07-27 02:49:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Move the subview sv in reciever to the beginning of the reciever's
|
|
|
|
* display list. This has the effect of making it appear in back
|
|
|
|
* of the other views.
|
|
|
|
*/
|
2005-07-04 21:53:33 +00:00
|
|
|
- (void) moveViewToBack: (NSView *)sv;
|
2004-11-18 05:34:19 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|