Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/faiface/gui
/ types & classes
Types & classes
23 in github.com/faiface/gui
⨍
Functions
62
◇
Types & classes
23
TypeAlias
Button
Button indicates a mouse button in an event.
win/events.go:9
Interface
Env
Env is the most important thing in this package. It is an interactive graphical environment, such as a window. It has two channels: Events() and Draw
env.go:30
Interface
Event
Event is something that can happen in an environment. This package defines only one kind of event: Resize. Other packages implementing environments m
event.go:13
Struct
KbDown
KbDown is an event that happens when a key on the keyboard gets pressed.
win/events.go:70
Struct
KbRepeat
KbRepeat is an event that happens when a key on the keyboard gets repeated. This happens when its held down for some time.
win/events.go:78
Struct
KbType
KbType is an event that happens when a Unicode character gets typed on the keyboard.
win/events.go:67
Struct
KbUp
KbUp is an event that happens when a key on the keyboard gets released.
win/events.go:73
TypeAlias
Key
Key indicates a keyboard key in an event.
win/events.go:19
Struct
MoDown
MoDown is an event that happens when a mouse button gets pressed.
win/events.go:50
Struct
MoMove
MoMove is an event that happens when the mouse gets moved across the window.
win/events.go:47
Struct
MoScroll
MoScroll is an event that happens on scrolling the mouse. The Point field tells the amount scrolled in each direction.
win/events.go:64
Struct
MoUp
MoUp is an event that happens when a mouse button gets released.
win/events.go:56
Struct
Mux
Mux can be used to multiplex an Env, let's call it a root Env. Mux implements a way to create multiple virtual Envs that all interact with the root En
mux.go:12
FuncType
Option
Option is a functional option to the window constructor New.
win/win.go:17
Struct
PairMsg
examples/pexeso/main.go:49
Struct
Resize
Resize is an event that happens when the environment changes the size of its drawing area.
event.go:18
Struct
Theme
examples/imageviewer/theme.go:9
Struct
WiClose
WiClose is an event that happens when the user presses the close button on the window.
win/events.go:44
Struct
Win
Win is an Env that handles an actual graphical window. It receives its events from the OS and it draws to the surface of the window. Warning: only o
win/win.go:160
Struct
concurrentFace
examples/imageviewer/util.go:15
Struct
envPair
examples/imageviewer/splits.go:10
Struct
muxEnv
mux.go:63
Struct
options
win/win.go:19