picofuse-objc

SDLWindow.h
Go to the documentation of this file.
1 
5 #pragma once
6 #include <Graphics/NXDisplay.h>
7 #include "NXDeviceManager.h"
8 
32 @interface SDLWindow : NXDisplay <NXDisplayDevice, NXInputDevice> {
33 @private
34  id _target;
35  SEL _selector;
36  void *_hid;
37  void *_device;
38 }
39 
44 + (SDLWindow *)windowWithTitle:(NXString *)title size:(NXSize)size;
45 
50 - (id)initWithTitle:(NXString *)title size:(NXSize)size hidden:(BOOL)hidden;
51 
58 - (BOOL)setTarget:(id)target selector:(SEL)selector;
59 
60 @end
Defines the NXDisplay class, what every display shares, and NXApplication&#39;s methods for attaching one...
NXSize size()
Returns its size, in pixels.
A size, in pixels.
Definition: NXGeometry.h:21
Defines NXDeviceManager, which makes the devices a program&#39;s built for, as they&#39;re described in JSON...
A window on a Mac or Linux with SDL 2: a display, and its keyboard and mouse.
Definition: SDLWindow.h:32
bool BOOL
A Boolean value.
Definition: runtime.h:60
A string of UTF-8 text.
Definition: NXString.h:53
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