Procházet zdrojové kódy

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

leonsal před 8 roky
rodič
revize
ac9c54fd95
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  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{}) {