[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_IsVisible")]
public static extern bool IsVisible(global::System.Runtime.InteropServices.HandleRef jarg1);
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetSupportedAuxiliaryHintCount")]
+ public static extern uint GetSupportedAuxiliaryHintCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetSupportedAuxiliaryHint")]
+ public static extern string GetSupportedAuxiliaryHint(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_AddAuxiliaryHint")]
+ public static extern uint AddAuxiliaryHint(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_RemoveAuxiliaryHint")]
+ public static extern bool RemoveAuxiliaryHint(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetAuxiliaryHintValue")]
+ public static extern bool SetAuxiliaryHintValue(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetAuxiliaryHintValue")]
+ public static extern string GetAuxiliaryHintValue(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetAuxiliaryHintId")]
+ public static extern uint GetAuxiliaryHintId(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetInputRegion")]
+ public static extern void SetInputRegion(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetType")]
+ public static extern void SetType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetType")]
+ public static extern int GetType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetNotificationLevel")]
+ public static extern bool SetNotificationLevel(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetNotificationLevel")]
+ public static extern int GetNotificationLevel(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetOpaqueState")]
+ public static extern void SetOpaqueState(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_IsOpaqueState")]
+ public static extern bool IsOpaqueState(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetScreenMode")]
+ public static extern bool SetScreenMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetScreenMode")]
+ public static extern int GetScreenMode(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetBrightness")]
+ public static extern bool SetBrightness(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetBrightness")]
+ public static extern int GetBrightness(global::System.Runtime.InteropServices.HandleRef jarg1);
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Application_New__SWIG_0")]
public static extern global::System.IntPtr Application_New__SWIG_0();
}
}
}
+
+ /// <summary>
+ /// Auto scrolling stop behaviour.
+ /// </summary>
+ public enum AutoScrollStopMode
+ {
+ /// <summary>
+ /// Stop animation after current loop finished.
+ /// </summary>
+ FinishLoop,
+ /// <summary>
+ /// Stop animation immediatly and reset position.
+ /// </summary>
+ Immediate
+ }
+
+ /// <summary>
+ /// An enum of screen mode.
+ /// </summary>
+ public enum ScreenModeType {
+ /// <summary>
+ /// The mode which turns the screen off after a timeout.
+ /// </summary>
+ Default,
+ /// <summary>
+ /// The mode which keeps the screen turned on.
+ /// </summary>
+ AlwaysOn
+ }
+
+ /// <summary>
+ /// An enum of notification window's priority level.
+ /// </summary>
+ public enum NotificationLevelType {
+ /// <summary>
+ /// No notification level.<br>
+ /// Default level.<br>
+ /// This value makes the notification window place in the layer of the normal window.
+ /// </summary>
+ None = -1,
+ /// <summary>
+ /// Base nofitication level.
+ /// </summary>
+ Base = 10,
+ /// <summary>
+ /// Medium notification level than base.
+ /// </summary>
+ Medium = 20,
+ /// <summary>
+ /// Higher notification level than medium.
+ /// </summary>
+ High = 30,
+ /// <summary>
+ /// The highest notification level.
+ /// </summary>
+ Top = 40
+ }
+
+ /// <summary>
+ /// An enum of Window types.
+ /// </summary>
+ public enum WindowType {
+ /// <summary>
+ /// A default window type.<br>
+ /// Indicates a normal, top-level window.
+ /// Almost every window will be created with this type.
+ /// </summary>
+ Normal,
+ /// <summary>
+ /// A notification window, like a warning about battery life or a new E-Mail received.
+ /// </summary>
+ Notification,
+ /// <summary>
+ /// A persistent utility window, like a toolbox or palette.
+ /// </summary>
+ Utility,
+ /// <summary>
+ /// Used for simple dialog windows.
+ /// </summary>
+ Dialog
+ }
}
\ No newline at end of file
return temp;
}
+ /// <summary>
+ /// Gets the count of supported auxiliary hints of the window.
+ /// </summary>
+ /// <returns>The number of supported auxiliary hints.</returns>
+ public uint GetSupportedAuxiliaryHintCount() {
+ uint ret = NDalicPINVOKE.GetSupportedAuxiliaryHintCount(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets the supported auxiliary hint string of the window.
+ /// </summary>
+ /// <param name="index">The index of the supported auxiliary hint lists.</param>
+ /// <returns>The auxiliary hint string of the index.</returns>
+ public string GetSupportedAuxiliaryHint(uint index) {
+ string ret = NDalicPINVOKE.GetSupportedAuxiliaryHint(swigCPtr, index);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Creates an auxiliary hint of the window.
+ /// </summary>
+ /// <param name="hint">The auxiliary hint string.</param>
+ /// <param name="value">The value string.</param>
+ /// <returns>The ID of created auxiliary hint, or 0 on failure.</returns>
+ public uint AddAuxiliaryHint(string hint, string value) {
+ uint ret = NDalicPINVOKE.AddAuxiliaryHint(swigCPtr, hint, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Removes an auxiliary hint of the window.
+ /// </summary>
+ /// <param name="id">The ID of the auxiliary hint.</param>
+ /// <returns>True if no error occurred, false otherwise.</returns>
+ public bool RemoveAuxiliaryHint(uint id) {
+ bool ret = NDalicPINVOKE.RemoveAuxiliaryHint(swigCPtr, id);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Changes a value of the auxiliary hint.
+ /// </summary>
+ /// <param name="id">The auxiliary hint ID.</param>
+ /// <param name="value">The value string to be set.</param>
+ /// <returns>True if no error occurred, false otherwise.</returns>
+ public bool SetAuxiliaryHintValue(uint id, string value) {
+ bool ret = NDalicPINVOKE.SetAuxiliaryHintValue(swigCPtr, id, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets a value of the auxiliary hint.
+ /// </summary>
+ /// <param name="id">The auxiliary hint ID.</param>
+ /// <returns>The string value of the auxiliary hint ID, or an empty string if none exists.</returns>
+ public string GetAuxiliaryHintValue(uint id) {
+ string ret = NDalicPINVOKE.GetAuxiliaryHintValue(swigCPtr, id);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets an ID of the auxiliary hint string.
+ /// </summary>
+ /// <param name="hint">The auxiliary hint string.</param>
+ /// <returns>The ID of auxiliary hint string, or 0 on failure.</returns>
+ public uint GetAuxiliaryHintId(string hint) {
+ uint ret = NDalicPINVOKE.GetAuxiliaryHintId(swigCPtr, hint);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets a region to accept input events.
+ /// </summary>
+ /// <param name="inputRegion">The region to accept input events.</param>
+ public void SetInputRegion(Rectangle inputRegion) {
+ NDalicPINVOKE.SetInputRegion(swigCPtr, Rectangle.getCPtr(inputRegion));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets/Sets a window type.
+ /// </summary>
+ public WindowType Type
+ {
+ get
+ {
+ WindowType ret = (WindowType)NDalicPINVOKE.GetType(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ set
+ {
+ NDalicPINVOKE.SetType(swigCPtr, (int)value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ }
+
+ /// <summary>
+ /// Sets a priority level for the specified notification window.
+ /// </summary>
+ /// <param name="level">The notification window level.</param>
+ /// <returns>True if no error occurred, false otherwise.</returns>
+ public bool SetNotificationLevel(NotificationLevelType level) {
+ bool ret = NDalicPINVOKE.SetNotificationLevel(swigCPtr, (int)level);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets a priority level for the specified notification window.
+ /// </summary>
+ /// <returns>The notification window level.</returns>
+ public NotificationLevelType GetNotificationLevel() {
+ NotificationLevelType ret = (NotificationLevelType)NDalicPINVOKE.GetNotificationLevel(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets a transparent window's visual state to opaque.
+ /// </summary>
+ /// <param name="opaque">Whether the window's visual state is opaque.</param>
+ public void SetOpaqueState(bool opaque) {
+ NDalicPINVOKE.SetOpaqueState(swigCPtr, opaque);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Returns whether a transparent window's visual state is opaque or not.
+ /// </summary>
+ /// <returns>True if the window's visual state is opaque, false otherwise.</returns>
+ public bool IsOpaqueState() {
+ bool ret = NDalicPINVOKE.IsOpaqueState(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets a window's screen mode.
+ /// </summary>
+ /// <param name="screenMode">The screen mode.</param>
+ /// <returns>True if no error occurred, false otherwise.</returns>
+ public bool SetScreenMode(ScreenModeType screenMode) {
+ bool ret = NDalicPINVOKE.SetScreenMode(swigCPtr, (int)screenMode);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets a screen mode of the window.
+ /// </summary>
+ /// <returns>The screen mode.</returns>
+ public ScreenModeType GetScreenMode() {
+ ScreenModeType ret = (ScreenModeType)NDalicPINVOKE.GetScreenMode(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets preferred brightness of the window.
+ /// </summary>
+ /// <param name="brightness">The preferred brightness (0 to 100).</param>
+ /// <returns>True if no error occurred, false otherwise.</returns>
+ public bool SetBrightness(int brightness) {
+ bool ret = NDalicPINVOKE.SetBrightness(swigCPtr, brightness);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets preffered brightness of the window.
+ /// </summary>
+ /// <returns>The preffered brightness.</returns>
+ public int GetBrightness() {
+ int ret = NDalicPINVOKE.GetBrightness(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
public class WindowFocusChangedEventArgs : EventArgs
{
public bool FocusGained