YSpacing.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       YSpacing.h
00014 
00015   Author:     Stefan Hundhammer <sh@suse.de>
00016 
00017 /-*/
00018 
00019 // -*- c++ -*-
00020 
00021 #ifndef YSpacing_h
00022 #define YSpacing_h
00023 
00024 #include "YWidget.h"
00025 
00029 class YSpacing : public YWidget
00030 {
00031 public:
00032 
00039     YSpacing( const YWidgetOpt & opt, float layoutUnits, bool horizontal, bool vertical );
00040 
00045     virtual char *widgetClass() { return "YSpacing"; }
00046 
00052     long nicesize( YUIDimension dim );
00053 
00059     bool isLayoutStretch( YUIDimension dim ) const;
00060 
00064     long width() const { return _size[ YD_HORIZ ]; }
00065     
00069     long height() const { return _size[ YD_VERT ]; }
00070 
00071     
00072 private:
00073     
00074     long _size[ YUIAllDimensions ];
00075 };
00076 
00077 
00078 #endif // YSpacing_h

Generated on Fri Jun 16 18:07:45 2006 for yast2-core by  doxygen 1.4.6