/* widget.c : Glue to access fields in GtkWidget. * * Author: Rachel Hestilow * * 2002 Rachel Hestilow, Mike Kestner */ #include /* Forward declarations */ GdkRectangle *gtksharp_gtk_widget_get_allocation (GtkWidget *widget); GdkWindow *gtksharp_gtk_widget_get_window (GtkWidget *widget); void gtksharp_gtk_widget_set_window (GtkWidget *widget, GdkWindow *window); int gtksharp_gtk_widget_get_state (GtkWidget *widget); /* */ GdkRectangle* gtksharp_gtk_widget_get_allocation (GtkWidget *widget) { return &widget->allocation; } GdkWindow * gtksharp_gtk_widget_get_window (GtkWidget *widget) { return widget->window; } void gtksharp_gtk_widget_set_window (GtkWidget *widget, GdkWindow *window) { widget->window = window; } int gtksharp_gtk_widget_get_state (GtkWidget *widget) { return GTK_WIDGET_STATE (widget); } int gtksharp_gtk_widget_get_flags (GtkWidget *widget) { return GTK_WIDGET_FLAGS (widget); } void gtksharp_gtk_widget_set_flags (GtkWidget *widget, int flags) { GTK_WIDGET_SET_FLAGS (widget, flags); }