Drawing Area Widget

gtk3e

The further I do, I get more and more confused..

int main(int argc, char *argv[])
{
  serial_init ();

  Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "org.gtkmm.example");

  Gtk::Window  win;
  Gtk::Box     bigbox;
  RadioButtons buttons;
  MyArea       area;

  win.set_title("Spinor Lab");
  win.set_default_size(1000,400);
  win.set_border_width(10);

  bigbox.set_orientation(Gtk::ORIENTATION_VERTICAL);
  bigbox.pack_start(buttons, FALSE, FALSE, 0);
  bigbox.pack_start(area   , FALSE, FALSE, 0);

  buttons.show();
  area.show();
  bigbox.show();

  win.add(bigbox);
  return app->run(win);
}
#ifndef GTKMM_EXAMPLE_RADIOBUTTONS_H
#define GTKMM_EXAMPLE_RADIOBUTTONS_H

#include <gtkmm/box.h>
#include <gtkmm/window.h>
#include <gtkmm/radiobutton.h>
#include <gtkmm/separator.h>

// class RadioButtons : public Gtk::Window
class RadioButtons : public Gtk::Box
{
public:
  RadioButtons();
  virtual ~RadioButtons();
protected:
  void on_button_clicked ();
  void on_button_clicked9(gint data);
  Gtk::Box         m_Box_Top, m_Box1, m_Box2;
  Gtk::Box         m_Box10       [  8];
  Gtk::RadioButton::Group m_group[  8];
  Gtk::RadioButton m_RadioButton [100];
  Gtk::HSeparator  m_HSeparator;
  Gtk::VSeparator  m_VSeparator  [  7];
  Gtk::Button      m_Button_Quit;
};

#endif //GTKMM_EXAMPLE_RADIOBUTTONS_H

Leave a Reply

Your email address will not be published. Required fields are marked *