Exemplo n.º 1
0
        public static String *Create(string str)
        {
#if NETFRAMEWORK || NETSTANDARD2_0
            fixed(char *p = str)
            return(Ultralight.CreateStringUTF16(p, (UIntPtr)(uint)str.Length));
#else
            return(Create((ReadOnlySpan <char>)str));
#endif
        }
Exemplo n.º 2
0
 public static IntRect Create()
 => Ultralight.IntRectMakeEmpty();
Exemplo n.º 3
0
 public bool IsEmpty()
 => Ultralight.IntRectIsEmpty(this);
Exemplo n.º 4
0
 public static MouseEvent *Create(MouseEventType type, int x, int y, MouseButton button)
 => Ultralight.CreateMouseEvent(type, x, y, button);
Exemplo n.º 5
0
 public static Bitmap *CreateFromPixels(uint width, uint height, BitmapFormat format, uint rowBytes, void *pixels, UIntPtr size, bool shouldCopy)
 => Ultralight.CreateBitmapFromPixels(width, height, format, rowBytes, pixels, size, shouldCopy);
Exemplo n.º 6
0
 public static Bitmap *Copy(Bitmap *existingBitmap)
 => Ultralight.CreateBitmapFromCopy(existingBitmap);
Exemplo n.º 7
0
 public static Bitmap *Create(uint width, uint height, BitmapFormat format)
 => Ultralight.CreateBitmap(width, height, format);
Exemplo n.º 8
0
 public static String *Create(ReadOnlySpan <byte> utf8) {
     fixed(byte *p = utf8)
     return(Ultralight.CreateStringUTF8((sbyte *)p, (UIntPtr)(uint)utf8.Length));
 }
Exemplo n.º 9
0
 public static KeyEvent *CreateWindows(KeyEventType type, UIntPtr wParam, IntPtr lParam, bool isSystemKey)
 => Ultralight.CreateKeyEventWindows(type, wParam, lParam, isSystemKey);
Exemplo n.º 10
0
 public static KeyEvent *Create(KeyEventType type, uint modifiers, int virtualKeyCode, int nativeKeyCode, String *text, String *unmodifiedText, bool isKeypad, bool isAutoRepeat, bool isSystemKey)
 => Ultralight.CreateKeyEvent(type, modifiers, virtualKeyCode, nativeKeyCode, text, unmodifiedText, isKeypad, isAutoRepeat, isSystemKey);
Exemplo n.º 11
0
 public static View *Create(Renderer *renderer, uint width, uint height, bool transparent, Session *session, bool force_cpu_renderer)
 => Ultralight.CreateView(renderer, width, height, transparent, session, force_cpu_renderer);
Exemplo n.º 12
0
 public static Renderer *Create(Config *config)
 => Ultralight.CreateRenderer(config);
Exemplo n.º 13
0
 public static Session *Create(Renderer *renderer, bool isPersistent, String *name)
 => Ultralight.CreateSession(renderer, isPersistent, name);
Exemplo n.º 14
0
 public static ScrollEvent *Create(ScrollEventType type, int deltaX, int deltaY)
 => Ultralight.CreateScrollEvent(type, deltaX, deltaY);
Exemplo n.º 15
0
 public static Bitmap *CreateEmpty()
 => Ultralight.CreateEmptyBitmap();
Exemplo n.º 16
0
 public static Config *Create()
 => Ultralight.CreateConfig();
Exemplo n.º 17
0
 public static String *Create(ReadOnlySpan <char> utf16) {
     fixed(char *p = utf16)
     return(Ultralight.CreateStringUTF16(p, (UIntPtr)(uint)utf16.Length));
 }