• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IWidget类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IWidget的典型用法代码示例。如果您正苦于以下问题:C# IWidget类的具体用法?C# IWidget怎么用?C# IWidget使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IWidget类属于命名空间,在下文中一共展示了IWidget类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CamerasTimeline

 public CamerasTimeline(IWidget widget)
     : base(widget)
 {
     secondsPerPixel = 0.1;
     Accuracy = Constants.TIMELINE_ACCURACY;
     SelectionMode = MultiSelectionMode.MultipleWithModifier;
 }
开发者ID:GNOME,项目名称:longomatch,代码行数:7,代码来源:CamerasTimeline.cs


示例2: VerifyLanguageTokens

        private static void VerifyLanguageTokens(Dictionary<IWidgetFile, Dictionary<string, MissingResourceInfo>> problems,
		                                       IWidget parent,
		                                       IWidgetFile widget,
		                                       IEnumerable<string> tokens)
        {
            foreach (string token in tokens)
            {
                foreach (string languageName in parent.Languages.Keys)
                {
                    if (parent.Languages[languageName].Keys.Contains(token) == false)
                    {
                        if (!problems.ContainsKey(parent))
                        {
                            problems.Add(parent, new Dictionary<string, MissingResourceInfo>());
                        }
                        problems[parent][languageName] = new MissingResourceInfo
                            {
                                FileName = widget.FileName,
                                LanguageName = languageName,
                                ResourceName = token
                            };
                    }
                }
            }
        }
开发者ID:pavelmihailov,项目名称:TCResourceVerifier,代码行数:25,代码来源:WidgetVerifier.cs


示例3: Create

 /// <summary>
 /// PopupMenu生成
 /// </summary>
 /// <param name="parent">親</param>
 /// <returns></returns>
 public override int Create(IWidget parent)
 {
     if( !IsAvailable ) {
         this.CreateMotifWidget(Native.Motif.CreateSymbol.XmCreatePopupMenu, parent, ToolkitResources);
     }
     return base.Create (parent);
 }
开发者ID:sazae657,项目名称:TonNurako,代码行数:12,代码来源:PopupMenu.cs


示例4: AddChild

            /**
             * Override the AddChild function
             */
            public override void AddChild(IWidget child)
            {
                if (child is Screen)
                {
                    MoSync.Util.RunActionOnMainThreadSync(() =>
                        {
                            mAddChildDelegate = delegate()
                            {
                                if (mPage.Children.Count > 0)
                                {
                                    mPage.Children.RemoveAt(mPage.Children.Count - 1);
                                }

                                mPage.Children.Add((child as Screen).View);
                                Grid.SetColumn(mPage.Children[mPage.Children.Count - 1] as Grid, 0);
                                Grid.SetRow(mPage.Children[mPage.Children.Count - 1] as Grid, 0);

                                ToggleApplicationBar((child as Screen));
                            };

                            MoSyncScreenTransitions.doScreenTransition(mAddChildDelegate, mPushTransitionType);
                        });

                    /**
                     * Manualy add the child to the children array
                     */
                    mChildren.Add(child);
                    (child as Screen).SetParent(this);
                }
            }
开发者ID:nagyist,项目名称:MoSync-MoSync,代码行数:33,代码来源:MoSyncStackScreen.cs


示例5: GetWidgets

        public IWidget[] GetWidgets()
        {
            var widgets = new IWidget[_dictionary.Values.Count];
            _dictionary.Values.CopyTo(widgets, 0);

            return widgets;
        }
开发者ID:JohnLamontagne,项目名称:dominus-engine,代码行数:7,代码来源:WidgetDictionary.cs


示例6: WidgetPanoramaItem

 public WidgetPanoramaItem(SpriteBatch sb, IWidget button)
 {
     _sb = sb;
     _button = button;
     _centerOffset = new Vector2(sb.GraphicsDevice.Viewport.Width, sb.GraphicsDevice.Viewport.Height)/2f;
     SetDrawOffset(Vector2.Zero);
 }
开发者ID:luiseduardohdbackup,项目名称:MonoGameWidgets,代码行数:7,代码来源:WidgetPanoramaItem.cs


示例7: RemoveWidgetFromList

 private void RemoveWidgetFromList(IWidget widget)
 {
     if (widget.IsVisible)
         widgets.Remove(widget);
     else
         notVisibleWidgets.Remove(widget);
 }
开发者ID:Nexus87,项目名称:PokeClone,代码行数:7,代码来源:GUIManager.cs


示例8: WidgetList

 /// <summary>
 /// Widgetの配列から
 /// </summary>
 /// <param name="tabs">Tab配列</param>
 public WidgetList(IWidget[] tabs)
 {
     widgetList = new List<IWidget>();
     for (int i=0; i < tabs.Length; i++) {
         widgetList.Add(tabs[i]);
     }
 }
开发者ID:sazae657,项目名称:TonNurako,代码行数:11,代码来源:WidgetList.cs


