OverrideExclusive = 2048,
}
+ /// <summary>
+ /// Indicator mode.
+ /// </summary>
+ public enum IndicatorMode
+ {
+ /// <summary>
+ /// Unknown indicator state.
+ /// </summary>
+ Unknown = 0,
+ /// <summary>
+ /// Hides the indicator.
+ /// </summary>
+ Hide,
+ /// <summary>
+ /// Shows the indicator.
+ /// </summary>
+ Show,
+ };
+
/// <summary>
/// The Window is container that contain the graphical user interface of a program.
/// </summary>
{
Name = name;
Realize(parent);
- Interop.Elementary.elm_win_indicator_mode_set(Handle, 2 /* ELM_WIN_INDICATOR_SHOW */);
+ IndicatorMode = IndicatorMode.Show;
_deleteRequest = new SmartEvent(this, "delete,request");
_rotationChanged = new SmartEvent(this, "wm,rotation,changed");
}
}
+ /// <summary>
+ /// Gets or sets the window's indicator mode.
+ /// </summary>
+ /// <value>The indicator mode.</value>
+ public IndicatorMode IndicatorMode
+ {
+ get
+ {
+ return Interop.Elementary.elm_win_indicator_mode_get(RealHandle);
+ }
+ set
+ {
+ Interop.Elementary.elm_win_indicator_mode_set(RealHandle, value);
+ }
+ }
+
/// <summary>
/// This function sends a request to the Windows Manager to activate the Window.
/// If honored by the WM, the window receives the keyboard focus.
internal static extern int elm_win_indicator_opacity_get(IntPtr obj);
[DllImport(Libraries.Elementary)]
- internal static extern void elm_win_indicator_mode_set(IntPtr obj, int mode);
+ internal static extern void elm_win_indicator_mode_set(IntPtr obj, IndicatorMode mode);
[DllImport(Libraries.Elementary)]
- internal static extern int elm_win_indicator_mode_get(IntPtr obj);
+ internal static extern IndicatorMode elm_win_indicator_mode_get(IntPtr obj);
[DllImport(Libraries.Elementary)]
internal static extern void elm_win_conformant_set(IntPtr obj, bool conformant);