Muvicado HD
Loading...
Searching...
No Matches
RestMode Class Reference

Passive mode that immediately switches to its next mode on mouse up. More...

#include <RestMode.h>

Inheritance diagram for RestMode:
Collaboration diagram for RestMode:

Instance Methods

(void) - mouseUp: [implementation]
(NSString *) - name [implementation]
Instance Methods inherited from Mode
(id) - initWithPlayArea:forController:
(NSCursor *) - cursor
(void) - mouseDown:
 No-op default implementation; subclasses override.
(void) - mouseDragged:
 No-op default implementation; subclasses override.
(void) - mouseMoved:
 No-op default implementation; subclasses override.
(void) - keyDown:
 No-op default implementation; subclasses override.
(void) - drawRect:
 No-op default implementation; subclasses override.
(void) - setNextMode:
(void) - setUp
 Lifecycle hook; default is no-op.
(void) - cleanUp
 Lifecycle hook; default is no-op.
(id) - init [implementation]

Additional Inherited Members

Protected Attributes inherited from Mode
PlayAreaplayArea
Controllercontroller
ModenextMode

Detailed Description

Passive mode that immediately switches to its next mode on mouse up.

Concrete implementation of RestMode behavior.

Definition at line 16 of file RestMode.h.

Method Documentation

◆ mouseUp:

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

On mouse up, transition the play area to the configured nextMode.

Reimplemented from Mode.

Definition at line 15 of file RestMode.m.

Here is the call graph for this function:

◆ name

- (NSString *) name
implementation

Returns the human-readable name of this mode.

Reimplemented from Mode.

Definition at line 20 of file RestMode.m.

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

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