Skip to content

Commit

Permalink
(#63) WpfCharInfoEx: make public
Browse files Browse the repository at this point in the history
Custom IElementRenderers may use it.
  • Loading branch information
ForNeVeR committed Jan 25, 2023
1 parent f5a0d93 commit 687fc4e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
22 changes: 22 additions & 0 deletions src/WpfMath.ApiTest/api/WpfMath.net452.verified.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ public SVGConverter() { }
public string ConvertGeometry(System.Windows.Media.Geometry geometry) { throw null; }
}
}
namespace WpfMath.Fonts
{
public static partial class WpfCharInfoEx
{
public static System.Windows.Media.GlyphRun GetGlyphRun(this WpfMath.CharInfo info, double x, double y, double scale) { throw null; }
}
}
namespace WpfMath.Parsers
{
public static partial class WpfTeXFormulaParser
Expand Down Expand Up @@ -149,3 +156,18 @@ public static void RenderTo(this WpfMath.TexFormula formula, System.Windows.Medi
public static System.Windows.Media.Geometry RenderToGeometry(this WpfMath.TexFormula formula, WpfMath.TexEnvironment environment, double scale = 20, double x = 0, double y = 0) { throw null; }
}
}
namespace XamlGeneratedNamespace
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.2.0")]
[System.ComponentModel.EditorBrowsableAttribute(1)]
[System.Diagnostics.DebuggerNonUserCodeAttribute]
public sealed partial class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper
{
public GeneratedInternalTypeHelper() { }
protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) { }
protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) { throw null; }
protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) { throw null; }
protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) { throw null; }
protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) { }
}
}
22 changes: 22 additions & 0 deletions src/WpfMath.ApiTest/api/WpfMath.netcoreapp3.1.verified.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ public SVGConverter() { }
public string ConvertGeometry(System.Windows.Media.Geometry geometry) { throw null; }
}
}
namespace WpfMath.Fonts
{
public static partial class WpfCharInfoEx
{
public static System.Windows.Media.GlyphRun GetGlyphRun(this WpfMath.CharInfo info, double x, double y, double scale) { throw null; }
}
}
namespace WpfMath.Parsers
{
public static partial class WpfTeXFormulaParser
Expand Down Expand Up @@ -150,3 +157,18 @@ public static void RenderTo(this WpfMath.TexFormula formula, System.Windows.Medi
public static System.Windows.Media.Geometry RenderToGeometry(this WpfMath.TexFormula formula, WpfMath.TexEnvironment environment, double scale = 20, double x = 0, double y = 0) { throw null; }
}
}
namespace XamlGeneratedNamespace
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.2.0")]
[System.ComponentModel.EditorBrowsableAttribute(1)]
[System.Diagnostics.DebuggerNonUserCodeAttribute]
public sealed partial class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper
{
public GeneratedInternalTypeHelper() { }
protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) { }
protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) { throw null; }
protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) { throw null; }
protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) { throw null; }
protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) { }
}
}
2 changes: 1 addition & 1 deletion src/WpfMath/Fonts/WpfCharInfoEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace WpfMath.Fonts;

internal static class WpfCharInfoEx
public static class WpfCharInfoEx
{
public static GlyphRun GetGlyphRun(this CharInfo info, double x, double y, double scale)
{
Expand Down

0 comments on commit 687fc4e

Please sign in to comment.