skia-sys 0.20130412.3

2D graphic library for drawing Text, Geometries, and Images. FFI bindings only.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#import "SampleAppDelegate.h"
@implementation SampleAppDelegate
@synthesize fWindow, fView, fOptions;

-(void) applicationDidFinishLaunching:(NSNotification *)aNotification {
    //Load specified skia views after launching
    fView.fOptionsDelegate = fOptions;
    [fWindow setAcceptsMouseMovedEvents:YES];
    [fOptions registerMenus:fView.fWind->getMenus()];
}

- (IBAction)toiPadSize:(id)sender {
    NSRect frame = NSMakeRect(fWindow.frame.origin.x, fWindow.frame.origin.y, 768, 1024);
    [fWindow setFrame:frame display:YES animate:YES];
}
@end