5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-09 18:50:11 +08:00
wails/v2/internal/ffenestri/contextmenustore_darwin.h
2021-01-12 20:39:19 +11:00

30 lines
734 B
C

//
// Created by Lea Anthony on 7/1/21.
//
#ifndef CONTEXTMENUSTORE_DARWIN_H
#define CONTEXTMENUSTORE_DARWIN_H
#include "common.h"
typedef struct {
// This is our context menu store which keeps track
// of all instances of ContextMenus
struct hashmap_s contextMenuStore;
// The raw JSON defining the context menus
const char* contextMenusAsJSON;
// The optional data that may be passed with a context menu selection
const char* contextMenuData;
// The processed context menus
JsonNode* processedContextMenus;
} ContextMenuStore;
ContextMenuStore* NewContextMenuStore(const char* contextMenusAsJSON);
void DeleteContextMenuStore(ContextMenuStore* store);
#endif //CONTEXTMENUSTORE_DARWIN_H