// GetWindow is a wrapper around gtk_text_view_get_window(). func (v *TextView) GetWindow(win TextWindowType) *gdk.Window { c := C.gtk_text_view_get_window(v.native(), C.GtkTextWindowType(win)) if c == nil { return nil } return &gdk.Window{wrapObject(unsafe.Pointer(c))} }
// AddChildInWindow is a wrapper around gtk_text_view_add_child_in_window(). func (v *TextView) AddChildInWindow(child IWidget, tp TextWindowType, xpos, ypos int) { C.gtk_text_view_add_child_in_window(v.native(), child.toWidget(), C.GtkTextWindowType(tp), C.gint(xpos), C.gint(ypos)) }
// GetBorderWindowSize is a wrapper around gtk_text_view_get_border_window_size(). func (v *TextView) GetBorderWindowSize(tp TextWindowType) int { return int(C.gtk_text_view_get_border_window_size(v.native(), C.GtkTextWindowType(tp))) }
// SetBorderWindowSize is a wrapper around gtk_text_view_set_border_window_size(). func (v *TextView) SetBorderWindowSize(tp TextWindowType, size int) { C.gtk_text_view_set_border_window_size(v.native(), C.GtkTextWindowType(tp), C.gint(size)) }
// WindowToBufferCoords is a wrapper around gtk_text_view_window_to_buffer_coords(). func (v *TextView) WindowToBufferCoords(win TextWindowType, window_x, window_y int) (buffer_x, buffer_y int) { var bx, by C.gint C.gtk_text_view_window_to_buffer_coords(v.native(), C.GtkTextWindowType(win), C.gint(window_x), C.gint(window_y), &bx, &by) return int(bx), int(by) }
// BufferToWindowCoords is a wrapper around gtk_text_view_buffer_to_window_coords(). func (v *TextView) BufferToWindowCoords(win TextWindowType, buffer_x, buffer_y int) (window_x, window_y int) { var wx, wy C.gint C.gtk_text_view_buffer_to_window_coords(v.native(), C.GtkTextWindowType(win), C.gint(buffer_x), C.gint(buffer_y), &wx, &wy) return int(wx), int(wy) }
// TextBufferTargetInfo TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS = C.GtkTextBufferTargetInfo(C.GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS) TEXT_BUFFER_TARGET_INFO_RICH_TEXT = C.GtkTextBufferTargetInfo(C.GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT) TEXT_BUFFER_TARGET_INFO_TEXT = C.GtkTextBufferTargetInfo(C.GTK_TEXT_BUFFER_TARGET_INFO_TEXT) // TextDirection TEXT_DIR_NONE = C.GtkTextDirection(C.GTK_TEXT_DIR_NONE) TEXT_DIR_LTR = C.GtkTextDirection(C.GTK_TEXT_DIR_LTR) TEXT_DIR_RTL = C.GtkTextDirection(C.GTK_TEXT_DIR_RTL) // TextViewLayer TEXT_VIEW_LAYER_BELOW = C.GtkTextViewLayer(C.GTK_TEXT_VIEW_LAYER_BELOW) TEXT_VIEW_LAYER_ABOVE = C.GtkTextViewLayer(C.GTK_TEXT_VIEW_LAYER_ABOVE) // TextWindowType TEXT_WINDOW_PRIVATE = C.GtkTextWindowType(C.GTK_TEXT_WINDOW_PRIVATE) TEXT_WINDOW_WIDGET = C.GtkTextWindowType(C.GTK_TEXT_WINDOW_WIDGET) TEXT_WINDOW_TEXT = C.GtkTextWindowType(C.GTK_TEXT_WINDOW_TEXT) TEXT_WINDOW_LEFT = C.GtkTextWindowType(C.GTK_TEXT_WINDOW_LEFT) TEXT_WINDOW_RIGHT = C.GtkTextWindowType(C.GTK_TEXT_WINDOW_RIGHT) TEXT_WINDOW_TOP = C.GtkTextWindowType(C.GTK_TEXT_WINDOW_TOP) TEXT_WINDOW_BOTTOM = C.GtkTextWindowType(C.GTK_TEXT_WINDOW_BOTTOM) // ToolbarSpaceStyle TOOLBAR_SPACE_EMPTY = C.GtkToolbarSpaceStyle(C.GTK_TOOLBAR_SPACE_EMPTY) TOOLBAR_SPACE_LINE = C.GtkToolbarSpaceStyle(C.GTK_TOOLBAR_SPACE_LINE) // ToolbarStyle TOOLBAR_ICONS = C.GtkToolbarStyle(C.GTK_TOOLBAR_ICONS) TOOLBAR_TEXT = C.GtkToolbarStyle(C.GTK_TOOLBAR_TEXT) TOOLBAR_BOTH = C.GtkToolbarStyle(C.GTK_TOOLBAR_BOTH)