namespace ElmSharp
{
/// <summary>
+ /// Focus Autoscroll Mode
+ /// </summary>
+ public enum FocusAutoScrollMode
+ {
+ /// <summary>
+ /// Directly show the focused region or item automatically
+ /// </summary>
+ Show,
+ /// <summary>
+ /// Do not show the focused region or item automatically
+ /// </summary>
+ None,
+ /// <summary>
+ /// Bring in the focused region or item automatically which might invole the scrolling
+ /// </summary>
+ BringIn
+ }
+
+ /// <summary>
/// The Elementary is a General Elementary,a VERY SIMPLE toolkit.
/// </summary>
public static class Elementary
}
/// <summary>
+ /// Gets of sets focus auto scroll mode.
+ /// </summary>
+ public static FocusAutoScrollMode FocusAutoScrollMode
+ {
+ get
+ {
+ return (FocusAutoScrollMode)Interop.Elementary.elm_config_focus_autoscroll_mode_get();
+ }
+ set
+ {
+ Interop.Elementary.elm_config_focus_autoscroll_mode_set((Interop.Elementary.Elm_Focus_Autoscroll_Mode)value);
+ }
+ }
+
+ /// <summary>
/// Initializes Elementary.
/// </summary>
public static void Initialize()
Interop.Elementary.elm_run();
}
- /// <summary>
- /// Prepends a theme overlay to the list of overlays.
- /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static void ThemeOverlay()
{
Interop.Elementary.elm_theme_extension_del(IntPtr.Zero, item);
}
- /// <summary>
- /// Gets the amount of inertia a scroller imposes during region bring animations.
- /// </summary>
- /// <returns>The bring in scroll friction</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static double GetSystemScrollFriction()
{
return BringInScrollFriction;
}
- /// <summary>
- /// Sets the amount of inertia a scroller imposes during region bring animations.
- /// </summary>
- /// <param name="timeSet">The bring in scroll friction</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetSystemScrollFriction(double timeSet)
{
BringInScrollFriction = timeSet;
}
- /// <summary>
- /// Gets Elementary's profile in use.
- /// </summary>
- /// <returns>The profile name</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static string GetProfile()
{
return Interop.Elementary.elm_config_profile_get();
}
- /// <summary>
- /// Sets the global scaling factor.
- /// This sets the globally configured scaling factor that is applied to all objects.
- /// </summary>
- /// <param name="scale">The scaling factor to set</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetScale(double scale)
{
Scale = scale;
}
- /// <summary>
- /// Gets the global scaling factor.
- /// This gets the globally configured scaling factor that is applied to all objects.
- /// </summary>
- /// <returns>The scaling factor</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static double GetScale()
{
return Interop.Elementary.elm_policy_set(policy, value);
}
- /// <summary>
- /// Reloads Elementary's configuration, bounded to the current selected profile.
- /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
public static void ReloadConfig()
{
Interop.Elementary.elm_config_reload();
Interop.Elementary.elm_config_all_flush();
}
}
-}
\ No newline at end of file
+}