| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522 |
- // WARNING - AUTOGENERATED - DO NOT EDIT
- //
- // Generated using `sharpie urho`
- //
- // Window.cs
- //
- // Copyright 2015 Xamarin Inc. All rights reserved.
- using System;
- using System.Runtime.InteropServices;
- using System.Collections.Generic;
- using Urho.Urho2D;
- using Urho.Gui;
- using Urho.Resources;
- using Urho.IO;
- using Urho.Navigation;
- using Urho.Network;
- namespace Urho.Gui
- {
- /// <summary>
- /// %Window %UI element that can optionally by moved or resized.
- /// </summary>
- public unsafe partial class Window : BorderImage
- {
- unsafe partial void OnWindowCreated ();
- [Preserve]
- public Window (IntPtr handle) : base (handle)
- {
- OnWindowCreated ();
- }
- [Preserve]
- protected Window (UrhoObjectFlag emptyFlag) : base (emptyFlag)
- {
- OnWindowCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern int Window_GetType (IntPtr handle);
- private StringHash UrhoGetType ()
- {
- Runtime.ValidateRefCounted (this);
- return new StringHash (Window_GetType (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Window_GetTypeName (IntPtr handle);
- private string GetTypeName ()
- {
- Runtime.ValidateRefCounted (this);
- return Marshal.PtrToStringAnsi (Window_GetTypeName (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern int Window_GetTypeStatic ();
- private static StringHash GetTypeStatic ()
- {
- Runtime.Validate (typeof(Window));
- return new StringHash (Window_GetTypeStatic ());
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Window_GetTypeNameStatic ();
- private static string GetTypeNameStatic ()
- {
- Runtime.Validate (typeof(Window));
- return Marshal.PtrToStringAnsi (Window_GetTypeNameStatic ());
- }
- [Preserve]
- public Window () : this (Application.CurrentContext)
- {
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr Window_Window (IntPtr context);
- [Preserve]
- public Window (Context context) : base (UrhoObjectFlag.Empty)
- {
- Runtime.Validate (typeof(Window));
- handle = Window_Window ((object)context == null ? IntPtr.Zero : context.Handle);
- Runtime.RegisterObject (this);
- OnWindowCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_RegisterObject (IntPtr context);
- /// <summary>
- /// Register object factory.
- /// </summary>
- public new static void RegisterObject (Context context)
- {
- Runtime.Validate (typeof(Window));
- Window_RegisterObject ((object)context == null ? IntPtr.Zero : context.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_OnHover (IntPtr handle, ref Urho.IntVector2 position, ref Urho.IntVector2 screenPosition, int buttons, int qualifiers, IntPtr cursor);
- /// <summary>
- /// React to mouse hover.
- /// </summary>
- public override void OnHover (Urho.IntVector2 position, Urho.IntVector2 screenPosition, int buttons, int qualifiers, Cursor cursor)
- {
- Runtime.ValidateRefCounted (this);
- Window_OnHover (handle, ref position, ref screenPosition, buttons, qualifiers, (object)cursor == null ? IntPtr.Zero : cursor.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetMovable (IntPtr handle, bool enable);
- /// <summary>
- /// Set whether can be moved.
- /// </summary>
- private void SetMovable (bool enable)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetMovable (handle, enable);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetResizable (IntPtr handle, bool enable);
- /// <summary>
- /// Set whether can be resized.
- /// </summary>
- private void SetResizable (bool enable)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetResizable (handle, enable);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetFixedWidthResizing (IntPtr handle, bool enable);
- /// <summary>
- /// Set whether resizing width is fixed.
- /// </summary>
- private void SetFixedWidthResizing (bool enable)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetFixedWidthResizing (handle, enable);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetFixedHeightResizing (IntPtr handle, bool enable);
- /// <summary>
- /// Set whether resizing height is fixed.
- /// </summary>
- private void SetFixedHeightResizing (bool enable)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetFixedHeightResizing (handle, enable);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetResizeBorder (IntPtr handle, ref Urho.IntRect rect);
- /// <summary>
- /// Set resize area width at edges.
- /// </summary>
- private void SetResizeBorder (Urho.IntRect rect)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetResizeBorder (handle, ref rect);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetModal (IntPtr handle, bool modal);
- /// <summary>
- /// Set modal flag. When the modal flag is set, the focused window needs to be dismissed first to allow other UI elements to gain focus.
- /// </summary>
- private void SetModal (bool modal)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetModal (handle, modal);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetModalShadeColor (IntPtr handle, ref Urho.Color color);
- /// <summary>
- /// Set modal shade color.
- /// </summary>
- private void SetModalShadeColor (Urho.Color color)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetModalShadeColor (handle, ref color);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetModalFrameColor (IntPtr handle, ref Urho.Color color);
- /// <summary>
- /// Set modal frame color.
- /// </summary>
- private void SetModalFrameColor (Urho.Color color)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetModalFrameColor (handle, ref color);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetModalFrameSize (IntPtr handle, ref Urho.IntVector2 size);
- /// <summary>
- /// Set modal frame size.
- /// </summary>
- private void SetModalFrameSize (Urho.IntVector2 size)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetModalFrameSize (handle, ref size);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void Window_SetModalAutoDismiss (IntPtr handle, bool enable);
- /// <summary>
- /// Set whether model window can be dismissed with the escape key. Default true.
- /// </summary>
- private void SetModalAutoDismiss (bool enable)
- {
- Runtime.ValidateRefCounted (this);
- Window_SetModalAutoDismiss (handle, enable);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool Window_IsMovable (IntPtr handle);
- /// <summary>
- /// Return whether is movable.
- /// </summary>
- private bool IsMovable ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_IsMovable (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool Window_IsResizable (IntPtr handle);
- /// <summary>
- /// Return whether is resizable.
- /// </summary>
- private bool IsResizable ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_IsResizable (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool Window_GetFixedWidthResizing (IntPtr handle);
- /// <summary>
- /// Return whether is resizing width is fixed.
- /// </summary>
- private bool GetFixedWidthResizing ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_GetFixedWidthResizing (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool Window_GetFixedHeightResizing (IntPtr handle);
- /// <summary>
- /// Return whether is resizing height is fixed.
- /// </summary>
- private bool GetFixedHeightResizing ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_GetFixedHeightResizing (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.IntRect Window_GetResizeBorder (IntPtr handle);
- /// <summary>
- /// Return resize area width at edges.
- /// </summary>
- private Urho.IntRect GetResizeBorder ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_GetResizeBorder (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool Window_IsModal (IntPtr handle);
- /// <summary>
- /// Return modal flag.
- /// </summary>
- private bool IsModal ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_IsModal (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.Color Window_GetModalShadeColor (IntPtr handle);
- /// <summary>
- /// Get modal shade color.
- /// </summary>
- private Urho.Color GetModalShadeColor ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_GetModalShadeColor (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.Color Window_GetModalFrameColor (IntPtr handle);
- /// <summary>
- /// Get modal frame color.
- /// </summary>
- private Urho.Color GetModalFrameColor ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_GetModalFrameColor (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.IntVector2 Window_GetModalFrameSize (IntPtr handle);
- /// <summary>
- /// Get modal frame size.
- /// </summary>
- private Urho.IntVector2 GetModalFrameSize ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_GetModalFrameSize (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool Window_GetModalAutoDismiss (IntPtr handle);
- /// <summary>
- /// Return whether can be dismissed with escape key.
- /// </summary>
- private bool GetModalAutoDismiss ()
- {
- Runtime.ValidateRefCounted (this);
- return Window_GetModalAutoDismiss (handle);
- }
- public override StringHash Type {
- get {
- return UrhoGetType ();
- }
- }
- public override string TypeName {
- get {
- return GetTypeName ();
- }
- }
- [Preserve]
- public new static StringHash TypeStatic {
- get {
- return GetTypeStatic ();
- }
- }
- public new static string TypeNameStatic {
- get {
- return GetTypeNameStatic ();
- }
- }
- /// <summary>
- /// Return whether is movable.
- /// Or
- /// Set whether can be moved.
- /// </summary>
- public bool Movable {
- get {
- return IsMovable ();
- }
- set {
- SetMovable (value);
- }
- }
- /// <summary>
- /// Return whether is resizable.
- /// Or
- /// Set whether can be resized.
- /// </summary>
- public bool Resizable {
- get {
- return IsResizable ();
- }
- set {
- SetResizable (value);
- }
- }
- /// <summary>
- /// Return whether is resizing width is fixed.
- /// Or
- /// Set whether resizing width is fixed.
- /// </summary>
- public bool FixedWidthResizing {
- get {
- return GetFixedWidthResizing ();
- }
- set {
- SetFixedWidthResizing (value);
- }
- }
- /// <summary>
- /// Return whether is resizing height is fixed.
- /// Or
- /// Set whether resizing height is fixed.
- /// </summary>
- public bool FixedHeightResizing {
- get {
- return GetFixedHeightResizing ();
- }
- set {
- SetFixedHeightResizing (value);
- }
- }
- /// <summary>
- /// Return resize area width at edges.
- /// Or
- /// Set resize area width at edges.
- /// </summary>
- public Urho.IntRect ResizeBorder {
- get {
- return GetResizeBorder ();
- }
- set {
- SetResizeBorder (value);
- }
- }
- /// <summary>
- /// Return modal flag.
- /// Or
- /// Set modal flag. When the modal flag is set, the focused window needs to be dismissed first to allow other UI elements to gain focus.
- /// </summary>
- public bool Modal {
- get {
- return IsModal ();
- }
- set {
- SetModal (value);
- }
- }
- /// <summary>
- /// Get modal shade color.
- /// Or
- /// Set modal shade color.
- /// </summary>
- public Urho.Color ModalShadeColor {
- get {
- return GetModalShadeColor ();
- }
- set {
- SetModalShadeColor (value);
- }
- }
- /// <summary>
- /// Get modal frame color.
- /// Or
- /// Set modal frame color.
- /// </summary>
- public Urho.Color ModalFrameColor {
- get {
- return GetModalFrameColor ();
- }
- set {
- SetModalFrameColor (value);
- }
- }
- /// <summary>
- /// Get modal frame size.
- /// Or
- /// Set modal frame size.
- /// </summary>
- public Urho.IntVector2 ModalFrameSize {
- get {
- return GetModalFrameSize ();
- }
- set {
- SetModalFrameSize (value);
- }
- }
- /// <summary>
- /// Return whether can be dismissed with escape key.
- /// Or
- /// Set whether model window can be dismissed with the escape key. Default true.
- /// </summary>
- public bool ModalAutoDismiss {
- get {
- return GetModalAutoDismiss ();
- }
- set {
- SetModalAutoDismiss (value);
- }
- }
- }
- }
|