picofuse-objc

NXDisplay.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <picofuse/pix.h>
10 
26 - (void)display:(NXDisplay *)display
27  drawRect:(NXRect)rect
28  inContext:(NXGraphicsContext *)context;
29 @end
30 
57 @private
58  pix_display_t *_display;
59  id<NXDisplayDelegate> _delegate;
60  NXGraphicsContext *_context;
61  BOOL _attached;
62  uintptr_t _drawing;
63 }
64 
70 - (id)initWithDisplay:(pix_display_t *)display;
71 
76 - (void)deinitDisplay:(pix_display_t *)display;
77 
81 - (pix_display_t *)display;
82 
86 - (NXSize)size;
87 
92 - (BOOL)isEPaper;
93 
98 
102 - (void)setDelegate:(id<NXDisplayDelegate>)delegate;
103 
108 - (void)setInterval:(NXDuration)interval;
109 
113 - (void)setNeedsDisplay;
114 
119 - (void)setNeedsDisplayInRect:(NXRect)rect;
120 
124 - (BOOL)isAttached;
125 
126 @end
127 
135 
141 - (BOOL)attachDisplay:(NXDisplay *)display;
142 
148 - (void)detachDisplay:(NXDisplay *)display;
149 
150 @end
What a display is drawn with, while it&#39;s being drawn: a display gives it to its delegate&#39;s -display:d...
int64_t NXDuration
A length of time, in nanoseconds, which may be negative.
Definition: NXDuration.h:17
Application framework header.
BOOL isAttached()
Returns YES while it&#39;s attached to the application.
NXSize size()
Returns its size, in pixels.
Something which produces events, such as a timer, while it&#39;s attached to the application with -[NXApp...
Definition: NXEventSource.h:17
A size, in pixels.
Definition: NXGeometry.h:21
Attaching displays to the application.
Definition: NXDisplay.h:134
What a display tells its delegate.
Definition: NXDisplay.h:17
id< NXDisplayDelegate > delegate()
Returns the delegate, which isn&#39;t retained.
bool BOOL
A Boolean value.
Definition: runtime.h:60
Defines points, sizes and rectangles, in pixels.
void setNeedsDisplay()
Marks all of it as changed, so it&#39;s drawn again.
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
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
pix_display_t * display()
Returns its pix display.
BOOL isEPaper()
Returns YES for e-paper, which keeps its picture, and is slow to change it: its partial refreshes may...
A rectangle: its top left, and its size.
Definition: NXGeometry.h:30