CEBL
2.1
Main Page
Namespaces
Data Structures
Files
File List
Globals
gui
CEBLGtkWidget.hpp
Go to the documentation of this file.
1
/*
2
* CEBL : CSU EEG Brain-Computer Interface Lab
3
*
4
* Author: Jeshua Bratman - jeshuabratman@gmail.com
5
*
6
* This file is part of CEBL.
7
*
8
* CEBL is free software; you can redistribute it and/or modify it.
9
* We only ask that if you use our code that you cite the source in
10
* your project or publication.
11
*
12
* EEG Group (www.cs.colostate.edu/eeg)
13
* Department of Computer Science
14
* Colorado State University
15
*
16
*/
17
18
/* CEBLGtkWidget.hpp
19
* \author Jeshua Bratman
20
*
21
* Simple C++ gtk widget class.
22
*
23
*/
24
25
#ifndef CEBLGTKWIDGET_H
26
#define CEBLGTKWIDGET_H
27
28
#include <gtk/gtk.h>
29
30
class
CEBLGtkWidget
31
{
32
protected
:
33
GtkWidget *
cebl_gtk_widget_container
;
34
//add a widget to the container
35
void
setWidgetContainer
(GtkWidget *widget) {
36
gtk_box_pack_start(GTK_BOX(
cebl_gtk_widget_container
),widget,
true
,
true
,0);
37
}
38
39
public
:
40
CEBLGtkWidget
();
41
virtual
~CEBLGtkWidget
();
42
43
//widget controls
44
46
virtual
GtkWidget*
getContainer
();
48
virtual
operator
GtkWidget*();
50
virtual
void
removeWidget
(GtkWidget* widget);
52
virtual
void
hide
();
54
virtual
void
show
();
55
};
56
57
#endif
58
Generated by
1.8.1.1