vdk 2.4.0
frame.h
1/*
2 * ===========================
3 * VDK Visual Development Kit
4 * Version 0.4
5 * October 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
28#ifndef FRAME_H
29#define FRAME_H
30#include <vdk/vdkobj.h>
31#include <vdk/boxes.h>
32#include <vdk/vdkprops.h>
33#include <vdk/widcontain.h>
41{
42 protected:
43 VDKBox* box;
44 void SetLabel(char* label)
45 { gtk_frame_set_label(GTK_FRAME(widget),label); }
46 void SetShadow(int shadow)
47 { gtk_frame_set_shadow_type(GTK_FRAME(widget),(GtkShadowType) shadow); }
48 void SetAlign(int j);
49public:
50 // properties
54 __rwproperty(VDKFrame, char*) Label;
64 __rwproperty(VDKFrame, int) Shadow;
80 //
81 VDKFrame(VDKForm* owner,
82 char* label = (char*) NULL,
83 int mode = v_box,
84 int shadow = shadow_in);
85 ~VDKFrame() {}
94 void Add(VDKObject* obj,int justify = l_justify,
95 int expand = TRUE, int fill = TRUE , int padding = 0);
96};
97
98#endif
One of the most used widget containers.
Definition: boxes.h:38
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:69
This class wraps a gtkframe widget.
Definition: frame.h:41
void Add(VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0)
Definition: frame.cc:60
VDKFrame(VDKForm *owner, char *label=(char *) NULL, int mode=v_box, int shadow=shadow_in)
Definition: frame.cc:30
__rwproperty(VDKFrame, int) Shadow
__rwproperty(VDKFrame, char *) Label
__rwproperty(VDKFrame, int) Align
Containers base class.
Definition: widcontain.h:40
Definition: vdkobj.h:141
GtkWidget * widget
Definition: vdkobj.h:241