| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441 |
- // WARNING - AUTOGENERATED - DO NOT EDIT
- //
- // Generated using `sharpie urho`
- //
- // BorderImage.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>
- /// %Image %UI element with optional border.
- /// </summary>
- public unsafe partial class BorderImage : UIElement
- {
- unsafe partial void OnBorderImageCreated ();
- [Preserve]
- public BorderImage (IntPtr handle) : base (handle)
- {
- OnBorderImageCreated ();
- }
- [Preserve]
- protected BorderImage (UrhoObjectFlag emptyFlag) : base (emptyFlag)
- {
- OnBorderImageCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern int BorderImage_GetType (IntPtr handle);
- private StringHash UrhoGetType ()
- {
- Runtime.ValidateRefCounted (this);
- return new StringHash (BorderImage_GetType (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr BorderImage_GetTypeName (IntPtr handle);
- private string GetTypeName ()
- {
- Runtime.ValidateRefCounted (this);
- return Marshal.PtrToStringAnsi (BorderImage_GetTypeName (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern int BorderImage_GetTypeStatic ();
- private static StringHash GetTypeStatic ()
- {
- Runtime.Validate (typeof(BorderImage));
- return new StringHash (BorderImage_GetTypeStatic ());
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr BorderImage_GetTypeNameStatic ();
- private static string GetTypeNameStatic ()
- {
- Runtime.Validate (typeof(BorderImage));
- return Marshal.PtrToStringAnsi (BorderImage_GetTypeNameStatic ());
- }
- [Preserve]
- public BorderImage () : this (Application.CurrentContext)
- {
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr BorderImage_BorderImage (IntPtr context);
- [Preserve]
- public BorderImage (Context context) : base (UrhoObjectFlag.Empty)
- {
- Runtime.Validate (typeof(BorderImage));
- handle = BorderImage_BorderImage ((object)context == null ? IntPtr.Zero : context.Handle);
- Runtime.RegisterObject (this);
- OnBorderImageCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_RegisterObject (IntPtr context);
- /// <summary>
- /// Register object factory.
- /// </summary>
- public new static void RegisterObject (Context context)
- {
- Runtime.Validate (typeof(BorderImage));
- BorderImage_RegisterObject ((object)context == null ? IntPtr.Zero : context.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_SetTexture (IntPtr handle, IntPtr texture);
- /// <summary>
- /// Set texture.
- /// </summary>
- private void SetTexture (Texture texture)
- {
- Runtime.ValidateRefCounted (this);
- BorderImage_SetTexture (handle, (object)texture == null ? IntPtr.Zero : texture.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_SetImageRect (IntPtr handle, ref Urho.IntRect rect);
- /// <summary>
- /// Set part of texture to use as the image.
- /// </summary>
- private void SetImageRect (Urho.IntRect rect)
- {
- Runtime.ValidateRefCounted (this);
- BorderImage_SetImageRect (handle, ref rect);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_SetFullImageRect (IntPtr handle);
- /// <summary>
- /// Use whole texture as the image.
- /// </summary>
- public void SetFullImageRect ()
- {
- Runtime.ValidateRefCounted (this);
- BorderImage_SetFullImageRect (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_SetBorder (IntPtr handle, ref Urho.IntRect rect);
- /// <summary>
- /// Set border dimensions on the screen.
- /// </summary>
- private void SetBorder (Urho.IntRect rect)
- {
- Runtime.ValidateRefCounted (this);
- BorderImage_SetBorder (handle, ref rect);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_SetImageBorder (IntPtr handle, ref Urho.IntRect rect);
- /// <summary>
- /// Set border dimensions on the image. If zero (default) uses the screen dimensions, resulting in pixel-perfect borders.
- /// </summary>
- private void SetImageBorder (Urho.IntRect rect)
- {
- Runtime.ValidateRefCounted (this);
- BorderImage_SetImageBorder (handle, ref rect);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_SetHoverOffset (IntPtr handle, ref Urho.IntVector2 offset);
- /// <summary>
- /// Set offset to image rectangle used on hover.
- /// </summary>
- private void SetHoverOffset (Urho.IntVector2 offset)
- {
- Runtime.ValidateRefCounted (this);
- BorderImage_SetHoverOffset (handle, ref offset);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_SetHoverOffset0 (IntPtr handle, int x, int y);
- /// <summary>
- /// Set offset to image rectangle used on hover.
- /// </summary>
- public void SetHoverOffset (int x, int y)
- {
- Runtime.ValidateRefCounted (this);
- BorderImage_SetHoverOffset0 (handle, x, y);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_SetBlendMode (IntPtr handle, BlendMode mode);
- /// <summary>
- /// Set blend mode.
- /// </summary>
- private void SetBlendMode (BlendMode mode)
- {
- Runtime.ValidateRefCounted (this);
- BorderImage_SetBlendMode (handle, mode);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void BorderImage_SetTiled (IntPtr handle, bool enable);
- /// <summary>
- /// Set tiled mode.
- /// </summary>
- private void SetTiled (bool enable)
- {
- Runtime.ValidateRefCounted (this);
- BorderImage_SetTiled (handle, enable);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr BorderImage_GetTexture (IntPtr handle);
- /// <summary>
- /// Return texture.
- /// </summary>
- private Texture GetTexture ()
- {
- Runtime.ValidateRefCounted (this);
- return Runtime.LookupObject<Texture> (BorderImage_GetTexture (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.IntRect BorderImage_GetImageRect (IntPtr handle);
- /// <summary>
- /// Return image rectangle.
- /// </summary>
- private Urho.IntRect GetImageRect ()
- {
- Runtime.ValidateRefCounted (this);
- return BorderImage_GetImageRect (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.IntRect BorderImage_GetBorder (IntPtr handle);
- /// <summary>
- /// Return border screen dimensions.
- /// </summary>
- private Urho.IntRect GetBorder ()
- {
- Runtime.ValidateRefCounted (this);
- return BorderImage_GetBorder (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.IntRect BorderImage_GetImageBorder (IntPtr handle);
- /// <summary>
- /// Return border image dimensions. Zero rect uses border screen dimensions.
- /// </summary>
- private Urho.IntRect GetImageBorder ()
- {
- Runtime.ValidateRefCounted (this);
- return BorderImage_GetImageBorder (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.IntVector2 BorderImage_GetHoverOffset (IntPtr handle);
- /// <summary>
- /// Return offset to image rectangle used on hover.
- /// </summary>
- private Urho.IntVector2 GetHoverOffset ()
- {
- Runtime.ValidateRefCounted (this);
- return BorderImage_GetHoverOffset (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern BlendMode BorderImage_GetBlendMode (IntPtr handle);
- /// <summary>
- /// Return blend mode.
- /// </summary>
- private BlendMode GetBlendMode ()
- {
- Runtime.ValidateRefCounted (this);
- return BorderImage_GetBlendMode (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool BorderImage_IsTiled (IntPtr handle);
- /// <summary>
- /// Return whether is tiled.
- /// </summary>
- private bool IsTiled ()
- {
- Runtime.ValidateRefCounted (this);
- return BorderImage_IsTiled (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern ResourceRef BorderImage_GetTextureAttr (IntPtr handle);
- /// <summary>
- /// Return texture attribute.
- /// </summary>
- private ResourceRef GetTextureAttr ()
- {
- Runtime.ValidateRefCounted (this);
- return BorderImage_GetTextureAttr (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 texture.
- /// Or
- /// Set texture.
- /// </summary>
- public Texture Texture {
- get {
- return GetTexture ();
- }
- set {
- SetTexture (value);
- }
- }
- /// <summary>
- /// Return image rectangle.
- /// Or
- /// Set part of texture to use as the image.
- /// </summary>
- public Urho.IntRect ImageRect {
- get {
- return GetImageRect ();
- }
- set {
- SetImageRect (value);
- }
- }
- /// <summary>
- /// Return border screen dimensions.
- /// Or
- /// Set border dimensions on the screen.
- /// </summary>
- public Urho.IntRect Border {
- get {
- return GetBorder ();
- }
- set {
- SetBorder (value);
- }
- }
- /// <summary>
- /// Return border image dimensions. Zero rect uses border screen dimensions.
- /// Or
- /// Set border dimensions on the image. If zero (default) uses the screen dimensions, resulting in pixel-perfect borders.
- /// </summary>
- public Urho.IntRect ImageBorder {
- get {
- return GetImageBorder ();
- }
- set {
- SetImageBorder (value);
- }
- }
- /// <summary>
- /// Return offset to image rectangle used on hover.
- /// Or
- /// Set offset to image rectangle used on hover.
- /// </summary>
- public Urho.IntVector2 HoverOffset {
- get {
- return GetHoverOffset ();
- }
- set {
- SetHoverOffset (value);
- }
- }
- /// <summary>
- /// Return blend mode.
- /// Or
- /// Set blend mode.
- /// </summary>
- public BlendMode BlendMode {
- get {
- return GetBlendMode ();
- }
- set {
- SetBlendMode (value);
- }
- }
- /// <summary>
- /// Return whether is tiled.
- /// Or
- /// Set tiled mode.
- /// </summary>
- public bool Tiled {
- get {
- return IsTiled ();
- }
- set {
- SetTiled (value);
- }
- }
- /// <summary>
- /// Return texture attribute.
- /// </summary>
- public ResourceRef TextureAttr {
- get {
- return GetTextureAttr ();
- }
- }
- }
- }
|