static void gtk_plot_polar_class_init (GtkPlotPolarClass *klass) { GObjectClass *gobject_class; GtkWidgetClass *widget_class; GtkPlotClass *plot_class; parent_class = g_type_class_ref (gtk_plot_get_type ()); gobject_class = G_OBJECT_CLASS(klass); widget_class = (GtkWidgetClass *) klass; plot_class = (GtkPlotClass *) klass; gobject_class->set_property = gtk_plot_polar_set_property; gobject_class->get_property = gtk_plot_polar_get_property; plot_class->plot_paint = gtk_plot_polar_real_paint; plot_class->get_point = gtk_plot_polar_real_get_point; plot_class->get_pixel = gtk_plot_polar_real_get_pixel; /** * GtkPlotPolar:rotation: * * **/ g_object_class_install_property (gobject_class, ARG_ROTATION, g_param_spec_double ("rotation", P_("Angle"), P_("Rotation Angle"), -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READABLE|G_PARAM_WRITABLE)); }
GType gtk_plot_polar_get_type (void) { static GType plot_type = 0; if (!plot_type) { plot_type = g_type_register_static_simple ( gtk_plot_get_type(), "GtkPlotPolar", sizeof (GtkPlotPolarClass), (GClassInitFunc) gtk_plot_polar_class_init, sizeof (GtkPlotPolar), (GInstanceInitFunc) gtk_plot_polar_init, 0); } return plot_type; }
GtkType gtk_plot_polar_get_type (void) { static GtkType plot_type = 0; if (!plot_type) { GtkTypeInfo plot_info = { "GtkPlotPolar", sizeof (GtkPlotPolar), sizeof (GtkPlotPolarClass), (GtkClassInitFunc) gtk_plot_polar_class_init, (GtkObjectInitFunc) gtk_plot_polar_init, /* reserved 1*/ NULL, /* reserved 2 */ NULL, (GtkClassInitFunc) NULL, }; plot_type = gtk_type_unique (gtk_plot_get_type(), &plot_info); } return plot_type; }