15 lines
524 B
Go
15 lines
524 B
Go
// 11 february 2014
|
|
//package ui
|
|
package main
|
|
|
|
import (
|
|
// ...
|
|
)
|
|
|
|
// A Control represents an UI control. Note that Control contains unexported members; this has the consequence that you can't build custom controls that interface directly with the system-specific code (fo rinstance, to import an unsupported control), or at least not without some hackery. If you want to make your own controls, embed Area and provide its necessities.
|
|
type Control interface {
|
|
apply() error
|
|
setParent(c Control)
|
|
parentWindow() *Window
|
|
}
|