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


C# Widget.ToString方法代码示例

本文整理汇总了C#中Widget.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Widget.ToString方法的具体用法?C# Widget.ToString怎么用?C# Widget.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Widget的用法示例。


在下文中一共展示了Widget.ToString方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BringWidgetToForeground

        private void BringWidgetToForeground(Widget widget)
        {
            Logger.LogInfo("Editor-Widget-Bar-BringWidgetToForeground", widget.ToString());

            int widgetIndex = ((int)widget);
            if (foregroundWidget == widgetIndex)
                return;

            if (null != widgets[widgetIndex])
                widgets[widgetIndex].Visibility = Visibility.Visible;

            // Hide the current widget (if any).
            if (foregroundWidget != -1)
            {
                if (null != widgets[foregroundWidget])
                    widgets[foregroundWidget].Visibility = Visibility.Collapsed;
            }

            foregroundWidget = widgetIndex;
        }
开发者ID:samuto,项目名称:designscript,代码行数:20,代码来源:EditorWidgetBar.xaml.cs

示例2: widget_EventMouseLostFocus

 static void widget_EventMouseLostFocus(Widget _sender, Widget _new)
 {
     Export.DebugOut("EventMouseLostFocus  _new=" + (_new == null ? "null" : _new.ToString()));
 }
开发者ID:siangzhang,项目名称:starworld,代码行数:4,代码来源:Test_Widget.cs

示例3: widget_EventMouseSetFocus

 static void widget_EventMouseSetFocus(Widget _sender, Widget _old)
 {
     Export.DebugOut("EventMouseSetFocus  _old=" + (_old == null ? "null" : _old.ToString()));
 }
开发者ID:siangzhang,项目名称:starworld,代码行数:4,代码来源:Test_Widget.cs

示例4: widget_EventMouseSetFocus

 static void widget_EventMouseSetFocus(Widget _sender, Widget _old)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventMouseSetFocus  _old=" + (_old == null ? "null" : _old.ToString()));
 }
开发者ID:blunted2night,项目名称:MyGUI,代码行数:4,代码来源:Test_Widget.cs

示例5: widget_EventMouseLostFocus

 static void widget_EventMouseLostFocus(Widget _sender, Widget _new)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventMouseLostFocus  _new=" + (_new == null ? "null" : _new.ToString()));
 }
开发者ID:blunted2night,项目名称:MyGUI,代码行数:4,代码来源:Test_Widget.cs

示例6: Update

    // Update is called once per frame
    void Update()
    {
        //Check ditances among points only if 4 points are registered contemporary
        if (Input.touches.Length == 4 && !found)
        {
            AllDistancesPX = ComputeAllDistances(Input.touches);

            Widget w = new Widget(widgetIdCount,
                                  AllDistancesPX.GetRange(0, 3).ToArray(),
                                  AllDistancesPX.GetRange(3, 3).ToArray(),
                                  AllDistancesPX.GetRange(6, 3).ToArray(),
                                  AllDistancesPX.GetRange(9, 3).ToArray());
            widgets.Add(w);
            // wIDGET RECOGNITION PART
            //   currentWidget = new Widget(Input.touches);
            //recognized = currentWidget.IdentifyWidget();
            //widgetIdCount++;
            //   IdentifiedWidgets.Add(currentWidget);
            //found = true;

            //   //Debug.Log(w.ToString());
            //   Debug.Log("Angle: " + currentWidget.angle);
            //   //Debug.Log("Distance of data point: " + functionPointDistance);
            //   Debug.Log("Data Point Coordinates => X: " + currentWidget.dataCoordinates[0] + " / Y: " + currentWidget.dataCoordinates[1]);
            ////planeTransform.Rotate(new Vector3(1.0f, 0.0f, 0.0f), currentWidget.angle);
            //   Vector3 temp = planeTransform.rotation.eulerAngles;
            //temp.x = currentWidget.angle;
            //   planeTransform.rotation = Quaternion.Euler(temp);
            widgetIdCount++;
            found = true;
            Debug.Log(w.ToString());
        }

        //else if (Input.touches.Length == 4 && found && recognized)
        //{
        //    currentWidget.UpdateTouchPoints(Input.touches);
        //    updateRecognized = currentWidget.IdentifyWidget();

        //    if (updateRecognized)
        //    {
        //        Debug.Log("Angle: " + currentWidget.angle);
        //        Debug.Log("Data Point Coordinates => X: " + currentWidget.dataCoordinates[0] + " / Y: " + currentWidget.dataCoordinates[1]);
        //        Vector3 temp = planeTransform.rotation.eulerAngles;
        //        temp.x = currentWidget.angle;
        //        planeTransform.rotation = Quaternion.Euler(temp);
        //    }

        //}

        //All touches have been removed from screen
        else if (Input.touches.Length == 0)
        {
            found = false;
            recognized = false;
        }
    }
开发者ID:francescoStrada,项目名称:WidgetDistanceTest,代码行数:57,代码来源:WidgetManager.cs

示例7: widget_EventKeySetFocus

 static void widget_EventKeySetFocus(Widget _sender, Widget _old)
 {
     ExampleApplication.DebugOut("EventKeySetFocus  _old=" + (_old == null ? "null" : _old.ToString()));
 }
开发者ID:venkatarajasekhar,项目名称:viper,代码行数:4,代码来源:Test_Widget.cs

示例8: widget_EventKeyLostFocus

 static void widget_EventKeyLostFocus(Widget _sender, Widget _new)
 {
     ExampleApplication.DebugOut("EventKeyLostFocus  _new=" + (_new == null ? "null" : _new.ToString()));
 }
开发者ID:venkatarajasekhar,项目名称:viper,代码行数:4,代码来源:Test_Widget.cs


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