Oolite
Loading...
Searching...
No Matches
OOFullScreenController Class Reference

#include <OOFullScreenController.h>

Inheritance diagram for OOFullScreenController:
Collaboration diagram for OOFullScreenController:

Instance Methods

(id) - initWithGameView:
(BOOL) - setDisplayWidth:height:refreshRate:
(NSDictionary *) - findDisplayModeForWidth:height:refreshRate:
(void) - noteMouseInteractionModeChangedFrom:to:
(void) - dealloc [implementation]
(BOOL) - inFullScreenMode [implementation]
(void) - setFullScreenMode: [implementation]

Properties

MyOpenGLView * gameView
BOOL fullScreenMode
NSArray * displayModes
NSDictionary * currentDisplayMode
NSUInteger indexOfCurrentDisplayMode

Private Attributes

MyOpenGLView * _gameView

Detailed Description

Definition at line 52 of file OOFullScreenController.h.

Method Documentation

◆ dealloc

- (void) dealloc
implementation

Definition at line 39 of file OOFullScreenController.m.

40{
42
43 [super dealloc];
44}
#define DESTROY(x)

References _gameView, dealloc, and DESTROY.

Referenced by dealloc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findDisplayModeForWidth:height:refreshRate:

- (NSDictionary *) findDisplayModeForWidth: (NSUInteger) width
height: (NSUInteger) height
refreshRate: (NSUInteger) d_refresh 

Definition at line 85 of file OOFullScreenController.m.

85 :(NSUInteger)width height:(NSUInteger)height refreshRate:(NSUInteger)d_refresh
86{
88 return nil;
89}
#define OOLogGenericSubclassResponsibility()
Definition OOLogging.h:141
return nil

References nil, and OOLogGenericSubclassResponsibility.

◆ inFullScreenMode

- (BOOL) inFullScreenMode
implementation

Definition at line 51 of file OOFullScreenController.m.

52{
54 return NO;
55}

References inFullScreenMode, and OOLogGenericSubclassResponsibility.

Referenced by inFullScreenMode.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initWithGameView:

- (id) initWithGameView: (MyOpenGLView*) view

Definition at line 31 of file OOFullScreenController.m.

31 :(MyOpenGLView*)view
32{
33 if ((self = [super init])) {
34 _gameView = [view retain];
35 }
36 return self;
37}

References _gameView.

◆ noteMouseInteractionModeChangedFrom:to:

- (void) noteMouseInteractionModeChangedFrom: (OOMouseInteractionMode) oldMode
to: (OOMouseInteractionMode) newMode 

Definition at line 91 of file OOFullScreenController.m.

92{
93}
OOMouseInteractionMode

Referenced by GameController::setMouseInteractionMode:.

Here is the caller graph for this function:

◆ setDisplayWidth:height:refreshRate:

- (BOOL) setDisplayWidth: (NSUInteger) width
height: (NSUInteger) height
refreshRate: (NSUInteger) refresh 

Definition at line 79 of file OOFullScreenController.m.

79 :(NSUInteger)width height:(NSUInteger)height refreshRate:(NSUInteger)refresh
80{
82 return NO;
83}

References OOLogGenericSubclassResponsibility.

◆ setFullScreenMode:

- (void) setFullScreenMode: (BOOL) value
implementation

Definition at line 57 of file OOFullScreenController.m.

57 :(BOOL)value
58{
60}

References OOLogGenericSubclassResponsibility.

Member Data Documentation

◆ _gameView

- (MyOpenGLView*) _gameView
private

Definition at line 54 of file OOFullScreenController.h.

Referenced by dealloc, and initWithGameView:.

Property Documentation

◆ currentDisplayMode

- (NSDictionary *) currentDisplayMode
readnonatomicassign

Definition at line 68 of file OOFullScreenController.m.

69{
70 return [[self displayModes] objectAtIndex:[self indexOfCurrentDisplayMode]];
71}

◆ displayModes

- (NSArray *) displayModes
readnonatomicassign

Definition at line 62 of file OOFullScreenController.m.

63{
65 return nil;
66}

◆ fullScreenMode

- (BOOL) fullScreenMode
readwritenonatomicassign

Definition at line 62 of file OOFullScreenController.h.

◆ gameView

- (MyOpenGLView *) gameView
readnonatomicassign

Definition at line 46 of file OOFullScreenController.m.

47{
48 return _gameView;
49}

◆ indexOfCurrentDisplayMode

- (NSUInteger) indexOfCurrentDisplayMode
readnonatomicassign

Definition at line 73 of file OOFullScreenController.m.

74{
76 return NSNotFound;
77}

The documentation for this class was generated from the following files: