DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
DekiEditor::Motion::RowHover Struct Reference

List rows that ImGui draws (tree nodes, selectables) with a fading highlight. More...

#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/Motion.h>

Public Member Functions

void BeginFrame ()
bool WasHovered (ImGuiID id) const
void Track (ImGuiID id)

Public Attributes

ImGuiID last = 0
ImGuiID next = 0

Detailed Description

List rows that ImGui draws (tree nodes, selectables) with a fading highlight.

ImGui only says a row is hovered after it is submitted, but its colours must be pushed before, so a panel keeps one RowHover: BeginFrame() once per frame, WasHovered(id) before each row, Track(id) right after it. A row the mouse enters therefore starts from nothing and fades up.

Member Function Documentation

◆ BeginFrame()

void DekiEditor::Motion::RowHover::BeginFrame ( )
inline

◆ WasHovered()

bool DekiEditor::Motion::RowHover::WasHovered ( ImGuiID id) const
inline

◆ Track()

void DekiEditor::Motion::RowHover::Track ( ImGuiID id)
inline

Member Data Documentation

◆ last

ImGuiID DekiEditor::Motion::RowHover::last = 0

◆ next

ImGuiID DekiEditor::Motion::RowHover::next = 0

The documentation for this struct was generated from the following file:
  • deki-editor/include/deki-editor/Motion.h