Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexflint/gallium
/ functions
Functions
156 in github.com/alexflint/gallium
⨍
Functions
156
◇
Types & classes
26
↓ 16 callers
Function
must
(err error, info ...interface{})
cmd/gallium-bundle/bundle.go:17
↓ 8 callers
Method
OpenWindow
OpenWindow creates a window that will load the given URL.
app.go:169
↓ 5 callers
Method
Close
Close closes the window, as if the close button had been clicked.
app.go:235
↓ 4 callers
Method
Mode
()
cmd/gallium-bundle/bindata.go:58
↓ 3 callers
Method
Copy
Copy copies the current text selection to the pasteboard
app.go:260
↓ 3 callers
Method
IsDir
()
cmd/gallium-bundle/bindata.go:64
↓ 3 callers
Method
SetMenu
(menus []Menu)
cocoa.go:136
↓ 3 callers
Function
_filePath
(dir, name string)
cmd/gallium-bundle/bindata.go:231
↓ 3 callers
Function
_filePath
(dir, name string)
examples/statusbar/bindata.go:231
↓ 3 callers
Function
_filePath
(dir, name string)
examples/desktop-notification/bindata.go:231
↓ 3 callers
Function
copyFile
(dst, src string)
cmd/gallium-bundle/bundle.go:24
↓ 3 callers
Method
free
()
app.go:49
↓ 3 callers
Function
rectFromC
(c C.gallium_rect_t)
rect.go:21
↓ 3 callers
Function
redirect
(path string, fds ...uintptr)
redirect.go:32
↓ 2 callers
Function
Asset
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
cmd/gallium-bundle/bindata.go:94
↓ 2 callers
Function
Asset
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
examples/statusbar/bindata.go:94
↓ 2 callers
Function
Asset
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
examples/desktop-notification/bindata.go:94
↓ 2 callers
Function
BundleInfo
BundleInfo looks up an entry in the Info.plist for the current bundle.
cocoa.go:225
↓ 2 callers
Method
ModTime
()
cmd/gallium-bundle/bindata.go:61
↓ 2 callers
Method
ModTime
()
examples/statusbar/bindata.go:61
↓ 2 callers
Method
ModTime
()
examples/desktop-notification/bindata.go:61
↓ 2 callers
Method
add
(menu MenuEntry, parent *C.gallium_nsmenu_t)
cocoa.go:74
↓ 2 callers
Function
newMenuManager
()
cocoa.go:70
↓ 2 callers
Function
screenFromC
(c *C.gallium_screen_t)
screen.go:28
↓ 1 callers
Method
AddStatusItem
(opts StatusItemOptions)
cocoa.go:154
↓ 1 callers
Function
AssetDir
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data c
cmd/gallium-bundle/bindata.go:159
↓ 1 callers
Function
AssetDir
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data c
examples/statusbar/bindata.go:159
↓ 1 callers
Function
AssetDir
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data c
examples/desktop-notification/bindata.go:159
↓ 1 callers
Function
AssetInfo
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
cmd/gallium-bundle/bindata.go:120
↓ 1 callers
Function
AssetInfo
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
examples/statusbar/bindata.go:120
↓ 1 callers
Function
AssetInfo
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
examples/desktop-notification/bindata.go:120
↓ 1 callers
Method
CloseDevTools
CloseDevTools closes the developer tools.
app.go:295
↓ 1 callers
Method
LoadURL
LoadURL causes the window to load the given URL
app.go:213
↓ 1 callers
Method
Miniaturize
Miniaturize miniaturizes the window, as if the min button had been clicked.
app.go:240
↓ 1 callers
Method
Mode
()
examples/statusbar/bindata.go:58
↓ 1 callers
Method
Mode
()
examples/desktop-notification/bindata.go:58
↓ 1 callers
Function
MustAsset
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
cmd/gallium-bundle/bindata.go:108
↓ 1 callers
Function
MustAsset
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
examples/statusbar/bindata.go:108
↓ 1 callers
Function
MustAsset
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
examples/desktop-notification/bindata.go:108
↓ 1 callers
Method
NativeWindow
NativeWindow gets a operating-system dependent handle for this window. Under macOS this is NSWindow*.
app.go:306
↓ 1 callers
Method
OpenDevTools
OpenDevTools opens the developer tools for this window.
app.go:290
↓ 1 callers
Function
ParseKeys
ParseKeys parses a key combination specified as a string like "cmd shift a".
globalshortcut.go:76
↓ 1 callers
Method
Post
Post shows the given desktop notification
cocoa.go:205
↓ 1 callers
Method
Reload
Reload reloads the current URL
app.go:218
↓ 1 callers
Method
ReloadNoCache
Reload reloads the current URL, ignoring cached versions of resources.
app.go:223
↓ 1 callers
Function
RestoreAsset
RestoreAsset restores an asset under the given directory
cmd/gallium-bundle/bindata.go:190
↓ 1 callers
Function
RestoreAsset
RestoreAsset restores an asset under the given directory
examples/statusbar/bindata.go:190
↓ 1 callers
Function
RestoreAsset
RestoreAsset restores an asset under the given directory
examples/desktop-notification/bindata.go:190
↓ 1 callers
Method
SetShape
Shape gets the current shape of the window.
app.go:203
↓ 1 callers
Method
Shape
Shape gets the current shape of the window.
app.go:198
↓ 1 callers
Method
add
(app *App)
app.go:85
↓ 1 callers
Function
bindataRead
(data []byte, name string)
cmd/gallium-bundle/bindata.go:20
↓ 1 callers
Function
bindataRead
(data []byte, name string)
examples/statusbar/bindata.go:20
↓ 1 callers
Function
bindataRead
(data []byte, name string)
examples/desktop-notification/bindata.go:20
↓ 1 callers
Function
buildIconSet
On macOS, app bundle icons are represents as a .icns file. These files are created using the "iconutil" tool. The input to this tool is a ".iconset" d
cmd/gallium-bundle/iconset.go:17
↓ 1 callers
Function
copyTree
(dst, src string)
cmd/gallium-bundle/bundle.go:36
↓ 1 callers
Function
defaultWindowTitle
()
app.go:135
↓ 1 callers
Method
err
()
app.go:53
↓ 1 callers
Method
get
(id int)
app.go:91
↓ 1 callers
Function
gopherPngBytes
()
examples/desktop-notification/bindata.go:73
↓ 1 callers
Function
iconPngBytes
()
examples/statusbar/bindata.go:73
↓ 1 callers
Function
infoPlistTplBytes
()
cmd/gallium-bundle/bindata.go:73
↓ 1 callers
Function
newCerr
newCerr allocates a new error struct. It must be freed explicitly.
app.go:43
↓ 1 callers
Function
onReady
(app *gallium.App)
examples/menu/menu.go:16
Function
AddGlobalShortcut
AddGlobalShortcut calls the handler whenever the key combination is pressed in any application.
globalshortcut.go:124
Function
AssetNames
AssetNames returns the names of the assets.
cmd/gallium-bundle/bindata.go:133
Function
AssetNames
AssetNames returns the names of the assets.
examples/statusbar/bindata.go:133
Function
AssetNames
AssetNames returns the names of the assets.
examples/desktop-notification/bindata.go:133
Method
Cut
Cut cuts the current text selection to the pastboard
app.go:255
Method
Delete
Delete deletes the current text selection
app.go:275
Method
DevToolsAreOpen
DevToolsVisible returns whether the developer tools are showing
app.go:300
Function
FocusedScreen
FocusedScreen gets the screen containing the currently focused window
screen.go:52
Function
ImageFromPNG
ImageFromPNG creates an image from a buffer containing a PNG-encoded image.
cocoa.go:183
Method
IsDir
()
examples/statusbar/bindata.go:64
Method
IsDir
()
examples/desktop-notification/bindata.go:64
Function
Loop
Loop starts the browser loop and does not return unless there is an initialization error
app.go:59
Function
MustParseKeys
MustParseKeys is like ParseKeys but panics on error
globalshortcut.go:114
Method
Name
()
cmd/gallium-bundle/bindata.go:52
Method
Name
()
examples/statusbar/bindata.go:52
Method
Name
()
examples/desktop-notification/bindata.go:52
Method
NativeController
NativeWindow gets an operating-system dependent handle for the window controller. Under macOS this is *NSWindowController.
app.go:312
Method
Open
Open opens the window. This is the default state for a window created via OpenWindow, so you only need to call this if you manually closed the window.
app.go:230
Method
Paste
Paste pastes from the pasteboard
app.go:265
Method
PasteAndMatchStyle
PasteAndMatchStyle pastes from the pasteboard, matching style to the current element
app.go:270
Function
RedirectStderr
RedirectStderr overwrites the stderr streams with a file descriptor that writes to the given path. This is done with os.Dup2, meaning that even C func
redirect.go:28
Function
RedirectStdout
RedirectStdout overwrites the stdout streams with a file descriptor that writes to the given path. This is done with os.Dup2, meaning that even C func
redirect.go:20
Function
RedirectStdoutStderr
RedirectStdoutStderr overwrites the stdout and stderr streams with a file descriptor that writes to the given path. This is done with os.Dup2, meaning
redirect.go:12
Method
Redo
Redo redoes the last text editing action
app.go:250
Function
RestoreAssets
RestoreAssets restores an asset under the given directory recursively
cmd/gallium-bundle/bindata.go:215
Function
RestoreAssets
RestoreAssets restores an asset under the given directory recursively
examples/statusbar/bindata.go:215
Function
RestoreAssets
RestoreAssets restores an asset under the given directory recursively
examples/desktop-notification/bindata.go:215
Function
RunApplication
RunApplication is for debugging only. It allows creation of menus and desktop notifications without firing up any parts of chromium. It will be remove
cocoa.go:237
Function
Screens
Screens gets a list of available screens
screen.go:38
Method
SelectAll
SelectAll selects all text in the current element
app.go:280
Method
Size
()
cmd/gallium-bundle/bindata.go:55
Method
Size
()
examples/statusbar/bindata.go:55
Method
Size
()
examples/desktop-notification/bindata.go:55
Method
Sys
()
cmd/gallium-bundle/bindata.go:67
Method
Sys
()
examples/statusbar/bindata.go:67
Method
Sys
()
examples/desktop-notification/bindata.go:67
next →
1–100 of 156, ranked by callers