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