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


C# IWidget类代码示例

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


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


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