Esempio n. 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));
 }
Esempio n. 2
0
 public static Size MeasureText(string text, Font font)
 {
     return(ToSize(TextRendererSk.MeasureText(text, font)));
 }
Esempio n. 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));
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 6
0
 public static Size MeasureText(string text, Font font, float maxLineWidth, TextFormatFlags flags)
 {
     return(ToSize(TextRendererSk.MeasureText(text, font, maxLineWidth, flags)));
 }
Esempio n. 7
0
 public static Size MeasureText(string text, Font font, int maxLineWidth)
 {
     return(ToSize(TextRendererSk.MeasureText(text, font, maxLineWidth)));
 }