1 /*
2 * ===========================
3 * VDK Visual Development Kit
4 * Version 0.5
5 * December 1998
6 * ===========================
7 *
8 * Copyright (C) 1998, Mario Motta
9 * Developed by Mario Motta <mmotta@guest.net>
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Library General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Library General Public License for more details.
20 *
21 * You should have received a copy of the GNU Library General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24 * 02111-1307, USA.
25 */
26
27 #include "vdk/fixed.h"
28 #include "vdk/forms.h"
29
VDKFixed(VDKForm * owner)30 VDKFixed::VDKFixed(VDKForm* owner)
31 :VDKObjectContainer(owner)
32 {
33 widget = gtk_fixed_new();
34 }
35
~VDKFixed()36 VDKFixed::~VDKFixed()
37 {
38 }
39
Add(VDKObject * obj,int justify,int expand,int fill,int padding)40 void VDKFixed::Add(VDKObject* obj, int justify,
41 int expand, int fill , int padding)
42 {
43 // here justify and exoand are used as x,y coordinates
44 gtk_fixed_put( GTK_FIXED(widget), obj->Widget(), justify, expand );
45 // calls ancestor (B.Liskov docet...)
46 VDKObjectContainer::Add(obj,0,0,0,0);
47 }
48
Put(VDKObject * obj,int x,int y)49 void VDKFixed::Put(VDKObject* obj, int x, int y)
50 {
51 gtk_fixed_put( GTK_FIXED(widget), obj->Widget(), x, y );
52 // calls ancestor (B.Liskov docet...)
53 VDKObjectContainer::Add(obj,0,0,0,0);
54
55 }
56
57
58
59