StatusIndicator
Application status indicator (aka notification area icon). Note: Status indicator is implemented on macOS and Windows.
Application status indicator (aka notification area icon). Note: Status indicator is implemented on macOS and Windows.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
StatusIndicatorConstructor
public StatusIndicator();Properties4
IconProperty
public Texture2D Icon { get; set; }Status indicator icon.
MenuProperty
public EntityPath Menu { get; set; }Status indicator native popup menu. If this is set, the StatusIndicator.Pressed signal is not emitted.
Note: Native popup is only supported if NativeMenu supports NativeMenu.Feature.PopupMenu feature.
TooltipProperty
public string Tooltip { get; set; }Status indicator tooltip.
VisibleProperty
public bool Visible { get; set; }If true, the status indicator is visible.
Methods9
GetIconTexture2D
public Texture2D GetIcon();Returns
Texture2DGetMenuEntityPath
public EntityPath GetMenu();Returns
EntityPathGetRectRect2
GetTooltipstring
public string GetTooltip();Returns
stringIsVisiblebool
public bool IsVisible();Returns
boolSetIconvoid
public void SetIcon(Texture2D texture);| Name | Type | Default |
|---|---|---|
texture | Texture2D | — |
SetMenuvoid
public void SetMenu(EntityPath menu);| Name | Type | Default |
|---|---|---|
menu | EntityPath | — |
SetTooltipvoid
public void SetTooltip(string tooltip);| Name | Type | Default |
|---|---|---|
tooltip | string | — |
SetVisiblevoid
public void SetVisible(bool visible);| Name | Type | Default |
|---|---|---|
visible | bool | — |
Signals and events1
PressedEvent
public event StatusIndicator.PressedEventHandler Pressed;Emitted when the status indicator is pressed.
| Name | Type | Default |
|---|---|---|
mouseButton | long | — |
mousePosition | Vector2I | — |
Reckfell Engine documentationBack to top ↑