public static SciterText CreateForElement(string text, SciterElement element) { IntPtr htext; var r = _gapi.textCreateForElement(out htext, text, (uint)text.Length, element._he); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); Debug.Assert(htext != IntPtr.Zero); SciterText st = new SciterText(); st._htext = htext; return(st); }
} // non-user usable public static SciterText Create(string text, SciterXGraphics.SCITER_TEXT_FORMAT format) { IntPtr htext; var r = _gapi.textCreate(out htext, text, (uint)text.Length, ref format); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); Debug.Assert(htext != IntPtr.Zero); SciterText st = new SciterText(); st._htext = htext; return(st); }
public static SciterText CreateWithStyle(string text, IntPtr he, string style) { IntPtr htext; var r = _gapi.textCreateForElementAndStyle(out htext, text, (uint)text.Length, he, style, (uint)style.Length); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); Debug.Assert(htext != IntPtr.Zero); SciterText st = new SciterText(); st._htext = htext; return(st); }
public static SciterText FromSV(SciterValue sv) { IntPtr htext; SciterXValue.VALUE v = sv.ToVALUE(); var r = _gapi.vUnWrapText(ref v, out htext); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); SciterText st = new SciterText(); st._htext = htext; return(st); }
public void DrawText(SciterText text, float px, float py, uint position) { var r = _gapi.gDrawText(_hgfx, text._htext, px, py, position); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); }
public static SciterText CreateForElement(string text, SciterElement element) { IntPtr htext; var r = _gapi.textCreateForElement(out htext, text, (uint)text.Length, element._he); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); Debug.Assert(htext != IntPtr.Zero); SciterText st = new SciterText(); st._htext = htext; return st; }
public static SciterText Create(string text, SciterXGraphics.SCITER_TEXT_FORMAT format) { IntPtr htext; var r = _gapi.textCreate(out htext, text, (uint) text.Length, ref format); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); Debug.Assert(htext != IntPtr.Zero); SciterText st = new SciterText(); st._htext = htext; return st; }