Parcourir la source

Added gui.Panel.Layout() for returning the panel Layout

leonsal il y a 8 ans
Parent
commit
ac9c54fd95
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      gui/panel.go

+ 6 - 0
gui/panel.go

@@ -607,6 +607,12 @@ func (p *Panel) SetLayout(ilayout ILayout) {
 	}
 }
 
+// Layout returns this panel current layout
+func (p *Panel) Layout() ILayout {
+
+	return p.layout
+}
+
 // SetLayoutParams sets the layout parameters for this panel
 func (p *Panel) SetLayoutParams(params interface{}) {