papyrusmm-demo/demos.h

00001 #ifndef _DEMOS_H
00002 #define _DEMOS_H
00003 
00004 #include "demowindow.h"
00005 
00006 typedef sigc::slot<Gtk::Window*> type_slotDo;
00007 
00008 struct Demo
00009 {
00010   const char* title;
00011   const char* filename;
00012   //GDoDemoFunc func;
00013   type_slotDo slot; //The method to call.
00014   Demo* children;
00015 };
00016 
00017 
00018 Gtk::Window* do_AnimatorBounceWidget();
00019 Gtk::Window* do_AnimatorFrameIntervalWidget();
00020 Gtk::Window* do_AnimatorFrameRateWidget();
00021 Gtk::Window* do_LineCapButtonBox();
00022 Gtk::Window* do_LineJoinButtonBox();
00023 Gtk::Window* do_LineCapComboBox();
00024 Gtk::Window* do_LineJoinComboBox();
00025 Gtk::Window* do_LineWidthComboBox();
00026 Gtk::Window* do_MarkerComboBox();
00027 Gtk::Window* do_MarkerWidget();
00028 Gtk::Window* do_LineStyleWidget();
00029 Gtk::Window* do_Pixbuf();
00030 Gtk::Window* do_Viewport();
00031 Gtk::Window* do_Selector();
00032 
00033 Demo comboboxes[] = {
00034   { "Line Cap Combo Box", "example_linecapcombobox.cpp",  sigc::ptr_fun(&do_LineCapComboBox), 0 },
00035   { "Line Join Combo Box", "example_linejoincombobox.cpp",  sigc::ptr_fun(&do_LineJoinComboBox), 0 },
00036   { "Line Width Combo Boxes", "example_linewidthcombobox.cpp",  sigc::ptr_fun(&do_LineWidthComboBox), 0 },
00037   { "Marker Combo Box", "example_markercombobox.cpp",  sigc::ptr_fun(&do_MarkerComboBox), 0 },
00038   { 0, 0, type_slotDo(), 0 }
00039 };
00040 
00041 Demo animator[] = {
00042   { "Bounce Widget", "example_animatorbouncewidget.cpp",  sigc::ptr_fun(&do_AnimatorBounceWidget), 0 },
00043   { "Frame Interval Widget", "example_animatorframeintervalwidget.cpp",  sigc::ptr_fun(&do_AnimatorFrameIntervalWidget), 0 },
00044   { "Frame Rate Widget", "example_animatorframeratewidget.cpp",  sigc::ptr_fun(&do_AnimatorFrameRateWidget), 0 },
00045   { 0, 0, type_slotDo(), 0 }
00046 };
00047 
00048 
00049 Demo testgtk_demos[] =
00050 {
00051         { "Viewports", "example_viewport.cpp",  sigc::ptr_fun(&do_Viewport), 0 },
00052   { "Gdk Pixbufs", "example_pixbuf.cpp",  sigc::ptr_fun(&do_Pixbuf), 0 },
00053   { "Line Cap Button Boxes", "example_linecapbuttonbox.cpp",  sigc::ptr_fun(&do_LineCapButtonBox), 0 },
00054   { "Line Join Button Boxes", "example_linejoinbuttonbox.cpp",  sigc::ptr_fun(&do_LineJoinButtonBox), 0 },
00055   { "Marker Widget", "example_markerwidget.cpp",  sigc::ptr_fun(&do_MarkerWidget), 0 },
00056   { "Line Style Widget", "example_linestylewidget.cpp",  sigc::ptr_fun(&do_LineStyleWidget), 0 },
00057   { "Combo Boxes", "", type_slotDo(), comboboxes },
00058   { "Animator Widgets", "", type_slotDo(), animator },
00059   { 0, 0, type_slotDo(), 0 }
00060 };
00061 
00062 #endif //_DEMOS_H
00063 

Generated on Sun Jan 7 22:53:57 2007 by  doxygen 1.5.1