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 45fc702 commit a0ef5cc
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 a0ef5cc

Please sign in to comment.