vdk 2.4.0
label.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 * Modify by Salmaso Raffaele <r.salmaso@flashnet.it> 10 Jan 1999
12 * added 2 property: Caption and CaptionWrap
13 *
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
23 *
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 * 02111-1307, USA.
28 */
29
30#ifndef LABEL_H
31#define LABEL_H
32
33#include <vdk/vdkobj.h>
40class VDKLabel: public VDKObject
41{
42public:
43 //
47 VDKReadWriteValueProp<VDKLabel, GtkJustification> Justify;
51 VDKReadWriteValueProp<VDKLabel, const char*> Caption;
55 VDKReadWriteValueProp<VDKLabel, bool> CaptionWrap;
62 VDKLabel(VDKForm* owner, const char* label,
63 GtkJustification justify = GTK_JUSTIFY_LEFT);
64 virtual ~VDKLabel();
65 void SetCaption (const char* str);
66 const char* GetCaption ();
67 void SetCaptionWrap (bool flag);
68 bool GetCaptionWrap ();
69 void SetJustify(GtkJustification jtype);
70 GtkJustification GetJustify()
71 { return Justify; }
72};
73#endif
74
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:69
Provides a gtklabel wrapper.
Definition: label.h:41
VDKReadWriteValueProp< VDKLabel, const char * > Caption
Definition: label.h:51
VDKReadWriteValueProp< VDKLabel, bool > CaptionWrap
Definition: label.h:55
VDKLabel(VDKForm *owner, const char *label, GtkJustification justify=GTK_JUSTIFY_LEFT)
Definition: label.cc:31
VDKReadWriteValueProp< VDKLabel, GtkJustification > Justify
Definition: label.h:47
Definition: vdkobj.h:141