} // non-user usable public SciterImage(SciterValue sv) { SciterXValue.VALUE v = sv.ToVALUE(); IntPtr himg; var r = _gapi.vUnWrapImage(ref v, out himg); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); _himg = himg; }
public static SciterGraphics FromSV(SciterValue sv) { IntPtr hgfx; SciterXValue.VALUE v = sv.ToVALUE(); var r = _gapi.vUnWrapGfx(ref v, out hgfx); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); return(new SciterGraphics(hgfx)); }
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 static SciterPath FromSV(SciterValue sv) { IntPtr hpath; SciterXValue.VALUE v = sv.ToVALUE(); var r = _gapi.vUnWrapPath(ref v, out hpath); Debug.Assert(r == SciterXGraphics.GRAPHIN_RESULT.GRAPHIN_OK); SciterPath st = new SciterPath(); st._hpath = hpath; return(st); }
/// <summary> /// For example media type can be "handheld:true", "projection:true", "screen:true", etc. /// By default sciter window has "screen:true" and "desktop:true"/"handheld:true" media variables. /// Media variables can be changed in runtime. This will cause styles of the document to be reset. /// </summary> /// <param name="mediaVars">Map that contains name/value pairs - media variables to be set</param> public bool SetMediaVars(SciterValue mediaVars) { SciterXValue.VALUE v = mediaVars.ToVALUE(); return(_api.SciterSetMediaVars(_hwnd, ref v)); }