gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
Frame.H
Go to the documentation of this file.
1 /* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2  This file is part of GTK+ IOStream class set
3 
4  GTK+ IOStream is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  GTK+ IOStream is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You have received a copy of the GNU General Public License
15  along with GTK+ IOStream
16 */
17 #ifndef FRAME_H_
18 #define FRAME_H_
19 
20 #include "Container.H"
21 
27 class Frame : public Container {
28 public:
29  // Empty constructor
30  Frame(void){
31  widget=gtk_frame_new("No label"); // create the frame with the label
32  }
33 
36  Frame(const char *label){
37  widget=gtk_frame_new(label); // create the frame with the label
38  }
39 
43  void setLabel(string label){
44  gtk_frame_set_label(GTK_FRAME(widget), label.c_str());
45  }
46 
50  string getLabel(void){
51  return gtk_frame_get_label(GTK_FRAME(widget));
52  }
53 };
54 #endif // FRAME_H_
Frame(const char *label)
Definition: Frame.H:36
GtkWidget * widget
The container based widget.
Definition: Widget.H:33
Definition: Frame.H:27
string getLabel(void)
Definition: Frame.H:50
void setLabel(string label)
Definition: Frame.H:43
Frame(void)
Definition: Frame.H:30
gtkIOStream: /tmp/gtkiostream/include/Frame.H Source File
GTK+ IOStream  Beta