当前位置: 首页>>代码示例>>C#>>正文


C# Widget.Unparent方法代码示例

本文整理汇总了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;
				}
			}
		}
开发者ID:trustme,项目名称:monodevelop,代码行数:10,代码来源:BlameWidget.cs

示例2: OnRemoved

 protected override void OnRemoved(Widget w)
 {
     int i = GetWidgetPosition (w);
     if (i != -1) {
         widgets.RemoveAt (i);
         w.Unparent ();
         QueueResize ();
     }
 }
开发者ID:Kalnor,项目名称:monodevelop,代码行数:9,代码来源:FixedPanel.cs

示例3: OnRemoved

		protected override void OnRemoved (Widget widget)
		{
			widget.Unparent ();
			children.RemoveAll (c => c.Child == widget);
		}
开发者ID:Shanto,项目名称:monodevelop,代码行数:5,代码来源:EditorCompareWidgetBase.cs

示例4: OnRemoved

 protected override void OnRemoved (Widget widget)
 {
     if (widget == Widget) {
         widget.Unparent ();
         Widget = null;
     }
 }
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:7,代码来源:AnimatedWidget.cs

示例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;
				}
			}
		}
开发者ID:telebovich,项目名称:monodevelop,代码行数:13,代码来源:SectionList.cs

示例6: OnRemoved

		protected override void OnRemoved (Widget widget)
		{
			System.Diagnostics.Debug.Assert (
				widget.Parent == this,
				"Widget is not parented on this widget");

			widget.Unparent ();
		}
开发者ID:msiyer,项目名称:Pinta,代码行数:8,代码来源:DockContainer.cs

示例7: OnRemoved

		protected override void OnRemoved (Widget widget)
		{
			foreach (EditorContainerChild info in containerChildren.ToArray ()) {
				if (info.Child == widget) {
					widget.Unparent ();
					containerChildren.Remove (info);
					break;
				}
			}
		}
开发者ID:alistick,项目名称:monodevelop,代码行数:10,代码来源:TextEditorContainer.cs

示例8: OnRemoved

 protected override void OnRemoved(Widget w)
 {
     w.Unparent ();
 }
开发者ID:mono,项目名称:stetic,代码行数:4,代码来源:Grid.cs

示例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 ();
		}
开发者ID:nocache,项目名称:monodevelop,代码行数:11,代码来源:DockContainer.cs

示例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 ();
        }
开发者ID:slluis,项目名称:monodevelop-prehistoric,代码行数:23,代码来源:DockItem.cs

示例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 ();
            }
        }
开发者ID:Karkus476,项目名称:supertux-editor,代码行数:13,代码来源:Dock.cs


注:本文中的Gtk.Widget.Unparent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。