Example #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
        }
Example #2
0
 public static IntRect Create()
 => Ultralight.IntRectMakeEmpty();
Example #3
0
 public bool IsEmpty()
 => Ultralight.IntRectIsEmpty(this);
Example #4
0
 public static MouseEvent *Create(MouseEventType type, int x, int y, MouseButton button)
 => Ultralight.CreateMouseEvent(type, x, y, button);
Example #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);
Example #6
0
 public static Bitmap *Copy(Bitmap *existingBitmap)
 => Ultralight.CreateBitmapFromCopy(existingBitmap);
Example #7
0
 public static Bitmap *Create(uint width, uint height, BitmapFormat format)
 => Ultralight.CreateBitmap(width, height, format);
Example #8
0
 public static String *Create(ReadOnlySpan <byte> utf8) {
     fixed(byte *p = utf8)
     return(Ultralight.CreateStringUTF8((sbyte *)p, (UIntPtr)(uint)utf8.Length));
 }
Example #9
0
 public static KeyEvent *CreateWindows(KeyEventType type, UIntPtr wParam, IntPtr lParam, bool isSystemKey)
 => Ultralight.CreateKeyEventWindows(type, wParam, lParam, isSystemKey);
Example #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);
Example #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);
Example #12
0
 public static Renderer *Create(Config *config)
 => Ultralight.CreateRenderer(config);
Example #13
0
 public static Session *Create(Renderer *renderer, bool isPersistent, String *name)
 => Ultralight.CreateSession(renderer, isPersistent, name);
Example #14
0
 public static ScrollEvent *Create(ScrollEventType type, int deltaX, int deltaY)
 => Ultralight.CreateScrollEvent(type, deltaX, deltaY);
Example #15
0
 public static Bitmap *CreateEmpty()
 => Ultralight.CreateEmptyBitmap();
Example #16
0
 public static Config *Create()
 => Ultralight.CreateConfig();
Example #17
0
 public static String *Create(ReadOnlySpan <char> utf16) {
     fixed(char *p = utf16)
     return(Ultralight.CreateStringUTF16(p, (UIntPtr)(uint)utf16.Length));
 }