Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YAlignment.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:       YAlignment.h
00014 
00015   Author:     Mathias Kettner <kettner@suse.de>
00016   Maintainer: Stefan Hundhammer <sh@suse.de>
00017 
00018 /-*/
00019 
00020 #ifndef YAlignment_h
00021 #define YAlignment_h
00022 
00023 #include "YContainerWidget.h"
00024 
00025 enum YAlignmentType
00026 {
00027     YAlignUnchanged,
00028     YAlignBegin,
00029     YAlignEnd,
00030     YAlignCenter
00031 };
00032 
00033 
00037 class YAlignment : public YContainerWidget
00038 {
00039 public:
00052     YAlignment( const YWidgetOpt & opt, YAlignmentType halign, YAlignmentType valign );
00053 
00058     virtual char *widgetClass() { return "YAlignment"; }
00059 
00063     virtual void moveChild( YWidget *child, long newx, long newy ) = 0;
00064 
00070     bool stretchable( YUIDimension dim ) const;
00071 
00078     void setSize( long newwidth, long newheight );
00079 
00080 protected:
00084     YAlignmentType align[ YUIAllDimensions ];
00085 };
00086 
00087 
00088 #endif // YAlignment_h
00089 

Generated on Fri Nov 9 18:15:22 2007 for yast2-core by doxygen 1.3.6