Jazz2::Editor::EventGrid class

Events to choose from, as a grid of their pictures and names.

Public static variables

static std::int32_t AllCategories constexpr
Category shown when all categories are.

Constructors, destructors, conversion operators

EventGrid(IEditorContext& session) explicit

Public functions

void SetFilter(std::int32_t category, StringView search)
Shows only events of a category, or of all of them, and those with a text in their name.
auto GetCategory() const -> std::int32_t
Returns the category shown.
auto GetSearch() const -> StringView
Returns the text searched for.
void Update(float timeMult) override
auto Measure(const Context& context, Vector2f available) -> Vector2f override
void Draw(Painter& painter) override
auto AcceptsPointer() const -> bool override
auto OnPointerDown(const PointerEvent& event) -> bool override
void OnPointerUp(const PointerEvent& event, bool inside) override
void OnPointerCancel() override
auto YieldsToScroll() const -> bool override
An event is only clicked, so a finger dragged over the events scrolls them.
auto GetTooltip(Vector2f pos) const -> StringView override