Oolite 1.91.0.7668-250429-8542c40
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
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

MyOpenGLViewgameView
 
BOOL fullScreenMode
 
NSArray * displayModes
 
NSDictionary * currentDisplayMode
 
NSUInteger indexOfCurrentDisplayMode
 

Private Attributes

MyOpenGLView_gameView
 

Detailed Description

Definition at line 55 of file OOFullScreenController.h.

Method Documentation

◆ dealloc

- (void) dealloc
implementation

Definition at line 42 of file OOFullScreenController.m.

43{
45
46 [super dealloc];
47}
#define DESTROY(x)
Definition OOCocoa.h:77

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 96 of file OOFullScreenController.m.

96 :(NSUInteger)width height:(NSUInteger)height refreshRate:(NSUInteger)d_refresh
97{
99 return nil;
100}
#define OOLogGenericSubclassResponsibility()
Definition OOLogging.h:129
return nil

References nil, and OOLogGenericSubclassResponsibility.

◆ inFullScreenMode

- (BOOL) inFullScreenMode
implementation

Definition at line 56 of file OOFullScreenController.m.

57{
59 return NO;
60}

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 32 of file OOFullScreenController.m.

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

References _gameView.

◆ noteMouseInteractionModeChangedFrom:to:

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

Definition at line 103 of file OOFullScreenController.m.

104{
105
106}
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 89 of file OOFullScreenController.m.

89 :(NSUInteger)width height:(NSUInteger)height refreshRate:(NSUInteger)refresh
90{
92 return NO;
93}

References OOLogGenericSubclassResponsibility.

Referenced by GameController(FullScreen)::setUpDisplayModes.

+ Here is the caller graph for this function:

◆ setFullScreenMode:

- (void) setFullScreenMode: (BOOL) value
implementation

Definition at line 63 of file OOFullScreenController.m.

63 :(BOOL)value
64{
66}

References OOLogGenericSubclassResponsibility.

Member Data Documentation

◆ _gameView

- (MyOpenGLView*) _gameView
private

Definition at line 58 of file OOFullScreenController.h.

Referenced by dealloc, and initWithGameView:.

Property Documentation

◆ currentDisplayMode

- (NSDictionary *) currentDisplayMode
readnonatomicassign

Definition at line 76 of file OOFullScreenController.m.

77{
78 return [[self displayModes] objectAtIndex:[self indexOfCurrentDisplayMode]];
79}

Referenced by GameController(FullScreen)::setUpDisplayModes.

◆ displayModes

- (NSArray *) displayModes
readnonatomicassign

Definition at line 69 of file OOFullScreenController.m.

70{
72 return nil;
73}

◆ fullScreenMode

- (BOOL) fullScreenMode
readwritenonatomicassign

Definition at line 66 of file OOFullScreenController.h.

◆ gameView

- (MyOpenGLView *) gameView
readnonatomicassign

Definition at line 50 of file OOFullScreenController.m.

51{
52 return _gameView;
53}

◆ indexOfCurrentDisplayMode

- (NSUInteger) indexOfCurrentDisplayMode
readnonatomicassign

Definition at line 82 of file OOFullScreenController.m.

83{
85 return NSNotFound;
86}

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