Api Editor Option
class

Option

public class Option : QObject

Constructors

Option(QObject parent, String title, String icon, Action action)
Option(QObject parent, String title, Pixmap icon, Action action)
Option(String title, String icon, Action action)

Properties

Name Type Description
Text String Text for this option.
IconText String Text to display if Text is empty.
Checkable Boolean Whether this option is a toggle option. Checked.
Checked Boolean Whether this option is toggled/checked. Checkable.
Tooltip String
ToolTip String
StatusText String
StatusTip String
Enabled Boolean Whether this option can be clicked. Will also be visually different.
Shortcut String
ShortcutName String
Icon String The icon for this option.
IconImage Pixmap The icon for this option.

Methods

Void SetIcon(Pixmap pixmap)

Sets an icon for the option via a raw image.

Fields

Name Type Description
Triggered Action
Toggled Action<Boolean>
FetchCheckedState Func<Boolean> A method to get the checked state. Called periodically to update the status
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.Option