func (self Rectangle) ToNative() unsafe.Pointer { var cr C.GdkRectangle cr.x = C.int(self.X) cr.y = C.int(self.Y) cr.width = C.int(self.Width) cr.height = C.int(self.Height) return unsafe.Pointer(&cr) }
//export our_area_get_child_position_callback func our_area_get_child_position_callback(overlay *C.GtkOverlay, widget *C.GtkWidget, rect *C.GdkRectangle, data C.gpointer) C.gboolean { var nat C.GtkRequisition a := (*area)(unsafe.Pointer(data)) rect.x = C.int(a.textfieldx) rect.y = C.int(a.textfieldy) C.gtk_widget_get_preferred_size(a.textfieldw, nil, &nat) rect.width = C.int(nat.width) rect.height = C.int(nat.height) return C.TRUE }
func (v *GdkWindow) Invalidate(rect *Rectangle, invalidate_children bool) { if rect != nil { var _rect C.GdkRectangle _rect.x = C.gint(rect.X) _rect.y = C.gint(rect.Y) _rect.width = C.gint(rect.Width) _rect.height = C.gint(rect.Height) C.gdk_window_invalidate_rect(v.Window, &_rect, bool2gboolean(invalidate_children)) } else { C.gdk_window_invalidate_rect(v.Window, nil, bool2gboolean(invalidate_children)) } }