- (void) dealloc;
- (void) setCairoCanvas:(Gtkmm2ext::CairoCanvas*)c;
- (void) reshape;
+- (void) setNeedsDisplayInRect:(NSRect)rect;
- (void) drawRect:(NSRect)rect;
- (BOOL) canBecomeKeyWindow:(id)sender;
- (BOOL) acceptsFirstResponder:(id)sender;
_height = height;
}
+- (void) setNeedsDisplayInRect:(NSRect)rect
+{
+ [super setNeedsDisplayInRect:rect];
+#ifdef DEBUG_NSVIEW_EXPOSURE
+ printf ("needsDisplay: %5.1f %5.1f %5.1f %5.1f\n",
+ rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
+#endif
+}
+
- (void) drawRect:(NSRect)rect
{
[[self openGLContext] makeCurrentContext];
}
ctx->fill ();
+#ifdef DEBUG_NSVIEW_EXPOSURE
+ printf ("drawRect: %.1f %.1f %.1f %1.f\n",
+ cairo_rect.x, cairo_rect.y, cairo_rect.width, cairo_rect.height);
+#endif
+
cairo_canvas->render (ctx, &cairo_rect);
surf->flush ();
{
ArdourCanvasOpenGLView* gl_view = (ArdourCanvasOpenGLView*) glv;
[gl_view setNeedsDisplayInRect:NSMakeRect(x, y, w, h)];
+#ifdef DEBUG_NSVIEW_EXPOSURE
+ printf ("Queue Draw %5d %5d %5d %5d\n", x, y, w, h);
+#endif
}
void