Ok thats it next commit im getting rid of parent hooks

This commit is contained in:
2023-01-19 13:07:27 -05:00
parent df21aa9fd0
commit dcc7fcb251
6 changed files with 183 additions and 3 deletions

View File

@@ -84,6 +84,14 @@ func (hooks ParentHooks) RunSelectionMotionRequest (
return
}
// RunContentBoundsChange runs the ContentBoundsChange hook if it is not nil. If
// it is nil, it does nothing.
func (hooks ParentHooks) RunContentBoundsChange () {
if hooks.ContentBoundsChange != nil {
hooks.ContentBoundsChange()
}
}
// Element represents a basic on-screen object.
type Element interface {
// Element must implement the Canvas interface. Elements should start