Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/faiface/gui
/ functions
Functions
62 in github.com/faiface/gui
⨍
Functions
62
◇
Types & classes
23
↓ 49 callers
Method
Draw
()
env.go:32
↓ 20 callers
Function
HexToColor
(hex string)
examples/pexeso/main.go:22
↓ 15 callers
Method
Events
()
env.go:31
↓ 8 callers
Method
MakeEnv
MakeEnv creates a new virtual Env that interacts with the root Env of the Mux. Closing the Draw() channel of the Env will not close the Mux, or any ot
mux.go:59
↓ 4 callers
Function
FixedLeft
(env gui.Env, maxX int)
examples/imageviewer/splits.go:18
↓ 3 callers
Function
Button
(env gui.Env, theme *Theme, text string, action func())
examples/imageviewer/button.go:12
↓ 3 callers
Function
EvenHorizontal
(env gui.Env, minI, maxI, n int)
examples/imageviewer/splits.go:90
↓ 3 callers
Function
FixedTop
(env gui.Env, maxY int)
examples/imageviewer/splits.go:54
↓ 3 callers
Function
MakeTextImage
(text string, face font.Face, clr color.Color)
examples/imageviewer/util.go:66
↓ 2 callers
Method
Close
()
examples/imageviewer/util.go:20
↓ 2 callers
Function
DrawCentered
(dst draw.Image, r image.Rectangle, src image.Image, op draw.Op)
examples/imageviewer/util.go:84
↓ 2 callers
Method
makeEnv
(master bool)
mux.go:71
↓ 2 callers
Function
makeGLFWWin
(o *options)
win/win.go:128
↓ 2 callers
Method
openGLFlush
(r image.Rectangle)
win/win.go:328
↓ 1 callers
Function
Browser
(env gui.Env, theme *Theme, dir string, cd <-chan string, view chan<- string)
examples/imageviewer/browser.go:15
↓ 1 callers
Function
Canvas
(env gui.Env, pick <-chan color.Color, r image.Rectangle)
examples/paint/main.go:32
↓ 1 callers
Function
ColorPicker
(env gui.Env, pick chan<- color.Color, r image.Rectangle, clr color.Color)
examples/paint/main.go:14
↓ 1 callers
Function
DrawLeftCentered
(dst draw.Image, r image.Rectangle, src image.Image, op draw.Op)
examples/imageviewer/util.go:95
↓ 1 callers
Function
EqualColors
(c1, c2 color.Color)
examples/pexeso/main.go:16
↓ 1 callers
Function
FixedBottom
(env gui.Env, minY int)
examples/imageviewer/splits.go:72
↓ 1 callers
Function
FixedRight
(env gui.Env, minX int)
examples/imageviewer/splits.go:36
↓ 1 callers
Function
MakeEventsChan
MakeEventsChan implements a channel of events with an unlimited capacity. It does so by creating a goroutine that queues incoming events. Sending to t
event.go:37
↓ 1 callers
Method
Metrics
()
examples/imageviewer/util.go:50
↓ 1 callers
Function
TTFToFace
(ttf []byte, size float64)
examples/imageviewer/util.go:56
↓ 1 callers
Function
Tile
(env gui.Env, pair chan PairMsg, r image.Rectangle, clr color.Color)
examples/pexeso/main.go:54
↓ 1 callers
Function
Viewer
(env gui.Env, theme *Theme, view <-chan string)
examples/imageviewer/viewer.go:17
↓ 1 callers
Method
openGLThread
()
win/win.go:277
Function
Borderless
Borderless option makes the window borderless.
win/win.go:50
Method
Draw
()
mux.go:69
Method
Draw
Draw returns the draw channel of the window.
win/win.go:177
Method
Draw
()
examples/imageviewer/splits.go:16
Method
Events
()
mux.go:68
Method
Events
Events returns the events channel of the window.
win/win.go:174
Method
Events
()
examples/imageviewer/splits.go:15
Method
Glyph
(dot fixed.Point26_6, r rune)
examples/imageviewer/util.go:26
Method
GlyphAdvance
(r rune)
examples/imageviewer/util.go:38
Method
GlyphBounds
(r rune)
examples/imageviewer/util.go:32
Method
Kern
(r0, r1 rune)
examples/imageviewer/util.go:44
Function
Maximized
Maximized option makes the window start maximized.
win/win.go:57
Function
New
New creates a new window with all the supplied options. The default title is empty and the default size is 640x480.
win/win.go:66
Function
NewMux
NewMux creates a new Mux that multiplexes the given Env. It returns the Mux along with a master Env. The master Env is just like any other Env created
mux.go:23
Function
Resizable
Resizable option makes the window resizable by the user.
win/win.go:43
Function
Size
Size option sets the width and height of the window.
win/win.go:35
Method
String
()
event.go:14
Method
String
()
event.go:22
Method
String
()
win/events.go:81
Method
String
()
win/events.go:82
Method
String
()
win/events.go:83
Method
String
()
win/events.go:84
Method
String
()
win/events.go:85
Method
String
()
win/events.go:86
Method
String
()
win/events.go:87
Method
String
()
win/events.go:88
Method
String
()
win/events.go:89
Function
Title
Title option sets the title (caption) of the window.
win/win.go:28
Method
eventThread
()
win/win.go:208
Function
main
()
examples/paint/main.go:126
Function
main
()
examples/pexeso/main.go:152
Function
main
()
examples/imageviewer/main.go:64
Function
run
()
examples/paint/main.go:93
Function
run
()
examples/pexeso/main.go:106
Function
run
()
examples/imageviewer/main.go:13