Button now conforms to new API

This commit is contained in:
2023-01-16 00:31:04 -05:00
parent afd125c083
commit 5ca4d0be6e
2 changed files with 84 additions and 70 deletions

View File

@@ -73,6 +73,13 @@ type CoreControl struct {
core *Core
}
// RequestSelection requests that the element's parent send it a selection
// event. If the request was granted, it returns true. If it was denied, it
// returns false.
func (control CoreControl) RequestSelection () (granted bool) {
return control.core.hooks.RunSelectionRequest()
}
// HasImage returns true if the core has an allocated image buffer, and false if
// it doesn't.
func (control CoreControl) HasImage () (has bool) {