MCPcopy
hub / github.com/g3n/engine / update

Method update

gui/window.go:254–261  ·  view source on GitHub ↗

update updates the window's visual state.

()

Source from the content-addressed store, hash-verified

252
253// update updates the window's visual state.
254func (w *Window) update() {
255
256 if !w.Enabled() {
257 w.applyStyle(&w.styles.Disabled)
258 return
259 }
260 w.applyStyle(&w.styles.Normal)
261}
262
263// applyStyle applies a window style to the window.
264func (w *Window) applyStyle(s *WindowStyle) {

Callers 2

SetTitleMethod · 0.95
NewWindowFunction · 0.45

Calls 2

applyStyleMethod · 0.95
EnabledMethod · 0.65

Tested by

no test coverage detected