forked from gotk3/gotk3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
5 changed files
with
187 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// +build !gtk_3_6,!gtk_3_8,!gtk_3_10,!gtk_3_12,!gtk_3_14 | ||
|
||
// See: https://developer.gnome.org/gtk3/3.16/api-index-3-16.html | ||
|
||
package gtk | ||
|
||
// #cgo pkg-config: gtk+-3.0 | ||
// #include <gtk/gtk.h> | ||
import "C" | ||
|
||
// SetOverlayScrolling is a wrapper around gtk_scrolled_window_set_overlay_scrolling(). | ||
func (v *ScrolledWindow) SetOverlayScrolling(scrolling bool) { | ||
C.gtk_scrolled_window_set_overlay_scrolling(v.native(), gbool(scrolling)) | ||
} | ||
|
||
// GetOverlayScrolling is a wrapper around gtk_scrolled_window_get_overlay_scrolling(). | ||
func (v *ScrolledWindow) GetOverlayScrolling() bool { | ||
return gobool(C.gtk_scrolled_window_get_overlay_scrolling(v.native())) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// +build !gtk_3_6,!gtk_3_8,!gtk_3_10,!gtk_3_12,!gtk_3_14,!gtk_3_16,gtk_3_18 | ||
|
||
// See: https://developer.gnome.org/gtk3/3.18/api-index-3-18.html | ||
|
||
// For gtk_overlay_reorder_overlay(): | ||
// See: https://git.gnome.org/browse/gtk+/tree/gtk/gtkoverlay.h?h=gtk-3-18 | ||
|
||
package gtk | ||
|
||
// #cgo pkg-config: gtk+-3.0 | ||
// #include <gtk/gtk.h> | ||
import "C" | ||
|
||
// ReorderOverlay() is a wrapper around gtk_overlay_reorder_overlay(). | ||
func (v *Overlay) ReorderOverlay(child IWidget, position int) { | ||
C.gtk_overlay_reorder_overlay(v.native(), child.toWidget(), C.gint(position)) | ||
} | ||
|
||
// GetOverlayPassThrough() is a wrapper around | ||
// gtk_overlay_get_overlay_pass_through(). | ||
func (v *Overlay) GetOverlayPassThrough(widget IWidget) bool { | ||
c := C.gtk_overlay_get_overlay_pass_through(v.native(), widget.toWidget()) | ||
return gobool(c) | ||
} | ||
|
||
// SetOverlayPassThrough() is a wrapper around | ||
// gtk_overlay_set_overlay_pass_through(). | ||
func (v *Overlay) SetOverlayPassThrough(widget IWidget, passThrough bool) { | ||
C.gtk_overlay_set_overlay_pass_through(v.native(), widget.toWidget(), gbool(passThrough)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters