Rapicorn - Experimental UI Toolkit - Source Code 10.08.1
layoutcontainers.hh
Go to the documentation of this file.
00001 /* Rapicorn
00002  * Copyright (C) 2005 Tim Janik
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * A copy of the GNU Lesser General Public License should ship along
00015  * with this library; if not, see http://www.gnu.org/copyleft/.
00016  */
00017 #ifndef __RAPICORN_LAYOUT_CONTAINERS_HH__
00018 #define __RAPICORN_LAYOUT_CONTAINERS_HH__
00019 
00020 #include <ui/container.hh>
00021 
00022 namespace Rapicorn {
00023 
00024 class Alignment : public virtual ContainerImpl {
00025   virtual uint  padding         () const  = 0;
00026 protected:
00027   virtual const PropertyList&   list_properties ();
00028 public:
00029   virtual uint  left_padding    () const  = 0;
00030   virtual void  left_padding    (uint c)  = 0;
00031   virtual uint  right_padding   () const  = 0;
00032   virtual void  right_padding   (uint c)  = 0;
00033   virtual uint  bottom_padding  () const  = 0;
00034   virtual void  bottom_padding  (uint c)  = 0;
00035   virtual uint  top_padding     () const  = 0;
00036   virtual void  top_padding     (uint c)  = 0;
00037   virtual void  padding         (uint c)  = 0;
00038 };
00039 
00040 class HBox : public virtual ContainerImpl {
00041 protected:
00042   virtual const PropertyList&   list_properties ();
00043 public:
00044   virtual bool  homogeneous     () const = 0;
00045   virtual void  homogeneous     (bool chomogeneous_items) = 0;
00046   virtual uint  spacing         () = 0;
00047   virtual void  spacing         (uint cspacing) = 0;
00048 };
00049 
00050 class VBox : public virtual ContainerImpl {
00051 protected:
00052   virtual const PropertyList&   list_properties ();
00053 public:
00054   virtual bool  homogeneous     () const = 0;
00055   virtual void  homogeneous     (bool chomogeneous_items) = 0;
00056   virtual uint  spacing         () = 0;
00057   virtual void  spacing         (uint cspacing) = 0;
00058 };
00059 
00060 } // Rapicorn
00061 
00062 #endif  /* __RAPICORN_LAYOUT_CONTAINERS_HH__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines