static void quit(
void *wid, gpointer data) {
gtk_main_quit();
}
static void center(void *wid, gpointer data) {
}
static void halveWidths(void *wid, gpointer data) {
}
static void halveHeights(void *wid, gpointer data) {
}
static void halveWidthsHeights(void *wid, gpointer data) {
}
static void keepAspectRatio(void *wid, gpointer data) {
}
static void keepAspectRatioFalse(void *wid, gpointer data) {
}
static void doubleSize(void *wid, gpointer data) {
int width, height;
}
static void halveSize(void *wid, gpointer data) {
int width, height;
}
int main(
int argc,
char *argv[]) {
gtk_init( &argc, &argv );
<<
BUTTONLABELSTRUCT((
char*)
"halve widths and heights", halveWidthsHeights, &selectionArea)
<<
BUTTONLABELSTRUCT((
char*)
"don't keep aspect ratio", keepAspectRatioFalse, &selectionArea)
);
topWindow<< vBox;
gtk_main();
}