本文整理汇总了C#中Gtk.Widget.Unparent方法的典型用法代码示例。如果您正苦于以下问题:C# Widget.Unparent方法的具体用法?C# Widget.Unparent怎么用?C# Widget.Unparent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.Widget
的用法示例。
在下文中一共展示了Widget.Unparent方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnRemoved
protected override void OnRemoved (Widget widget)
{
widget.Unparent ();
foreach (var info in children.ToArray ()) {
if (info.Child == widget) {
children.Remove (info);
break;
}
}
}
示例2: OnRemoved
protected override void OnRemoved(Widget w)
{
int i = GetWidgetPosition (w);
if (i != -1) {
widgets.RemoveAt (i);
w.Unparent ();
QueueResize ();
}
}
示例3: OnRemoved
protected override void OnRemoved (Widget widget)
{
widget.Unparent ();
children.RemoveAll (c => c.Child == widget);
}
示例4: OnRemoved
protected override void OnRemoved (Widget widget)
{
if (widget == Widget) {
widget.Unparent ();
Widget = null;
}
}
示例5: OnRemoved
protected override void OnRemoved (Widget widget)
{
for (int i = 0; i < sections.Count; i++) {
var section = sections[i];
if (section.Child == widget) {
widget.Unparent ();
section.Parent = null;
section.Child = null;
sections.RemoveAt (i);
break;
}
}
}
示例6: OnRemoved
protected override void OnRemoved (Widget widget)
{
System.Diagnostics.Debug.Assert (
widget.Parent == this,
"Widget is not parented on this widget");
widget.Unparent ();
}
示例7: OnRemoved
protected override void OnRemoved (Widget widget)
{
foreach (EditorContainerChild info in containerChildren.ToArray ()) {
if (info.Child == widget) {
widget.Unparent ();
containerChildren.Remove (info);
break;
}
}
}
示例8: OnRemoved
protected override void OnRemoved(Widget w)
{
w.Unparent ();
}
示例9: OnRemoved
protected override void OnRemoved (Widget widget)
{
System.Diagnostics.Debug.Assert (
widget.Parent != this,
"Widget is not parented on this widget");
System.Diagnostics.Debug.Assert (
System.Linq.Enumerable.Any (items, item => item.Widget == widget),
"Can only remove widgets from the container that are in the parent DockFrame's DockItem collection");
widget.Unparent ();
}
示例10: OnRemoved
protected override void OnRemoved(Widget widget)
{
bool wasVisible = widget.Visible;
if (grip == widget) {
widget.Unparent ();
grip = null;
if (wasVisible)
QueueResize ();
return;
} else if (widget != Child) {
return;
}
if (InDrag)
EndDrag (true);
widget.Unparent ();
Child = null;
if (wasVisible)
QueueResize ();
}
示例11: OnRemoved
protected override void OnRemoved(Widget widget)
{
bool wasVisible = widget.Visible;
if (root == widget) {
root.DockObjectFlags &= ~(DockObjectFlags.Attached);
root = null;
widget.Unparent ();
if (wasVisible && Visible)
QueueResize ();
}
}