DevToys logo DevToys
  • Home
  • Blog
  • Documentation
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface IUISetting

    A component that represents a setting, with a title, description, icon and IUIElement for the option value.

    Inherited Members
    IUITitledElement.Title
    IUITitledElement.TitleChanged
    IUIElementWithChildren.GetChildElementById(string)
    IUIElement.Id
    IUIElement.IsVisible
    IUIElement.IsEnabled
    IUIElement.HorizontalAlignment
    IUIElement.VerticalAlignment
    IUIElement.IsVisibleChanged
    IUIElement.IsEnabledChanged
    IUIElement.HorizontalAlignmentChanged
    IUIElement.VerticalAlignmentChanged
    Namespace: DevToys.Api
    Assembly: DevToys.Api.dll
    Syntax
    public interface IUISetting : IUITitledElementWithChildren, IUITitledElement, IUIElementWithChildren, IUIElement

    Properties

    Description

    Gets the description of the setting.

    Declaration
    string? Description { get; }
    Property Value
    Type Description
    string

    Icon

    Gets the icon of the setting.

    Declaration
    IUIIcon? Icon { get; }
    Property Value
    Type Description
    IUIIcon

    InteractiveElement

    Gets the IUIElement that represents the interactive part of the setting.

    Declaration
    IUIElement? InteractiveElement { get; }
    Property Value
    Type Description
    IUIElement

    StateDescription

    Gets the description of the state of the setting.

    Declaration
    string? StateDescription { get; }
    Property Value
    Type Description
    string

    Events

    DescriptionChanged

    Raised when Description is changed.

    Declaration
    event EventHandler? DescriptionChanged
    Event Type
    Type Description
    EventHandler

    IconChanged

    Raised when Icon is changed.

    Declaration
    event EventHandler? IconChanged
    Event Type
    Type Description
    EventHandler

    InteractiveElementChanged

    Raised when InteractiveElement is changed.

    Declaration
    event EventHandler? InteractiveElementChanged
    Event Type
    Type Description
    EventHandler

    StateDescriptionChanged

    Raised when StateDescription is changed.

    Declaration
    event EventHandler? StateDescriptionChanged
    Event Type
    Type Description
    EventHandler

    Extension Methods

    GUI.AlignHorizontally<T>(T, UIHorizontalAlignment)
    GUI.AlignVertically<T>(T, UIVerticalAlignment)
    GUI.Description(IUISetting, string?)
    GUI.Disable<T>(T)
    GUI.Enable<T>(T)
    GUI.Handle(IUISetting, ISettingsProvider, SettingDefinition<bool>, Action<bool>)
    GUI.Handle(IUISetting, ISettingsProvider, SettingDefinition<bool>, Func<bool, ValueTask>?)
    GUI.Handle(IUISetting, ISettingsProvider, SettingDefinition<bool>, string?, string?, Action<bool>?)
    GUI.Handle(IUISetting, ISettingsProvider, SettingDefinition<bool>, string?, string?, Func<bool, ValueTask>?)
    GUI.Handle<T>(IUISetting, ISettingsProvider, SettingDefinition<T>, Action<T>?, params IUIDropDownListItem[])
    GUI.Handle<T>(IUISetting, ISettingsProvider, SettingDefinition<T>, Func<T, ValueTask>?, params IUIDropDownListItem[])
    GUI.Hide<T>(T)
    GUI.Icon(IUISetting, string, char)
    GUI.InteractiveElement(IUISetting, IUIElement?)
    GUI.Show<T>(T)
    GUI.StateDescription(IUISetting, string?)
    GUI.Title<T>(T, string?)
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys