Avoid invalid memory address access by no trying to get parent's
control if next control is nil on event processing.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Keeps current API as-is by defaulting to the new BorderAuto BorderStyle
which keeps the default borders on Windows and defaults on none on Frames.
Allows setting a Window Border to BorderNone for a frameless Window.
Need to allow setting the border default in the Window Manager to avoid
the border from being drawn and then removed.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This patch introduce internal changes in order to #1 actually clip
content avoid growing parent's size and keeping controls with their
own pre-set sizes and also #2 add a scrollable feature to frame control.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
In order to keep caller's context this patch introduces a interface{}
argument to carry on arbitrary data and pass it back based on the
registered callback.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
In order to guarantee BaseControl and Control are fully comparable in the
BaseControl level this patch introduces a refID interface, so the objects
can safely be comparable based on this interface.