Ejemplo n.º 1
0
        private static bool TryCreatePrivate(out SciterPath sciterPath, bool ignoreResult)
        {
            var result = GraphicsApi.PathCreate(out var pathHandle)
                         .IsOk();

            sciterPath = (result || ignoreResult) ? new SciterPath(pathHandle: pathHandle) : default;

            return(result);
        }
Ejemplo n.º 2
0
        private static bool TryCreatePrivate(out SciterPath sciterPath, SciterValue sciterValue, bool ignoreResult)
        {
            var value  = sciterValue.ToVALUE();
            var result = GraphicsApi.ValueUnWrapPath(ref value, out var pathHandle)
                         .IsOk();

            sciterPath = (result || ignoreResult) ? new SciterPath(pathHandle: pathHandle) : default;

            return(result);
        }
Ejemplo n.º 3
0
 public static bool TryCreate(out SciterPath sciterPath, SciterValue sciterValue)
 {
     return(TryCreatePrivate(sciterPath: out sciterPath, sciterValue: sciterValue, ignoreResult: false));
 }
 public static bool TryPushClipPath(this SciterGraphics graphics, SciterPath path, float opacity = 1)
 {
     return(graphics?.TryPushClipPathInternal(path: path, opacity: opacity) == true);
 }
 public static SciterGraphics PushClipPath(this SciterGraphics graphics, SciterPath path, float opacity = 1)
 {
     graphics?.PushClipPathInternal(path: path, opacity: opacity);
     return(graphics);
 }
 public static bool TryDrawPath(this SciterGraphics graphics, SciterPath path, DrawPathMode pathMode)
 {
     return(graphics?.TryDrawPathInternal(path: path, pathMode: pathMode) == true);
 }
 public static SciterGraphics DrawPath(this SciterGraphics graphics, SciterPath path, DrawPathMode pathMode)
 {
     graphics?.DrawPathInternal(path: path, pathMode: pathMode);
     return(graphics);
 }