瀏覽代碼

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

leonsal 8 年之前
父節點
當前提交
ac9c54fd95
共有 1 個文件被更改,包括 6 次插入0 次删除
  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{}) {