internal void CreateWidget(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name) { mParent = _parent; IntPtr parent = _parent != null?_parent.GetNative() : IntPtr.Zero; mNative = ExportGui_CreateWidget(this, parent, _style, GetWidgetType(), _skin, ref _coord, _align, _layer, _name); mIsWrap = false; if (mParent != null) { mParent.mChilds.Add(this); } else { mRoots.Add(this); } }
IntPtr OnRequest(BaseWidget _wrapper) { return(_wrapper == null ? IntPtr.Zero : _wrapper.GetNative()); }