![]() |
Kage Studio 0.7.240121
A Simple Free and Open Source 2D Animation Software
|
#include <project.h>
Public Member Functions | |
std::string | toString () |
KageProject (Kage *p_kage) | |
KageProject | operator= (const KageProject &p_project) |
KageProject | operator= (const KageDocument &p_document) |
void | init (Kage *p_kage) |
virtual | ~KageProject () |
void | renameLayer () |
void | renameScene () |
![]() | |
KageDocument () | |
KageDocument (KageDocument &p_document) | |
KageDocument | operator= (const KageDocument &p_document) |
void | init () |
virtual | ~KageDocument () |
unsigned int | openScene (std::string p_filepath) |
bool | saveScene (unsigned int p_sceneID) |
Kage Document will contain several scenes. This will allow saving one Scene to be saved each time. | |
bool | openProject () |
bool | saveProject () |
bool | isSaved () |
unsigned int | addScene (std::string p_sceneLabel, bool p_asset=false) |
Used by Kage when creating new Scene, or opening KSF file (even if via KAGE file) | |
bool | removeAllScenes () |
bool | removeSceneAt (unsigned int p_sceneIndex) |
Used by KageDocument; This will gracefully remove all Layers of this Scene along with its Frames. | |
KageScene * | getScene () |
unsigned int | getCurrentScene () |
returns activeSceneIndex+1; to get the actual (pointer to) Scene object, use getScene instead | |
void | setCurrentScene (unsigned int p_newScene) |
returns index+1 | |
void | setCurrentSceneByID (unsigned int p_newSceneID) |
unsigned int | getActiveSceneID () |
unsigned int | getActiveLayerID () |
unsigned int | getActiveFrameID () |
unsigned int | frameCount () |
void | setSceneLayerCurrentFrame (unsigned int p_frame) |
std::string | getLayerLabel () |
void | setLayerLabel (std::string p_label) |
void | toggleLayerVisibility () |
bool | isLayerVisible () |
void | setLayerVisible (bool p_visible) |
void | toggleLayerLock () |
bool | isLayerLocked () |
void | setLayerLocked (bool p_lock) |
bool | moveSceneUp () |
bool | moveSceneDown () |
bool | moveSceneToTop () |
bool | moveSceneToBottom () |
bool | gotoNextScene () |
For use by Kage when Play is triggered. | |
Data Fields | |
std::string | _name |
double | _width |
double | _height |
ColorData | _backgroundColor |
unsigned int | _fps |
Kage * | _kage |
![]() | |
bool | _saved |
unsigned int | _activeSceneID |
unsigned int | _activeSceneIndex |
unsigned int | sceneCtr |
unsigned int | _activeScene |
will be used to create Unique sceneCtr IDs | |
std::vector< Asset > | Assets |
std::vector< KageScene * > | Scenes |
KageScene * | _scenePtr |
Additional Inherited Members | |
![]() | |
enum | AssetType { ASSET_IMAGE , ASSET_VIDEO , ASSET_KAGE } |
![]() | |
static GdkPoint | _mouseLocation |
static bool | _displayObjectIsShape |
static bool | ASSET_MODE = false |
KageProject::KageProject | ( | Kage * | p_kage | ) |
|
virtual |
void KageProject::init | ( | Kage * | p_kage | ) |
KageProject KageProject::operator= | ( | const KageDocument & | p_document | ) |
KageProject KageProject::operator= | ( | const KageProject & | p_project | ) |
void KageProject::renameLayer | ( | ) |
For use of Kage when User clicked Layer->Rename
void KageProject::renameScene | ( | ) |
For use of Kage when User clicked Scene->Rename
std::string KageProject::toString | ( | ) |
ColorData KageProject::_backgroundColor |
unsigned int KageProject::_fps |
double KageProject::_height |
Kage* KageProject::_kage |
std::string KageProject::_name |
double KageProject::_width |