Documentation ¶
Index ¶
- Variables
- func NewConfigFromViewEvent(w *app.Window, evt app.ViewEvent) hyperlink.Config
- func UpdateConfigFromStageEvent(config *hyperlink.Config, _ *app.Window, evt system.StageEvent)
- func UpdateConfigFromViewEvent(config *hyperlink.Config, w *app.Window, evt app.ViewEvent)
- type ErrorEvent
- type OpenOp
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotReady may occur when try to open a URL before the initialization is done. ErrNotReady = errors.New("some needed library was not loaded yet, make use that you are using ListenEvents()") // ErrInvalidURL occur when provide an invalid URL, like a non http/https URL. ErrInvalidURL = errors.New("given url is invalid") )
View Source
var ( // InsecureIgnoreScheme will remove any attempt to validate the URL // It's "false" by default. Set it to "true" if you are using a custom scheme (like "myapp://"). InsecureIgnoreScheme bool )
Functions ¶
func NewConfigFromViewEvent ¶
NewConfigFromViewEvent creates a share.Config based on app.ViewEvent.
Types ¶
type ErrorEvent ¶
type ErrorEvent struct {
Error error
}
ErrorEvent is issued when an error occurs.
func (ErrorEvent) ImplementsEvent ¶
func (e ErrorEvent) ImplementsEvent()
ImplementsEvent implements event.Event.
Click to show internal directories.
Click to hide internal directories.