2003-07-31 23:52:10 +00:00
|
|
|
/*
|
|
|
|
GSVbox.h
|
|
|
|
|
|
|
|
The GSVbox class (a GNU extension)
|
|
|
|
|
|
|
|
Copyright (C) 1999 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Author: Nicola Pero <n.pero@mi.flashnet.it>
|
|
|
|
Date: 1999
|
|
|
|
|
|
|
|
This file is part of the GNUstep GUI Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-10-29 21:16:17 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2003-07-31 23:52:10 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-10 04:01:49 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-10-29 21:16:17 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
2003-07-31 23:52:10 +00:00
|
|
|
|
2007-10-29 21:16:17 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2003-07-31 23:52:10 +00:00
|
|
|
License along with this library; see the file COPYING.LIB.
|
2007-10-29 21:16:17 +00:00
|
|
|
If not, see <http://www.gnu.org/licenses/> or write to the
|
|
|
|
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
2003-07-31 23:52:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
//
|
|
|
|
// See GSHbox.h for comments.
|
|
|
|
// This file is generated from GSHbox.h by removing comments
|
|
|
|
// and substituting all occurrences of "hbox" with "vbox",
|
|
|
|
// "XResizing" with "YResizing", "MinXMargin" with "MinYMargin".
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _GNUstep_H_GSVbox
|
|
|
|
#define _GNUstep_H_GSVbox
|
|
|
|
|
2010-04-07 08:59:43 +00:00
|
|
|
#import "GSTable.h"
|
2003-07-31 23:52:10 +00:00
|
|
|
|
2003-12-29 17:28:52 +00:00
|
|
|
/**
|
|
|
|
<unit>
|
|
|
|
<heading>GSVbox</heading>
|
|
|
|
|
|
|
|
<p> A GSVbox is completely analogue to a GSHbox. It implements the
|
|
|
|
same methods; the only different is that it packs views from bottom
|
|
|
|
to top (from top to bottom if flipped). </p>
|
|
|
|
</unit>
|
|
|
|
*/
|
2003-07-31 23:52:10 +00:00
|
|
|
@interface GSVbox: GSTable
|
|
|
|
{
|
|
|
|
BOOL _haveViews;
|
|
|
|
float _defaultMinYMargin;
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Initizialing.
|
|
|
|
//
|
|
|
|
-(id) init;
|
|
|
|
|
|
|
|
//
|
|
|
|
// Adding a View.
|
|
|
|
//
|
2003-12-29 17:28:52 +00:00
|
|
|
/** See the documentation for GSHbox */
|
2003-07-31 23:52:10 +00:00
|
|
|
-(void) addView: (NSView *)aView;
|
|
|
|
|
2003-12-29 17:28:52 +00:00
|
|
|
/** See the documentation for GSHbox */
|
2003-07-31 23:52:10 +00:00
|
|
|
-(void) addView: (NSView *)aView
|
|
|
|
enablingYResizing: (BOOL)aFlag;
|
|
|
|
|
2003-12-29 17:28:52 +00:00
|
|
|
/** See the documentation for GSHbox */
|
2003-07-31 23:52:10 +00:00
|
|
|
-(void) addView: (NSView *)aView
|
|
|
|
withMinYMargin: (float)aMargin;
|
|
|
|
|
2003-12-29 17:28:52 +00:00
|
|
|
/** See the documentation for GSHbox */
|
2003-07-31 23:52:10 +00:00
|
|
|
-(void) addView: (NSView *)aView
|
|
|
|
enablingYResizing: (BOOL)aFlag
|
|
|
|
withMinYMargin: (float)aMargin;
|
|
|
|
|
|
|
|
//
|
|
|
|
// Adding a Separator.
|
|
|
|
//
|
2003-12-29 17:28:52 +00:00
|
|
|
/** See the documentation for GSHbox */
|
2003-07-31 23:52:10 +00:00
|
|
|
-(void) addSeparator;
|
2003-12-29 17:28:52 +00:00
|
|
|
/** See the documentation for GSHbox */
|
2003-07-31 23:52:10 +00:00
|
|
|
-(void) addSeparatorWithMinYMargin: (float)aMargin;
|
|
|
|
|
|
|
|
//
|
|
|
|
// Setting Margins.
|
|
|
|
//
|
2003-12-29 17:28:52 +00:00
|
|
|
|
2004-01-07 13:25:29 +00:00
|
|
|
/** See the documentation for GSHbox */
|
|
|
|
-(void) setDefaultMinYMargin: (float)aMargin;
|
2003-07-31 23:52:10 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Getting Number of Views
|
|
|
|
//
|
2003-12-29 17:28:52 +00:00
|
|
|
/** Return the number of views in the GSVbox (separators included). */
|
2003-07-31 23:52:10 +00:00
|
|
|
-(int) numberOfViews;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* _GNUstep_H_GSVbox */
|