Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

cornercontainer.h

00001 /* 00002 libwftk - Worldforge Toolkit - a widget library 00003 Copyright (C) 2003 Ron Steinke <rsteinke@w-link.net> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library 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 GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the 00017 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, SA. 00019 */ 00020 00021 #ifndef _CORNER_CONTAINER_H 00022 #define _CORNER_CONTAINER_H 00023 00024 #include <wftk/singlecontainer.h> 00025 00026 namespace wftk { 00027 00036 class CornerContainer : public SingleContainer 00037 { 00038 public: 00043 enum Corner { 00044 // some flags, so you can convieniently set up a corner 00045 LEFT = 1, 00046 RIGHT = 2, 00047 TOP = 4, 00048 BOTTOM = 8, 00049 // the constructor expects one of these 00050 TOP_LEFT = TOP | LEFT, 00051 TOP_RIGHT = TOP | RIGHT, 00052 BOTTOM_LEFT = BOTTOM | LEFT, 00053 BOTTOM_RIGHT = BOTTOM | RIGHT 00054 }; 00055 00063 CornerContainer(Corner corner = BOTTOM_RIGHT, unsigned hpad = 10, unsigned vpad = 10); 00064 00065 protected: 00067 virtual void handleResize(Uint16 w, Uint16 h); 00068 private: 00069 Corner corner_; 00070 unsigned hpad_, vpad_; 00071 }; 00072 00073 } // namespace wftk 00074 00075 #endif // _CORNER_CONTAINER_H

Generated Wed Jul 28 17:28:42 2004.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.