libyui

/data/gitorious.org/libyui/libyui-master/src/YSpacing.h

00001 /**************************************************************************
00002 Copyright (C) 2000 - 2010 Novell, Inc.
00003 All Rights Reserved.
00004 
00005 This program is free software; you can redistribute it and/or modify
00006 it under the terms of the GNU General Public License as published by
00007 the Free Software Foundation; either version 2 of the License, or
00008 (at your option) any later version.
00009 
00010 This program is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License along
00016 with this program; if not, write to the Free Software Foundation, Inc.,
00017 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00018 
00019 **************************************************************************/
00020 
00021 
00022 
00023 /*---------------------------------------------------------------------\
00024 |                                                                      |
00025 |                      __   __    ____ _____ ____                      |
00026 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00027 |                       \ V / _` \___ \ | |   __) |                    |
00028 |                        | | (_| |___) || |  / __/                     |
00029 |                        |_|\__,_|____/ |_| |_____|                    |
00030 |                                                                      |
00031 |                               core system                            |
00032 |                                                        (C) SuSE GmbH |
00033 \----------------------------------------------------------------------/
00034 
00035   File:         YSpacing.h
00036 
00037   Author:       Stefan Hundhammer <sh@suse.de>
00038 
00039 /-*/
00040 
00041 #ifndef YSpacing_h
00042 #define YSpacing_h
00043 
00044 #include "YWidget.h"
00045 #include "ImplPtr.h"
00046 
00047 class YSpacingPrivate;
00048 
00049 
00053 class YSpacing: public YWidget
00054 {
00055 public:
00056 
00069     YSpacing( YWidget *         parent,
00070               YUIDimension      dim,
00071               bool              stretchable     = false,
00072               YLayoutSize_t     layoutUnits     = 0.0 );
00073 
00077     virtual ~YSpacing();
00078     
00083     virtual const char * widgetClass() const;
00084 
00089     YUIDimension dimension() const;
00090 
00097     int size() const;
00098 
00105     int size( YUIDimension dim ) const;
00106 
00112     virtual int preferredWidth();
00113 
00119     virtual int preferredHeight();
00120 
00121     
00122 private:
00123 
00124     ImplPtr<YSpacingPrivate> priv;
00125 };
00126 
00127 
00128 typedef YSpacing YVSpacing;
00129 typedef YSpacing YHSpacing;
00130 typedef YSpacing YHStretch;
00131 typedef YSpacing YVStretch;
00132 
00133 
00134 #endif // YSpacing_h
 All Classes Functions Variables Enumerations Friends