소스 검색

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{}) {