示例#1
0
文件: panel.go 项目: zozor/gocurse
func (p *Panel) Above() *Panel {
	panel := C.panel_above(p.panel)
	if panel == nil {
		return nil
	}
	return &Panel{panel}
}
示例#2
0
// Returns a pointer to the panel below in the stack or nil. Passing nil will
// return the bottom panel in the stack
func Below(p *Panel) *Panel {
	return &Panel{C.panel_above(p.pan)}
}
示例#3
0
func (panel *Panel) Above() *Panel {
	return (*Panel)(C.panel_above((*C.PANEL)(panel)))
}
示例#4
0
// Returns a pointer to the panel above in the stack or nil. Passing nil will
// return the top panel in the stack
func (p *Panel) Above() *Panel {
	return &Panel{C.panel_above(p.pan)}
}