openframeworks / openframeworks/openFrameworks
feature : ofSystemContextMenu
Open
Nobody has claimed this yet.
core
feature
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
something like
vector<string> myOptions;
myOptions.push_back("Option 1");
myOptions.push_back("Option 2");
myOptions.push_back("Option 3");
ofContextMenuResult result = ofSystemContextMenu(myOptions);
if (result.index == 0) {
// we hit "Option 1"
}
if (result.name == "Option 2") {
// we hit "Option 2"
}
I imagine we stop evaluating the app until the user either clicks a context menu item or clicks the app outside the context menu (in which case the click is sent to onMousePressed, etc).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Use the proposed ofSystemContextMenu API and the onMousePressed behavior in the issue as the starting specification. First locate existing platform-specific event and menu entry points; done requires an agreed cross-platform result shape and behavior for selecting an item or clicking outside, with validation on the affected platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100