Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

frame.h

00001 /*
00002  * ===========================
00003  * VDK Visual Development Kit
00004  * Version 0.4
00005  * October 1998
00006  * ===========================
00007  *
00008  * Copyright (C) 1998, Mario Motta
00009  * Developed by Mario Motta <mmotta@guest.net>
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Library General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2 of the License, or (at your option) any later version.
00015  *
00016  * This library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Library General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Library General Public
00022  * License along with this library; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00024  * 02111-1307, USA.
00025  */
00026 
00027 
00028 #ifndef FRAME_H
00029 #define FRAME_H
00030 #include <vdk/vdkobj.h>
00031 #include <vdk/boxes.h>
00032 #include <vdk/vdkprops.h>
00033 #include <vdk/widcontain.h>
00040 class VDKFrame: public VDKObjectContainer
00041 {
00042  protected:
00043   VDKBox* box;
00044   void SetLabel(char* label)
00045     { gtk_frame_set_label(GTK_FRAME(widget),label); }
00046   void SetShadow(int shadow)
00047     { gtk_frame_set_shadow_type(GTK_FRAME(widget),(GtkShadowType) shadow); }
00048   void SetAlign(int j);
00049 public:
00050   // properties
00054   __rwproperty(VDKFrame, char*) Label;
00064   __rwproperty(VDKFrame, int) Shadow;
00072   __rwproperty(VDKFrame, int) Align;
00080   //
00081   VDKFrame(VDKForm* owner,
00082            char* label = (char*) NULL,
00083            int mode = v_box,
00084            int shadow = shadow_in);
00085   ~VDKFrame() {}
00094   void Add(VDKObject* obj,int justify = l_justify,
00095            int expand = TRUE, int fill = TRUE , int padding = 0);
00096 };
00097 
00098 #endif

Generated on Sat May 4 22:00:23 2002 for vdk 2.0.1 by doxygen1.2.15