CEBL  2.1
EEGInterface.cpp
Go to the documentation of this file.
1 /* EEGInterface.cpp
2  * \author Jeshua Bratman
3  *
4  * Training and classifying graphical interface for CEBL.
5  */
6 
7 #include "EEGInterface.hpp"
8 
9 
12 {
13  container = gtk_vbox_new(FALSE,0);
14  g_object_ref(container);
15  gtk_widget_show_all(container);
17  bg_red = 65535;
18  bg_green = 65535;
19  bg_blue = 65535;
20 }
22 {
23  g_object_unref(container);
24 }
25 //--------------------------------------------------
26 //private methods
27 
29 void EEGInterface::packStart(GtkWidget *widget, bool expand, bool fill, int padding)
30 {
31  gtk_box_pack_start(GTK_BOX(container), widget, expand, fill, padding);
32  gtk_widget_show_all(widget);
33 }
34 void EEGInterface::packStart(GtkWidget *widget)
35 {
36  packStart(widget, false, false, 2);
37 }
39 void EEGInterface::packEnd(GtkWidget *widget, bool expand, bool fill, int padding)
40 {
41  gtk_box_pack_end(GTK_BOX(container), widget, expand, fill, padding);
42  gtk_widget_show_all(widget);
43 }
44 void EEGInterface::packEnd(GtkWidget *widget)
45 {
46  packEnd(widget, false, false, 2);
47 }
48