#include <omgui/common/widget.h>
#include <omgui/widget.h>
#include <omgui/private/factory.h>
#include <omgui/event.h>
#import <Cocoa/Cocoa.h>
Go to the source code of this file.
Namespaces | |
namespace | omgui |
namespace | omgui::cocoa |
Classes | |
class | omgui::cocoa::Widget |
Defines | |
#define | OMGUI_COCOA_IMPLEMENTATION(type) |
#define | OMGUI_COCOA_INTERFACE(type) |
#define OMGUI_COCOA_IMPLEMENTATION | ( | type | ) |
Value:
@implementation Omgui ## type \ - (void)setOmguiWidget:(omgui::cocoa::Widget *)widget \ { \ m_omgui_widget = widget; \ } \ - (omgui::cocoa::Widget *)omguiWidget { return m_omgui_widget; } \ - (bool)omguiSendEvent:(omgui::event_id)event_id \ { \ if (m_omgui_widget) \ { \ omgui::Event event(event_id, m_omgui_widget->get_wrapper_id()); \ omgui::EventManager::send_event(event); \ return event.get_veto(); \ } \ return false; \ } \ @end
#define OMGUI_COCOA_INTERFACE | ( | type | ) |
Value:
@interface Omgui ## type : NS ## type \ { \ omgui::cocoa::Widget *m_omgui_widget; \ } \ - (void)setOmguiWidget:(omgui::cocoa::Widget *)widget; \ - (omgui::cocoa::Widget *)omguiWidget; \ - (bool)omguiSendEvent:(omgui::event_id)event_id; \ @end