本文整理汇总了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;
}
示例2: widget_EventMouseLostFocus
static void widget_EventMouseLostFocus(Widget _sender, Widget _new)
{
Export.DebugOut("EventMouseLostFocus _new=" + (_new == null ? "null" : _new.ToString()));
}
示例3: widget_EventMouseSetFocus
static void widget_EventMouseSetFocus(Widget _sender, Widget _old)
{
Export.DebugOut("EventMouseSetFocus _old=" + (_old == null ? "null" : _old.ToString()));
}
示例4: widget_EventMouseSetFocus
static void widget_EventMouseSetFocus(Widget _sender, Widget _old)
{
Gui.Instance.Log("TestApp", LogLevel.Info, "EventMouseSetFocus _old=" + (_old == null ? "null" : _old.ToString()));
}
示例5: widget_EventMouseLostFocus
static void widget_EventMouseLostFocus(Widget _sender, Widget _new)
{
Gui.Instance.Log("TestApp", LogLevel.Info, "EventMouseLostFocus _new=" + (_new == null ? "null" : _new.ToString()));
}
示例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;
}
}
示例7: widget_EventKeySetFocus
static void widget_EventKeySetFocus(Widget _sender, Widget _old)
{
ExampleApplication.DebugOut("EventKeySetFocus _old=" + (_old == null ? "null" : _old.ToString()));
}
示例8: widget_EventKeyLostFocus
static void widget_EventKeyLostFocus(Widget _sender, Widget _new)
{
ExampleApplication.DebugOut("EventKeyLostFocus _new=" + (_new == null ? "null" : _new.ToString()));
}