Kage Studio 0.7.240121
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
KageFrame Class Reference

#include <frame.h>

Collaboration diagram for KageFrame:

Public Types

enum  extension { EXTENSION_NOT , EXTENSION_START , EXTENSION_MID , EXTENSION_END }
 

Public Member Functions

 KageFrame (KageLayer *p_layer, unsigned int p_frameID)
 
KageFrame operator= (const KageFrame &p_frame)
 
virtual ~KageFrame ()
 
bool isEmpty ()
 
void setSelected (bool p_selected)
 
bool isSelected ()
 
void setCurrent (bool p_current)
 
bool isCurrent ()
 
VectorDataManager getFrameData ()
 
void setFrameData (VectorDataManager p_vectorsData)
 
void setCode (bool p_newCode)
 
bool getCode ()
 
void setNull (bool p_null)
 
bool isNull ()
 
void setExtension (KageFrame::extension p_extension)
 
KageFrame::extension getExtension ()
 
void forceSetTween (unsigned int p_tween)
 
void setTween (unsigned int p_tween)
 
unsigned int getTween ()
 
std::vector< unsigned int > raiseSelectedShape (std::vector< unsigned int > p_selectedShapes)
 
std::vector< unsigned int > lowerSelectedShape (std::vector< unsigned int > p_selectedShapes)
 
std::vector< unsigned int > raiseToTopSelectedShape (std::vector< unsigned int > p_selectedShapes)
 
std::vector< unsigned int > lowerToBottomSelectedShape (std::vector< unsigned int > p_selectedShapes)
 
std::vector< unsigned int > groupSelectedShapes (std::vector< unsigned int > p_selectedShapes)
 
std::vector< unsigned int > ungroupSelectedShapes (std::vector< unsigned int > p_selectedShapes)
 
std::vector< unsigned int > duplicateShapes (std::vector< unsigned int > p_selectedShapes)
 
bool flipHorizontalSelectedShape (std::vector< unsigned int > p_selectedShapes)
 
bool flipVerticalSelectedShape (std::vector< unsigned int > p_selectedShapes)
 
bool recenterRotationPoint (std::vector< unsigned int > p_selectedShapes)
 
void addDataToFrame (VectorDataManager v)
 
std::vector< VectorDatacopySelectedShapes (std::vector< unsigned int > p_selectedShapes)
 
std::vector< unsigned int > pasteSelectedShapes (std::vector< VectorData > p_copiedShapes)
 
bool deleteSelectedShapes (std::vector< unsigned int > p_selectedShapes)
 

Data Fields

int data
 
unsigned int frameID
 
bool _null
 
bool _selected
 
bool _current
 
unsigned int _tweenX
 
unsigned int _tweenY
 
KageFrame::extension _extension
 
KageLayer_layer
 
VectorDataManager vectorsData
 

Static Public Attributes

static bool DEBUG_ON
 
static bool mouseIsDown
 
static bool _gotFocus
 
static unsigned int _mouseLocationShapeIndex
 

Member Enumeration Documentation

◆ extension

Enumerator
EXTENSION_NOT 
EXTENSION_START 
EXTENSION_MID 
EXTENSION_END 

Constructor & Destructor Documentation

◆ KageFrame()

KageFrame::KageFrame ( KageLayer * p_layer,
unsigned int p_frameID )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~KageFrame()

KageFrame::~KageFrame ( )
virtual

Member Function Documentation

◆ addDataToFrame()

void KageFrame::addDataToFrame ( VectorDataManager v)
Here is the call graph for this function:

◆ copySelectedShapes()

std::vector< VectorData > KageFrame::copySelectedShapes ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ deleteSelectedShapes()

bool KageFrame::deleteSelectedShapes ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ duplicateShapes()

std::vector< unsigned int > KageFrame::duplicateShapes ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ flipHorizontalSelectedShape()

bool KageFrame::flipHorizontalSelectedShape ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ flipVerticalSelectedShape()

bool KageFrame::flipVerticalSelectedShape ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ forceSetTween()

void KageFrame::forceSetTween ( unsigned int p_tween)
Here is the caller graph for this function:

◆ getCode()

bool KageFrame::getCode ( )

◆ getExtension()

KageFrame::extension KageFrame::getExtension ( )
Here is the caller graph for this function:

◆ getFrameData()

VectorDataManager KageFrame::getFrameData ( )

◆ getTween()

unsigned int KageFrame::getTween ( )
Here is the caller graph for this function:

◆ groupSelectedShapes()

std::vector< unsigned int > KageFrame::groupSelectedShapes ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ isCurrent()

bool KageFrame::isCurrent ( )

◆ isEmpty()

bool KageFrame::isEmpty ( )
Here is the caller graph for this function:

◆ isNull()

bool KageFrame::isNull ( )
Here is the caller graph for this function:

◆ isSelected()

bool KageFrame::isSelected ( )
Here is the caller graph for this function:

◆ lowerSelectedShape()

std::vector< unsigned int > KageFrame::lowerSelectedShape ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ lowerToBottomSelectedShape()

std::vector< unsigned int > KageFrame::lowerToBottomSelectedShape ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ operator=()

KageFrame KageFrame::operator= ( const KageFrame & p_frame)
Here is the call graph for this function:

◆ pasteSelectedShapes()

std::vector< unsigned int > KageFrame::pasteSelectedShapes ( std::vector< VectorData > p_copiedShapes)
Here is the call graph for this function:

◆ raiseSelectedShape()

std::vector< unsigned int > KageFrame::raiseSelectedShape ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ raiseToTopSelectedShape()

std::vector< unsigned int > KageFrame::raiseToTopSelectedShape ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ recenterRotationPoint()

bool KageFrame::recenterRotationPoint ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

◆ setCode()

void KageFrame::setCode ( bool p_newCode)

◆ setCurrent()

void KageFrame::setCurrent ( bool p_current)
Here is the caller graph for this function:

◆ setExtension()

void KageFrame::setExtension ( KageFrame::extension p_extension)
Here is the caller graph for this function:

◆ setFrameData()

void KageFrame::setFrameData ( VectorDataManager p_vectorsData)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setNull()

void KageFrame::setNull ( bool p_null)
Here is the caller graph for this function:

◆ setSelected()

void KageFrame::setSelected ( bool p_selected)
Here is the caller graph for this function:

◆ setTween()

void KageFrame::setTween ( unsigned int p_tween)
Here is the call graph for this function:

◆ ungroupSelectedShapes()

std::vector< unsigned int > KageFrame::ungroupSelectedShapes ( std::vector< unsigned int > p_selectedShapes)
Here is the call graph for this function:

Field Documentation

◆ _current

bool KageFrame::_current

◆ _extension

KageFrame::extension KageFrame::_extension

◆ _gotFocus

bool KageFrame::_gotFocus
static

◆ _layer

KageLayer* KageFrame::_layer

◆ _mouseLocationShapeIndex

unsigned int KageFrame::_mouseLocationShapeIndex
static

◆ _null

bool KageFrame::_null

◆ _selected

bool KageFrame::_selected

◆ _tweenX

unsigned int KageFrame::_tweenX

◆ _tweenY

unsigned int KageFrame::_tweenY

◆ data

int KageFrame::data

◆ DEBUG_ON

bool KageFrame::DEBUG_ON
static

◆ frameID

unsigned int KageFrame::frameID

◆ mouseIsDown

bool KageFrame::mouseIsDown
static

◆ vectorsData

VectorDataManager KageFrame::vectorsData

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