Skip to content

Commit

Permalink
Merge pull request faiface#283 from dusk125/master
Browse files Browse the repository at this point in the history
  • Loading branch information
dusk125 authored Jun 22, 2021
2 parents 98f3e74 + 063b895 commit 9307280
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pixelgl/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,17 @@ func (w *Window) Update() {
w.UpdateInput()
}

// ClipboardText returns the current value of the systems clipboard.
func (w *Window) ClipboardText() string {
return w.window.GetClipboardString()
}

// SetClipboardText passes the given string to the underlying glfw window to set the
// systems clipboard.
func (w *Window) SetClipboardText(text string) {
w.window.SetClipboardString(text)
}

// SwapBuffers swaps buffers. Call this to swap buffers without polling window events.
// Note that Update invokes SwapBuffers.
func (w *Window) SwapBuffers() {
Expand Down

0 comments on commit 9307280

Please sign in to comment.