GTK+ IOStream
Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
InlineTest.C
Go to the documentation of this file.
1
/* Copyright 2000-2013 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
#include "
gtkInterface.H
"
18
#include "
Buttons.H
"
19
#include "
Labels.H
"
20
21
static
void
quit
(
void
*wid, gpointer data){
22
gtk_main_quit();
23
}
24
25
int
main
(
int
argc,
char
*argv[]){
26
gtk_init( &argc, &argv );
// init GTK
27
28
29
// Do all of the GTK+ IOStream in ONE line
30
GtkInterface
() << (
VBox
() << (
Labels
()<<
"completely inline\n\nClasses destruct but\n\nthe widgets still exist."
)
// add the label to the HBox
31
<< (
Buttons
()<<
BUTTONLABELSTRUCT
(
"Quit"
,
quit
, NULL)) ).show();
// add the button and show the HBox
32
33
gtk_main();
// run GTK+
34
}
35
Generated on Tue Jun 4 2013 11:03:27 for GTK+ IOStream by
1.8.3.1