class
MoveFrameCmd
: public
Command
(Return to index)
command to change current frame.
Type:
Instantiable
Base Classes:
public
Command
Derived Classes
Include file:
FrameUnidraw/framecmds.h
Public:
static const char*
AbsMoveFuncFormat
()
return format string for generating interpreted move command with absolute frame arguments.
boolean
AllowBg
()
get flag that indicates whether to allow a background frame.
void
AllowBg
(boolean abg)
set flag that indicates whether to allow a background frame.
virtual
Command
*
Copy
()
virtual void
Execute
()
static void
FuncDisable
()
disable execution of an interpreter command on each move.
static void
FuncEnable
(const char* movefunc=nil, const char* absmovefunc=nil)
enable execution of an interpreter command on each move.
virtual ClassId
GetClassId
()
virtual boolean
IsA
(ClassId)
virtual void
Log
()
MoveFrameCmd
(
ControlInfo
*, int motion = +1, boolean allowbg = true)
MoveFrameCmd
(
Editor
* =nil, int motion = +1, boolean allowbg = true)
static const char*
MoveFuncFormat
()
return format string for generating interpreted move command.
virtual boolean
Reversible
()
virtual void
Unexecute
()
int
actualmotion
()
actual motion in frames, negative means backward.
void
clr_wraparound
()
clear forward wraparound flag.
static
MoveFrameCmd
*
default_instance
()
return a default instance of the
MoveFrameCmd
.
static void
default_instance
(
MoveFrameCmd
* cmd)
set a default instance of the
MoveFrameCmd
.
void
init
(int motion, boolean allowbg)
int
plannedmotion
()
planned motion in frames, negative means backward.
int
requestmotion
()
requested motion in frames, negative means backward.
void
set_wraparound
()
set forward wraparound flag.
boolean
wraparound
()
get flag to indicate forward wraparound during replay.
void
wraparound
(boolean flag)
set flag to indicate forward wraparound during replay.
Protected:
static char*
_absmove_func
boolean
_allowbg
static
MoveFrameCmd
*
_default
static boolean
_func_on
static char*
_move_func
int
_requestmotion, _actualmotion, _plannedmotion
boolean
_wraparound
Friend methods:
friend class
MoveFrameFunc
(more documentation)