gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
/* Copyright 2000-2018 Matt Flax <>
This file is part of GTK+ IOStream class set
GTK+ IOStream is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
GTK+ IOStream is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You have received a copy of the GNU General Public License
along with GTK+ IOStream
/* Compile with ...
g++ -ggdb `gtk-config --cflags` LabelsTest.C -o LabelsTest `gtk-config --libs`
#include "Window.H"
#include "Buttons.H"
#include "Labels.H"
#include "Separator.H"
#include "Box.H"
static void quit(void *wid, gpointer data){
int main(int argc, char *argv[]){
gtk_init( &argc, &argv ); // init GTK
Window topWindow; // Create the top box
VBox vBox;; vBox.setDefaultStart(true); // show the vBox and set default to pack in the start of the box
Labels labs; labs<<"separator below"<<"separator above";
// create a quit buttons and add two labels to a shown VBox
// At the same time, add them to the HBox and show it
// At the same time, add it to the top window
vBox<<; // add a label to the vBox
HSeparator hSep(1); // create one separator
vBox <<hSep.current(); // add the separator to the vbox
vBox <<; // add another label
topWindow << (vBox // show the vbox with labels
<< (Buttons()<<BUTTONLABELSTRUCT("Quit", quit, NULL))); // show the hbox with labels and buttons
gtk_main(); // run GTK+
gtkIOStream: SeparatorTest.C
GTK+ IOStream  Beta