/ src / modules / cmdpal / Microsoft.Terminal.UI / Converters.idl
Converters.idl
 1  // Copyright (c) Microsoft Corporation.
 2  // Licensed under the MIT license.
 3  
 4  namespace Microsoft.Terminal.UI
 5  {
 6  
 7      [bindable]
 8      static runtimeclass Converters
 9      {
10          // Booleans
11          static Boolean InvertBoolean(Boolean value);
12          // static Windows.UI.Xaml.Visibility InvertedBooleanToVisibility(Boolean value);
13  
14          // Numbers
15          static Double PercentageToPercentageValue(Double value);
16          static Double PercentageValueToPercentage(Double value);
17          // static String PercentageToPercentageString(Double value);
18  
19          // Strings
20          static Boolean StringsAreNotEqual(String expected, String actual);
21          static Boolean StringNotEmpty(String value);
22          // static Windows.UI.Xaml.Visibility StringNotEmptyToVisibility(String value);
23          static String StringOrEmptyIfPlaceholder(String placeholder, String value);
24  
25          // Misc
26          // static Windows.UI.Text.FontWeight DoubleToFontWeight(Double value);
27          // static Windows.UI.Xaml.Media.SolidColorBrush ColorToBrush(Windows.UI.Color color);
28          // static Double FontWeightToDouble(Windows.UI.Text.FontWeight fontWeight);
29          // static Double MaxValueFromPaddingString(String paddingString);
30      }
31  }