Vixen
02b45cc4
csharp
public record class ToolbarDropdown

A button that opens a small menu of commands.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

What a snap-value picker, a build-target picker and a camera-speed picker are. The menu is built from the registry through Context, so its lines get their labels, ticks, shortcuts and enablement from the same place every other view does.

Fields and properties (3)

  • public StringId Title

    What the button says when nothing supplies an icon.

  • public string? Icon

    The id of the glyph on it, as All keys it.

  • public string?[] CommandIds

    What is on the menu, with for a separator.

Methods (1)

  • public ToolbarDropdown(StringId Title, string? Icon, params string?[] CommandIds)

    A button that opens a small menu of commands.

Used by (5)

  • ChromeFixtureVixen.Editor.Ui.Tests
  • EditorApplicationVixen.Editor.App
  • ToolbarPresenterVixen.Editor.Ui
  • ToolbarSectionTestsVixen.Editor.Ui.Tests
  • ViewportChromeVixen.Editor.App