|
1
|
1 #pragma once
|
|
|
2
|
|
|
3 #ifdef __APPLE__
|
|
|
4 // Mac UI element entrypoint
|
|
|
5 class ui_element_mac : public service_base {
|
|
|
6 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(ui_element_mac);
|
|
|
7 public:
|
|
|
8 //! @param arg wrapped NSDictionary<NSString*, NSString*>*, see wrapNSObject + unwrapNSObject
|
|
|
9 //! @returns wrapped NSViewController, see wrapNSObject + unwrapNSObject
|
|
|
10 virtual service_ptr instantiate( service_ptr arg ) = 0;
|
|
|
11 //! Tests if this element matches specified name in user's view configuration.
|
|
|
12 virtual bool match_name( const char * name ) = 0;
|
|
|
13 //! Returns user-readable name. Reserved for future use.
|
|
|
14 virtual fb2k::stringRef get_name() = 0;
|
|
|
15 //! Returns GUID. Reserved for future use.
|
|
|
16 virtual GUID get_guid() = 0;
|
|
|
17 };
|
|
|
18 #endif
|