示例9: Contains

        private bool Contains(IWidget widget)
        {
            if (widget == null)
                return false;

            return widgets.Contains(widget) || notVisibleWidgets.Contains(widget);
        }
开发者ID:Nexus87,项目名称:PokeClone,代码行数:7,代码来源:GUIManager.cs


示例10: TextWidget

        public TextWidget(IWidget attachedWidget)
        {
            this.attachedWidget = attachedWidget;

            Canvas.SetLeft(this, 0);
            Canvas.SetTop(this, 0);
        }
开发者ID:JohnDRoach,项目名称:racedata,代码行数:7,代码来源:TextWidget.cs


示例11: Create

 public override int Create( IWidget parent )
 {
     if( !IsAvailable ) {
         this.CreateMotifWidget(Native.Motif.CreateSymbol.XmCreateBulletinBoardDialog, parent, ToolkitResources);
     }
     return base.Create (parent);
 }
开发者ID:sazae657,项目名称:TonNurako,代码行数:7,代码来源:BulletinBoardDialog.cs


示例12: can_override_array

        public void can_override_array()
        {
            var array = new IWidget[0];
            container.Inject(array);

            container.GetInstance<IWidget[]>()
                .ShouldBeTheSameAs(array);
        }
开发者ID:slahn,项目名称:structuremap,代码行数:8,代码来源:Resolving_ienumerable_types.cs


示例13: RemoveWidget

        public void RemoveWidget(IWidget widget)
        {
            if (!Contains(widget))
                return;

            RemoveWidgetFromList(widget);
            widget.VisibilityChanged -= VisibilityChangedHandler;
        }
开发者ID:Nexus87,项目名称:PokeClone,代码行数:8,代码来源:GUIManager.cs


示例14: Setup

 public void Setup(IWidget widget, FlexibleLayoutEditorContext context, IEditorService edsvc)
 {
     _widget = widget;
     _xml = _widget.ToXml();
     _widgetInfo = context.GetWidgetInfo(widget.Type);
     btnWidgetInfo.Enabled = (_widgetInfo != null);
     txtXmlContent.Text = _xml;
 }
开发者ID:kanbang,项目名称:Colt,代码行数:8,代码来源:GenericWidgetCtrl.cs


示例15: TimersTimeline

 public TimersTimeline(IWidget widget)
     : base(widget)
 {
     secondsPerPixel = 0.1;
     Accuracy = VASDrawing.Constants.TIMELINE_ACCURACY;
     SelectionMode = MultiSelectionMode.MultipleWithModifier;
     HeightRequest = VASDrawing.Constants.TIMER_HEIGHT;
 }
开发者ID:LongoMatch,项目名称:longomatch,代码行数:8,代码来源:TimersTimeline.cs


示例16: CamerasTimeline

 public CamerasTimeline(IWidget widget)
     : base(widget)
 {
     secondsPerPixel = 0.1;
     Accuracy = VAS.Drawing.Constants.TIMELINE_ACCURACY;
     SelectionMode = MultiSelectionMode.MultipleWithModifier;
     currentTime = new Time (0);
 }
开发者ID:LongoMatch,项目名称:longomatch,代码行数:8,代码来源:CamerasTimeline.cs


示例17: PositionTagger

 public PositionTagger(IWidget widget)
     : base(widget)
 {
     Accuracy = VASDrawing.Constants.TAGGER_POINT_SIZE + 3;
     EmitSignals = true;
     SelectionMode = MultiSelectionMode.MultipleWithModifier;
     BackgroundColor = App.Current.Style.PaletteBackground;
 }
开发者ID:LongoMatch,项目名称:longomatch,代码行数:8,代码来源:PositionTagger.cs


示例18: Insert

		public void Insert(IWidget widget, int index)
		{
			if(index <= m_ChildWidgets.Count)
			{
				m_ChildWidgets.Insert(index, widget);
			}
			//probably want to throw an indexoutofrange type of exception
		}
开发者ID:jpespartero,项目名称:WorldWind,代码行数:8,代码来源:WidgetCollection.cs


示例19: Create

 public override int Create( IWidget parent )
 {
     if( !IsAvailable ) {
         AddInternalEventHandler();
         this.CreateMotifWidget(Native.Motif.CreateSymbol.XmCreateSimpleOptionMenu, parent, ToolkitResources);
     }
     return base.Create (parent);
 }
开发者ID:sazae657,项目名称:TonNurako,代码行数:8,代码来源:SimpleOptionMenu.cs


示例20: WidgetMenuButton

        public WidgetMenuButton(
			string name,
			string iconFilePath,
			IWidget widget) : base(iconFilePath)
		{
			this.Description = name;
            m_widget = widget;
		}
开发者ID:jpespartero,项目名称:WorldWind,代码行数:8,代码来源:WidgetMenuButton.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IWidgetBackend类代码示例发布时间:2022-05-24
下一篇:
C# IWebSocketSession类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap