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