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>
40 class VDKLabel: public VDKObject
41 {
42 public:
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