MCPcopy Create free account
hub / github.com/cogentcore/core / SetIcon

Method SetIcon

system/window.go:55–55  ·  view source on GitHub ↗

SetIcon sets the icon of the window, which is displayed in the title bar and taskbar on Windows. It takes a list of candidate images and uses the one closest to the required size. Good sizes are 16x16, 32x32, and 48x48.

(images []image.Image)

Source from the content-addressed store, hash-verified

53 // and taskbar on Windows. It takes a list of candidate images and uses the
54 // one closest to the required size. Good sizes are 16x16, 32x32, and 48x48.
55 SetIcon(images []image.Image)
56
57 // Size returns the current size of the window, in raw underlying dots / pixels.
58 // This includes any high DPI factors that may not be used in OS window sizing

Callers 15

VCSContextMenuMethod · 0.65
contextMenuMethod · 0.65
InitMethod · 0.65
makeToolbarMethod · 0.65
makeColumnsMethod · 0.65
MakeToolbarMethod · 0.65
MakeHeaderMethod · 0.65
SortSliceActionMethod · 0.65
MakeToolbarMethod · 0.65
InitMethod · 0.65
InitMethod · 0.65
InitMethod · 0.65

Calls

no outgoing calls

Tested by 14

TestIconFunction · 0.52
TestIconFilledFunction · 0.52
TestSliderIconFunction · 0.52
TestRenderElementCutOffFunction · 0.52
BenchmarkUpdatePlanFunction · 0.52
TestChooserIconFunction · 0.52
TestButtonIconFunction · 0.52
TestButtonTextIconFunction · 0.52