コード例 #1
0
ファイル: String.cs プロジェクト: sp3ck/UltralightSharp
        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
ファイル: KeyEvent.cs プロジェクト: TYoung86/UltralightSharp
 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
ファイル: String.cs プロジェクト: sp3ck/UltralightSharp
 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
ファイル: Config.cs プロジェクト: sp3ck/UltralightSharp
 public static Config *Create()
 => Ultralight.CreateConfig();
コード例 #14
0
ファイル: KeyEvent.cs プロジェクト: TYoung86/UltralightSharp
 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
ファイル: View.cs プロジェクト: dapeng17951/UltralightSharp
 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
ファイル: String.cs プロジェクト: sp3ck/UltralightSharp
 public static String *Create(ReadOnlySpan <char> utf16) {
     fixed(char *p = utf16)
     return(Ultralight.CreateStringUTF16(p, (UIntPtr)(uint)utf16.Length));
 }