Example #1
0
 public static int GetCursorFromPoint(string text, Font font, Rectangle bounds, TextFormatFlags flags,
                                      SKPoint point, out SKPoint cursorDrawPosition)
 {
     return(TextRendererSk.GetCursorFromPoint(text, font, ToSkRect(bounds), flags, point,
                                              out cursorDrawPosition));
 }
Example #2
0
 public static Size MeasureText(string text, Font font)
 {
     return(ToSize(TextRendererSk.MeasureText(text, font)));
 }
Example #3
0
 public static SKPoint GetCursorDrawPosition(string text, Font font, Rectangle bounds, TextFormatFlags flags,
                                             int cursorPosition)
 {
     return(TextRendererSk.GetCursorDrawPosition(text, font, ToSkRect(bounds), flags, cursorPosition));
 }
Example #4
0
 public static void DrawText(SKCanvas canvas, string text, Font font, Rectangle bounds, SKColor foreColor,
                             TextFormatFlags flags, int cursorPosition)
 {
     TextRendererSk.DrawText(canvas, text, font, ToSkRect(bounds), foreColor, flags, cursorPosition);
 }
Example #5
0
 public static void DrawText(SKCanvas canvas, string text, Font font, Rectangle bounds, SKColor foreColor,
                             TextFormatFlags flags, TextPaintOptions options)
 {
     TextRendererSk.DrawText(canvas, text, font, ToSkRect(bounds), foreColor, flags, options);
 }
Example #6
0
 public static Size MeasureText(string text, Font font, float maxLineWidth, TextFormatFlags flags)
 {
     return(ToSize(TextRendererSk.MeasureText(text, font, maxLineWidth, flags)));
 }
Example #7
0
 public static Size MeasureText(string text, Font font, int maxLineWidth)
 {
     return(ToSize(TextRendererSk.MeasureText(text, font, maxLineWidth)));
 }