diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2017-04-11 16:34:11 +0200 |
---|---|---|
committer | Alexander Neumann <alexander.neumann@picos-software.com> | 2017-04-11 16:34:11 +0200 |
commit | 88499bbc812e0ba32b93528deb66070e549e561b (patch) | |
tree | 28530778e6238809ce5482e1d07fc1aa774d88a2 /groupbox.go | |
parent | Some misc Form stuff (diff) | |
download | wireguard-windows-88499bbc812e0ba32b93528deb66070e549e561b.tar.xz wireguard-windows-88499bbc812e0ba32b93528deb66070e549e561b.zip |
Add experimental support for graphics effects
Diffstat (limited to 'groupbox.go')
-rw-r--r-- | groupbox.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/groupbox.go b/groupbox.go index 7438b0bb..eab464f4 100644 --- a/groupbox.go +++ b/groupbox.go @@ -213,6 +213,20 @@ func (gb *GroupBox) SetDataBinder(dataBinder *DataBinder) { gb.composite.SetDataBinder(dataBinder) } +func (gb *GroupBox) FocusEffect() WidgetGraphicsEffect { + if gb.composite.focusEffect == nil { + if parent := gb.Parent(); parent != nil { + return parent.FocusEffect() + } + } + + return gb.composite.focusEffect +} + +func (gb *GroupBox) SetFocusEffect(effect WidgetGraphicsEffect) { + gb.composite.SetFocusEffect(effect) +} + func (gb *GroupBox) Title() string { if gb.Checkable() { return gb.checkBox.Text() |