Sha256: 96479134d5deeb8c044538efc2af9032ccf49692b9a3aabf4c4610472dc7b7c3

Contents?: true

Size: 696 Bytes

Versions: 3

Compression:

Stored size: 696 Bytes

Contents

// -*- objc -*-
#import <AppKit/NSWindow.h>
#include "windowdata.h"


@class OpenGLView;


@interface CocoaWindow : NSWindow <NSWindowDelegate>

	{
		@private
			Reflex::WindowData data;
			OpenGLView* view;
			NSTimer* timer;
	}

	- (id) initWithWindowData: (Reflex::WindowData) data;

	- (void) setupContentView;

	- (void) startTimer: (int) fps;

	- (void) stopTimer;

	- (void) update: (NSTimer*) t;

	- (void) draw;

	- (void) redraw;

	- (void) keyDown: (NSEvent*) event;

	- (void) keyUp: (NSEvent*) event;

	- (void) mouseDown: (NSEvent*) event;

	- (void) mouseUp: (NSEvent*) event;

	- (void) mouseMoved: (NSEvent*) event;

	- (void) mouseDragged: (NSEvent*) event;

@end// CocoaWindow

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reflexion-0.1.3 src/cocoa/cocoawindow.h
reflexion-0.1.2 src/cocoa/cocoawindow.h
reflexion-0.1.1 src/cocoa/cocoawindow.h