picofuse-objc

NXDeviceManager.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <Graphics/Graphics.h>
9 
15 @protocol NXDevice <NXArchiving>
16 
20 + (NXString *)deviceHint;
21 
22 @end
23 
28 @protocol NXDisplayDevice <NXDevice>
29 @end
30 
37 @protocol NXInputDevice <NXDevice>
38 
47 - (BOOL)setTarget:(id)target selector:(SEL)selector;
48 
49 @optional
50 
55 - (void)setPointerSize:(NXSize)size;
56 
57 @end
58 
64 @protocol NXSensorDevice <NXInputDevice>
65 @end
66 
94 @interface NXDeviceManager : NXObject {
95 @private
96  NXMap *_devices;
97  NXDisplay *_display;
98  NXArray *_inputs;
99  NXMap *_named;
100 }
101 
107 
112 - (id)initWithFlags:(NXMap *)flags;
113 
117 - (NXMap *)devices;
118 
123 - (NXDisplay *)display;
124 
129 - (NXArray *)inputs;
130 
135 - (id<NXSensorDevice>)sensorNamed:(NXString *)name;
136 
145 - (BOOL)setTarget:(id)target selector:(SEL)selector;
146 
147 @end
148 
156 void NXDeviceManagerRegister(const char *name, const char *json);
Graphics framework header.
Objects found by keys, which can be changed.
Definition: NXMap.h:31
NXDisplay * display()
Returns the display, or nil if there&#39;s none, or it can&#39;t be had, which is logged with what to check...
Application framework header.
NXArray * commandLineFlags()
Returns its flags: on a host, –devices, which names a file merged over the description it&#39;s built wi...
Objects which can be written to an archive and read back.
Definition: NXArchive.h:29
A size, in pixels.
Definition: NXGeometry.h:21
void NXDeviceManagerRegister(const char *name, const char *json)
Registers a layer of the description, before main(): picofuse_objc_executable() generates the call...
bool BOOL
A Boolean value.
Definition: runtime.h:60
const char * name()
Returns the name of the class.
A string of UTF-8 text.
Definition: NXString.h:53
An ordered list of objects, which can be changed.
Definition: NXArray.h:26
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
NXMap * devices()
Returns the description of the devices, with its layers merged.
const struct objc_selector * SEL
A pointer to a method selector.
Definition: runtime.h:23
A display, which the application redraws when it has changed, while it&#39;s attached with -[NXApplicatio...
Definition: NXDisplay.h:56
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
The devices a program&#39;s built for, such as its display, as they&#39;re described in JSON, which NXApplicationMain makes with NXApplicationFeatureDevices, as -[NXApplication deviceManager].
NXArray * inputs()
Returns the devices other than the display, which send input, such as a LinuxInput, which are attached to the application, so they&#39;re read while it runs.