From 9daab20fcef427dbf0c27a32d8c5ec5bb3366cea Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 29 Jul 2014 23:01:28 -0400 Subject: Changed Control.setParent() to take the same argument type on all platforms; this is needed for re-adding Stack and Grid. This argument type is defined by each platform. --- redo/controls.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'redo/controls.go') diff --git a/redo/controls.go b/redo/controls.go index ef97ed1..cda67db 100644 --- a/redo/controls.go +++ b/redo/controls.go @@ -5,10 +5,10 @@ package ui // Control represents a control. // All Controls have event handlers that take a single argument (the Doer active during the event) and return nothing. type Control interface { - controlParent // platform-specific + setParent(p *controlParent) // controlParent defined per-platform // TODO enable/disable (public) // TODO show/hide (public) - containerShow() // for Windows, where all controls need ot belong to an overlapped window, not to a container control; these respect programmer settings + containerShow() // for Windows, where all controls need ot belong to an overlapped window, not to a container control; these respect programmer settings containerHide() controlSizing } -- cgit v1.2.3