代码拉取完成,页面将自动刷新
package controls
import (
fm "gitee.com/aochulai/GoMiniblink/forms"
br "gitee.com/aochulai/GoMiniblink/forms/bridge"
)
type Control struct {
BaseUI
impl br.Control
anchor fm.AnchorStyle
}
func (_this *Control) Init() *Control {
_this.impl = App.NewControl()
_this.BaseUI.Init(_this, _this.impl)
_this.anchor = fm.AnchorStyle_Left | fm.AnchorStyle_Top
_this.SetSize(200, 200)
return _this
}
func (_this *Control) GetAnchor() fm.AnchorStyle {
return _this.anchor
}
func (_this *Control) SetAnchor(style fm.AnchorStyle) {
_this.anchor = style
if _this.parent != nil {
if ct, ok := _this.parent.(Container); ok {
bn := ct.GetBound()
ct.SetSize(bn.Width, bn.Height-1)
ct.SetSize(bn.Width, bn.Height)
}
}
}
func (_this *Control) toControl() br.Control {
return _this.impl
}
func (_this *Control) setParent(parent GUI) {
_this.parent = parent
}
func (_this *Control) setOwner(owner GUI) {
_this.owner = owner
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。