Skip to content

Commit

Permalink
add dynamic menu support
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jan 28, 2024
1 parent 4536499 commit 518f2c5
Show file tree
Hide file tree
Showing 4 changed files with 757 additions and 7 deletions.
4 changes: 4 additions & 0 deletions include/views/context_menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class ContextMenu : public View {
std::function<void()> callback;
};

void init();
void draw() override;
std::vector<Item> build();
void update(std::vector<ContextMenu::Item> &items, mpv_node &node);

private:
void draw(std::vector<Item> items);
Expand All @@ -37,5 +39,7 @@ class ContextMenu : public View {
void drawThemelist();
void drawProfilelist();
void drawRecentFiles();

std::vector<Item> items;
};
} // namespace ImPlay::Views
Loading

0 comments on commit 518f2c5

Please sign in to comment.