MCPcopy Create free account
hub / github.com/MyGUI/mygui / CreateWidgetImpl

Method CreateWidgetImpl

Wrappers/MyGUI_Sharp/Widgets/BaseWidget.cs:58–72  ·  view source on GitHub ↗
(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)

Source from the content-addressed store, hash-verified

56 }
57
58 internal void CreateWidgetImpl(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
59 {
60 mParent = _parent;
61 IntPtr parent = _parent != null ? _parent.Native : IntPtr.Zero;
62 mNative = ExportGui_CreateWidget(parent, _style, GetWidgetType(), _skin, ref _coord, _align, _layer, _name);
63
64 ExportGui_WrapWidget(mNative);
65 mWidgets.Add(mNative, this);
66 mIsWrap = false;
67
68 if (mParent != null)
69 mParent.mChilds.Add(this);
70 else
71 mRoots.Add(this);
72 }
73
74 public object UserData
75 {

Callers 15

CreateWidgetMethod · 0.80
RequestCreateTextBoxMethod · 0.80
RequestCreateTabItemMethod · 0.80
RequestCreateWindowMethod · 0.80
RequestCreateComboBoxMethod · 0.80
RequestCreateEditBoxMethod · 0.80
RequestCreateMenuItemMethod · 0.80

Calls 1

ExportGui_WrapWidgetFunction · 0.85

Tested by

no test coverage detected