// WARNING - AUTOGENERATED - DO NOT EDIT // // Generated using `sharpie urho` // // FileSelector.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 { /// /// %File selector dialog. /// public unsafe partial class FileSelector : UrhoObject { unsafe partial void OnFileSelectorCreated (); [Preserve] public FileSelector (IntPtr handle) : base (handle) { OnFileSelectorCreated (); } [Preserve] protected FileSelector (UrhoObjectFlag emptyFlag) : base (emptyFlag) { OnFileSelectorCreated (); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern int FileSelector_GetType (IntPtr handle); private StringHash UrhoGetType () { Runtime.ValidateRefCounted (this); return new StringHash (FileSelector_GetType (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetTypeName (IntPtr handle); private string GetTypeName () { Runtime.ValidateRefCounted (this); return Marshal.PtrToStringAnsi (FileSelector_GetTypeName (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern int FileSelector_GetTypeStatic (); private static StringHash GetTypeStatic () { Runtime.Validate (typeof(FileSelector)); return new StringHash (FileSelector_GetTypeStatic ()); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetTypeNameStatic (); private static string GetTypeNameStatic () { Runtime.Validate (typeof(FileSelector)); return Marshal.PtrToStringAnsi (FileSelector_GetTypeNameStatic ()); } [Preserve] public FileSelector () : this (Application.CurrentContext) { } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_FileSelector (IntPtr context); [Preserve] public FileSelector (Context context) : base (UrhoObjectFlag.Empty) { Runtime.Validate (typeof(FileSelector)); handle = FileSelector_FileSelector ((object)context == null ? IntPtr.Zero : context.Handle); Runtime.RegisterObject (this); OnFileSelectorCreated (); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void FileSelector_RegisterObject (IntPtr context); /// /// Register object factory. /// public static void RegisterObject (Context context) { Runtime.Validate (typeof(FileSelector)); FileSelector_RegisterObject ((object)context == null ? IntPtr.Zero : context.Handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void FileSelector_SetDefaultStyle (IntPtr handle, IntPtr style); /// /// Set fileselector UI style. /// private void SetDefaultStyle (Urho.Resources.XmlFile style) { Runtime.ValidateRefCounted (this); FileSelector_SetDefaultStyle (handle, (object)style == null ? IntPtr.Zero : style.Handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void FileSelector_SetTitle (IntPtr handle, string text); /// /// Set title text. /// private void SetTitle (string text) { Runtime.ValidateRefCounted (this); FileSelector_SetTitle (handle, text); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void FileSelector_SetButtonTexts (IntPtr handle, string okText, string cancelText); /// /// Set button texts. /// public void SetButtonTexts (string okText, string cancelText) { Runtime.ValidateRefCounted (this); FileSelector_SetButtonTexts (handle, okText, cancelText); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void FileSelector_SetPath (IntPtr handle, string path); /// /// Set current path. /// private void SetPath (string path) { Runtime.ValidateRefCounted (this); FileSelector_SetPath (handle, path); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void FileSelector_SetFileName (IntPtr handle, string fileName); /// /// Set current filename. /// private void SetFileName (string fileName) { Runtime.ValidateRefCounted (this); FileSelector_SetFileName (handle, fileName); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void FileSelector_SetDirectoryMode (IntPtr handle, bool enable); /// /// Set directory selection mode. Default false. /// private void SetDirectoryMode (bool enable) { Runtime.ValidateRefCounted (this); FileSelector_SetDirectoryMode (handle, enable); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern void FileSelector_UpdateElements (IntPtr handle); /// /// Update elements to layout properly. Call this after manually adjusting the sub-elements. /// public void UpdateElements () { Runtime.ValidateRefCounted (this); FileSelector_UpdateElements (handle); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetDefaultStyle (IntPtr handle); /// /// Return the UI style file. /// private Urho.Resources.XmlFile GetDefaultStyle () { Runtime.ValidateRefCounted (this); return Runtime.LookupObject (FileSelector_GetDefaultStyle (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetWindow (IntPtr handle); /// /// Return fileselector window. /// private Window GetWindow () { Runtime.ValidateRefCounted (this); return Runtime.LookupObject (FileSelector_GetWindow (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetTitleText (IntPtr handle); /// /// Return window title text element. /// private Text GetTitleText () { Runtime.ValidateRefCounted (this); return Runtime.LookupObject (FileSelector_GetTitleText (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetFileList (IntPtr handle); /// /// Return file list. /// private ListView GetFileList () { Runtime.ValidateRefCounted (this); return Runtime.LookupObject (FileSelector_GetFileList (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetPathEdit (IntPtr handle); /// /// Return path editor. /// private LineEdit GetPathEdit () { Runtime.ValidateRefCounted (this); return Runtime.LookupObject (FileSelector_GetPathEdit (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetFileNameEdit (IntPtr handle); /// /// Return filename editor. /// private LineEdit GetFileNameEdit () { Runtime.ValidateRefCounted (this); return Runtime.LookupObject (FileSelector_GetFileNameEdit (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetFilterList (IntPtr handle); /// /// Return filter dropdown. /// private DropDownList GetFilterList () { Runtime.ValidateRefCounted (this); return Runtime.LookupObject (FileSelector_GetFilterList (handle)); } [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)] internal static extern IntPtr FileSelector_GetOKButton (IntPtr handle); /// /// Return OK button. /// private Button GetOKButton () { Runtime.ValidateRefCounted (this); return Runtime.LookupObject