Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OOMouseInteractionMode.h File Reference
import "OOCocoa.h"
+ Include dependency graph for OOMouseInteractionMode.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  OOMouseInteractionMode { MOUSE_MODE_UI_SCREEN_NO_INTERACTION , MOUSE_MODE_UI_SCREEN_WITH_INTERACTION , MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL , MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL }
 

Functions

NSString * OOStringFromMouseInteractionMode (OOMouseInteractionMode mode)
 
BOOL OOMouseInteractionModeIsUIScreen (OOMouseInteractionMode mode)
 
BOOL OOMouseInteractionModeIsFlightMode (OOMouseInteractionMode mode)
 

Enumeration Type Documentation

◆ OOMouseInteractionMode

Enumerator
MOUSE_MODE_UI_SCREEN_NO_INTERACTION 
MOUSE_MODE_UI_SCREEN_WITH_INTERACTION 
MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL 
MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL 

Definition at line 46 of file OOMouseInteractionMode.h.

Function Documentation

◆ OOMouseInteractionModeIsFlightMode()

BOOL OOMouseInteractionModeIsFlightMode ( OOMouseInteractionMode mode)

◆ OOMouseInteractionModeIsUIScreen()

BOOL OOMouseInteractionModeIsUIScreen ( OOMouseInteractionMode mode)

◆ OOStringFromMouseInteractionMode()

NSString * OOStringFromMouseInteractionMode ( OOMouseInteractionMode mode)

Definition at line 29 of file OOMouseInteractionMode.m.

30{
31 switch (mode)
32 {
33 case MOUSE_MODE_UI_SCREEN_NO_INTERACTION: return @"UI_SCREEN_NO_INTERACTION";
34 case MOUSE_MODE_UI_SCREEN_WITH_INTERACTION: return @"UI_SCREEN_WITH_INTERACTION";
35 case MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL: return @"FLIGHT_NO_MOUSE_CONTROL";
36 case MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL: return @"FLIGHT_WITH_MOUSE_CONTROL";
37 }
38
39 return [NSString stringWithFormat:@"<unknown mode %u>", mode];
40}

References MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL, MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL, MOUSE_MODE_UI_SCREEN_NO_INTERACTION, and MOUSE_MODE_UI_SCREEN_WITH_INTERACTION.