Pārlūkot izejas kodu

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

leonsal 8 gadi atpakaļ
vecāks
revīzija
ac9c54fd95
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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{}) {