Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsCocoaImageUtils.mm File Reference
#import <Cocoa/Cocoa.h>

Go to the source code of this file.

Functions

CGContextRef Cocoa_LockFocus (void *view)
void Cocoa_UnlockFocus (void *view)

Function Documentation

CGContextRef Cocoa_LockFocus ( void view)

Definition at line 41 of file nsCocoaImageUtils.mm.

{
  if (view) {
    NSView* v = (NSView*) view;
    [v lockFocus];
  }
  return (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort];
}

Definition at line 50 of file nsCocoaImageUtils.mm.

{
  if (view) {
    NSView* v = (NSView*) view;
    [v unlockFocus];
  }
}