[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_SetScreenOffMode")]
+ public static extern bool SetScreenOffMode(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_GetScreenOffMode")]
+ public static extern int GetScreenOffMode(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);
/// <summary>
/// An enum of screen mode.
/// </summary>
- public enum ScreenMode {
+ public enum ScreenOffMode {
/// <summary>
/// The mode which turns the screen off after a timeout.
/// </summary>
- Default,
+ Timout,
/// <summary>
/// The mode which keeps the screen turned on.
/// </summary>
- AlwaysOn
+ Never
}
/// <summary>
}
/// <summary>
- /// Sets a window's screen mode.
+ /// Sets a window's screen off mode.
/// </summary>
- /// <param name="screenMode">The screen mode.</param>
+ /// <param name="screenOffMode">The screen mode.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool SetScreenMode(ScreenMode screenMode) {
- bool ret = NDalicPINVOKE.SetScreenMode(swigCPtr, (int)screenMode);
+ public bool SetScreenOffMode(ScreenOffMode screenOffMode) {
+ bool ret = NDalicPINVOKE.SetScreenOffMode(swigCPtr, (int)screenOffMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
- /// Gets a screen mode of the window.
+ /// Gets a screen off mode of the window.
/// </summary>
- /// <returns>The screen mode.</returns>
- public ScreenMode GetScreenMode() {
- ScreenMode ret = (ScreenMode)NDalicPINVOKE.GetScreenMode(swigCPtr);
+ /// <returns>The screen off mode.</returns>
+ public ScreenOffMode GetScreenOffMode() {
+ ScreenOffMode ret = (ScreenOffMode)NDalicPINVOKE.GetScreenOffMode(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}