Documentation
¶
Index ¶
- func Disable() (ret js.Void)
- func Enable() (ret js.Void)
- func FuncDisable() (fn js.Func[func()])
- func FuncEnable() (fn js.Func[func()])
- func FuncHasOnClicked() (fn js.Func[func(callback js.Func[func()]) bool])
- func FuncOffClicked() (fn js.Func[func(callback js.Func[func()])])
- func FuncOnClicked() (fn js.Func[func(callback js.Func[func()])])
- func FuncSetIcon() (fn js.Func[func(details SetIconDetails) js.Promise[js.Void]])
- func HasFuncDisable() bool
- func HasFuncEnable() bool
- func HasFuncHasOnClicked() bool
- func HasFuncOffClicked() bool
- func HasFuncOnClicked() bool
- func HasFuncSetIcon() bool
- func HasOnClicked(callback js.Func[func()]) (ret bool)
- func OffClicked(callback js.Func[func()]) (ret js.Void)
- func OnClicked(callback js.Func[func()]) (ret js.Void)
- func SetIcon(details SetIconDetails) (ret js.Promise[js.Void])
- func TryDisable() (ret js.Void, exception js.Any, ok bool)
- func TryEnable() (ret js.Void, exception js.Any, ok bool)
- func TryHasOnClicked(callback js.Func[func()]) (ret bool, exception js.Any, ok bool)
- func TryOffClicked(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool)
- func TryOnClicked(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool)
- func TrySetIcon(details SetIconDetails) (ret js.Promise[js.Void], exception js.Any, ok bool)
- type DoneCallback
- type DoneCallbackFunc
- type OnClickedEventCallback
- type OnClickedEventCallbackFunc
- type SetIconDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncDisable ¶
FuncDisable returns the function "WEBEXT.systemIndicator.disable".
func FuncEnable ¶
FuncEnable returns the function "WEBEXT.systemIndicator.enable".
func FuncHasOnClicked ¶
FuncHasOnClicked returns the function "WEBEXT.systemIndicator.onClicked.hasListener".
func FuncOffClicked ¶
FuncOffClicked returns the function "WEBEXT.systemIndicator.onClicked.removeListener".
func FuncOnClicked ¶
FuncOnClicked returns the function "WEBEXT.systemIndicator.onClicked.addListener".
func FuncSetIcon ¶
FuncSetIcon returns the function "WEBEXT.systemIndicator.setIcon".
func HasFuncDisable ¶
func HasFuncDisable() bool
HasFuncDisable returns true if the function "WEBEXT.systemIndicator.disable" exists.
func HasFuncEnable ¶
func HasFuncEnable() bool
HasFuncEnable returns true if the function "WEBEXT.systemIndicator.enable" exists.
func HasFuncHasOnClicked ¶
func HasFuncHasOnClicked() bool
HasFuncHasOnClicked returns true if the function "WEBEXT.systemIndicator.onClicked.hasListener" exists.
func HasFuncOffClicked ¶
func HasFuncOffClicked() bool
HasFuncOffClicked returns true if the function "WEBEXT.systemIndicator.onClicked.removeListener" exists.
func HasFuncOnClicked ¶
func HasFuncOnClicked() bool
HasFuncOnClicked returns true if the function "WEBEXT.systemIndicator.onClicked.addListener" exists.
func HasFuncSetIcon ¶
func HasFuncSetIcon() bool
HasFuncSetIcon returns true if the function "WEBEXT.systemIndicator.setIcon" exists.
func HasOnClicked ¶
HasOnClicked calls the function "WEBEXT.systemIndicator.onClicked.hasListener" directly.
func OffClicked ¶
OffClicked calls the function "WEBEXT.systemIndicator.onClicked.removeListener" directly.
func OnClicked ¶
OnClicked calls the function "WEBEXT.systemIndicator.onClicked.addListener" directly.
func SetIcon ¶
func SetIcon(details SetIconDetails) (ret js.Promise[js.Void])
SetIcon calls the function "WEBEXT.systemIndicator.setIcon" directly.
func TryDisable ¶
TryDisable calls the function "WEBEXT.systemIndicator.disable" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryEnable ¶
TryEnable calls the function "WEBEXT.systemIndicator.enable" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnClicked ¶
TryHasOnClicked calls the function "WEBEXT.systemIndicator.onClicked.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffClicked ¶
TryOffClicked calls the function "WEBEXT.systemIndicator.onClicked.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnClicked ¶
TryOnClicked calls the function "WEBEXT.systemIndicator.onClicked.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TrySetIcon ¶
TrySetIcon calls the function "WEBEXT.systemIndicator.setIcon" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
Types ¶
type DoneCallback ¶
func (*DoneCallback[T]) DispatchCallback ¶
func (cb *DoneCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*DoneCallback[T]) Register ¶
func (cb *DoneCallback[T]) Register() js.Func[func()]
type DoneCallbackFunc ¶
func (DoneCallbackFunc) DispatchCallback ¶
func (fn DoneCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (DoneCallbackFunc) Register ¶
func (fn DoneCallbackFunc) Register() js.Func[func()]
type OnClickedEventCallback ¶
func (*OnClickedEventCallback[T]) DispatchCallback ¶
func (cb *OnClickedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*OnClickedEventCallback[T]) Register ¶
func (cb *OnClickedEventCallback[T]) Register() js.Func[func()]
type OnClickedEventCallbackFunc ¶
func (OnClickedEventCallbackFunc) DispatchCallback ¶
func (fn OnClickedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (OnClickedEventCallbackFunc) Register ¶
func (fn OnClickedEventCallbackFunc) Register() js.Func[func()]
type SetIconDetails ¶
type SetIconDetails struct {
// Path is "SetIconDetails.path"
//
// Optional
Path js.Any
// ImageData is "SetIconDetails.imageData"
//
// Optional
ImageData js.Any
FFI_USE bool
}
func (*SetIconDetails) FreeMembers ¶
func (p *SetIconDetails) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (SetIconDetails) FromRef ¶
func (p SetIconDetails) FromRef(ref js.Ref) SetIconDetails
FromRef calls UpdateFrom and returns a SetIconDetails with all fields set.
func (SetIconDetails) New ¶
func (p SetIconDetails) New() js.Ref
New creates a new SetIconDetails in the application heap.
func (*SetIconDetails) Update ¶
func (p *SetIconDetails) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*SetIconDetails) UpdateFrom ¶
func (p *SetIconDetails) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.