// -*- c++ -*- // Generated by gtkmmproc from ./../colorselection.gen_h -- DO NOT MODIFY! #include <gtk--/colorselection.h> #include <gtk--/private/colorselection_p.h> namespace Gtk { ColorSelectionDialog::ColorSelectionDialog(const nstring &title) : Window((GtkWindow*)(gtk_object_new(get_type(),0))) { initialize_class(); GtkColorSelectionDialog *colorseldiag; colorseldiag = (GtkColorSelectionDialog*)gtkobject; gtk_window_set_title (GTK_WINDOW (colorseldiag), title.gc_str()); } } namespace Gtk { Gtk::ColorSelection *wrap (GtkColorSelection *o) { return static_cast<Gtk::ColorSelection *> (Gtk::wrap_auto ((GtkObject *) (o))); } } namespace Gtk { ColorSelection_Class ColorSelection::color_selection_class = {0}; Object* ColorSelection_Class::wrap_new(GtkObject* o) { Object* cpp=manage(new ColorSelection((GtkColorSelection*)(o))); return cpp; } bool ColorSelection::isA( Object *checkcast) { return GTK_IS_COLOR_SELECTION(checkcast->gtkobj()); } GtkType ColorSelection::get_type() { return color_selection_class.get_type(); } GtkType ColorSelection_Class::get_type() { if (!type) { CppClassParent::CppObjectType::get_type(); GtkTypeInfo info = { "Gtk__ColorSelection", sizeof(BaseObjectType), sizeof(BaseClassType), (GtkClassInitFunc) class_init_function, (GtkObjectInitFunc) object_init_function, /* reserved_1 */ NULL, /* reserved_2 */ NULL, /*base_class_init_func */ (GtkClassInitFunc) NULL }; type=gtk_type_unique(gtk_color_selection_get_type(), &info); } return type; } const char* const ColorSelection::signal_names[]={ "color_changed", 0}; void ColorSelection::initialize_class() { color_selection_self=this; } void ColorSelection_Class::class_init_function(GtkColorSelectionClass *klass) { CppClassParent::class_init_function((BaseClassParent*)klass); klass->color_changed=color_changed_callback; } void ColorSelection_Class::object_init_function(GtkColorSelection *) {} } Gtk::ColorSelection::ColorSelection() : Gtk::VBox((GtkVBox*)(gtk_object_new(get_type(),0))) { initialize_class(); } Gtk::ColorSelection::ColorSelection(GtkColorSelection *castitem) : Gtk::VBox((GtkVBox*)(castitem)) { initialize_class(); } Gtk::ColorSelection::~ColorSelection() { destroy_(); } void Gtk::ColorSelection::set_update_policy(GtkUpdateType policy) { gtk_color_selection_set_update_policy(gtkobj(),policy); } void Gtk::ColorSelection::set_opacity(gint use_opacity) { gtk_color_selection_set_opacity(gtkobj(),use_opacity); } void Gtk::ColorSelection::set_color(const gdouble* color) { gtk_color_selection_set_color(gtkobj(),const_cast<gdouble*>(color)); } void Gtk::ColorSelection::get_color(gdouble* color) const { gtk_color_selection_get_color(const_cast<GtkColorSelection*>(gtkobj()),color); } void Gtk::ColorSelection_Class::color_changed_callback(GtkColorSelection* o_) { CppObjectType *obj= static_cast<CppObjectType *>(static_cast<Gtk::Object *>( gtk_object_get_data_by_id((GtkObject*)o_,Gtk::quark_))); if (obj) obj->color_changed_impl(); else { BaseClassType* base= static_cast<BaseClassType*>( gtk_type_parent_class(((GtkObject*)o_)->klass->type)); if (base->color_changed) (base->color_changed)(o_); } } void Gtk::ColorSelection::color_changed_impl() { BaseClassType* base= static_cast<BaseClassType*>( gtk_type_parent_class(gtkobject->klass->type)); if (base->color_changed) (base->color_changed)(gtkobj()); } namespace Gtk { Gtk::ColorSelectionDialog *wrap (GtkColorSelectionDialog *o) { return static_cast<Gtk::ColorSelectionDialog *> (Gtk::wrap_auto ((GtkObject *) (o))); } } namespace Gtk { ColorSelectionDialog_Class ColorSelectionDialog::color_selection_dialog_class = {0}; Object* ColorSelectionDialog_Class::wrap_new(GtkObject* o) { Object* cpp=manage(new ColorSelectionDialog((GtkColorSelectionDialog*)(o))); return cpp; } bool ColorSelectionDialog::isA( Object *checkcast) { return GTK_IS_COLOR_SELECTION_DIALOG(checkcast->gtkobj()); } GtkType ColorSelectionDialog::get_type() { return color_selection_dialog_class.get_type(); } GtkType ColorSelectionDialog_Class::get_type() { if (!type) { CppClassParent::CppObjectType::get_type(); GtkTypeInfo info = { "Gtk__ColorSelectionDialog", sizeof(BaseObjectType), sizeof(BaseClassType), (GtkClassInitFunc) class_init_function, (GtkObjectInitFunc) object_init_function, /* reserved_1 */ NULL, /* reserved_2 */ NULL, /*base_class_init_func */ (GtkClassInitFunc) NULL }; type=gtk_type_unique(gtk_color_selection_dialog_get_type(), &info); } return type; } const char* const ColorSelectionDialog::signal_names[]={ 0}; void ColorSelectionDialog::initialize_class() { } void ColorSelectionDialog_Class::class_init_function(GtkColorSelectionDialogClass *klass) { CppClassParent::class_init_function((BaseClassParent*)klass); } void ColorSelectionDialog_Class::object_init_function(GtkColorSelectionDialog *) {} } Gtk::ColorSelectionDialog::ColorSelectionDialog(GtkColorSelectionDialog *castitem) : Gtk::Window((GtkWindow*)(castitem)) { initialize_class(); } Gtk::ColorSelectionDialog::~ColorSelectionDialog() { destroy_(); } Gtk::ColorSelection* Gtk::ColorSelectionDialog::get_colorsel() const { return Gtk::wrap((GtkColorSelection*)(gtkobj()->colorsel)); } Gtk::VBox* Gtk::ColorSelectionDialog::get_vbox() const { return Gtk::wrap((GtkVBox*)(gtkobj()->main_vbox)); } Gtk::Button* Gtk::ColorSelectionDialog::get_ok_button() const { return Gtk::wrap((GtkButton*)(gtkobj()->ok_button)); } Gtk::Button* Gtk::ColorSelectionDialog::get_reset_button() const { return Gtk::wrap((GtkButton*)(gtkobj()->reset_button)); } Gtk::Button* Gtk::ColorSelectionDialog::get_cancel_button() const { return Gtk::wrap((GtkButton*)(gtkobj()->cancel_button)); } Gtk::Button* Gtk::ColorSelectionDialog::get_help_button() const { return Gtk::wrap((GtkButton*)(gtkobj()->help_button)); }