![]() |
Kage Studio 0.7.240121
A Simple Free and Open Source 2D Animation Software
|
#include <kage.h>


Public Member Functions | |
| Kage (std::string p_filePath) | |
| virtual | ~Kage () |
| void | addDataToFrame (VectorDataManager v, bool p_force=false) |
| VectorDataManager | getFrameData (bool p_force=false) |
| VectorDataManager | getFrameDataAt (unsigned int p_frame) |
| void | setFrameData (VectorDataManager p_vectorsData) |
| void | setFrameData (VectorDataManager p_vectorsData, bool p_force) |
| bool | isFrameEmpty () |
| void | forceRenderFrames () |
| void | renderOnionFrames () |
| void | renderFrames () |
| void | renderFramesBelowCurrentLayer () |
| void | renderFramesAboveCurrentLayer () |
| std::string | saveFrame () |
| std::string | dumpFrame (bool bKS) |
| std::string | dumpFrameToSvg () |
| unsigned int | getTween () |
| std::string | int255ToHex (unsigned int p) |
| char | int15ToHex (unsigned int p) |
| unsigned int | hexToInt255 (std::string p) |
| unsigned int | hexToInt15 (char p) |
| void | Undo_onClick () |
| void | Redo_onClick () |
| void | Cut_onClick () |
| void | Copy_onClick () |
| void | Paste_onClick () |
| void | Delete_onClick () |
| void | Duplicate_onClick () |
| void | SelectAll_onClick () |
| void | Deselect_onClick () |
| void | btnDebug_onClick () |
| void | Library_onDragStart (const Glib::RefPtr< Gdk::DragContext > &context, Gtk::SelectionData &selection_data, guint p_info, guint time) |
| void | Stage_onDragStop (const Glib::RefPtr< Gdk::DragContext > &context, int p_destX, int p_destY, const Gtk::SelectionData &selection_data, guint p_info, guint time) |
| void | Stop_onClick () |
| void | toolsButtonToggle (std::string p_toolTip) |
| void | ToolSelect_onClick () |
| bool | sceneLayerSwitchToPreviousFrame () |
| bool | sceneLayerSwitchToNextFrame () |
| void | propStageSetVisible (bool p_visible) |
| void | propFillStrokeSetVisible (bool p_visible) |
| void | propDisplayObjectPropertiesSetVisible (bool p_visible) |
| void | propShapePropertiesSetVisible (bool p_visible) |
| void | propAssetPropertiesSetVisible (bool p_visible) |
| void | propNodeXYSetVisible (bool p_visible) |
| void | propFrameTweenSetVisible (bool p_visible) |
| void | updateColors () |
| We're updating the GUI's colors based on KageStage's Fill and Stroke colors. | |
| void | updateShapeProperties () |
| void | updateAssetProperties () |
| void | updateNodeXY () |
| void | updateSelectedShapeColor (bool p_doFill=true, bool p_doStroke=true) |
| Used by Fill and Stroke tools. | |
| void | stackDo () |
| void | New_onClick () |
| void | cleanupInterface () |
| bool | doDeleteFrame () |
| bool | isLayerLocked () |
| unsigned int | getDocumentCurrentScene () |
| bool | setDocumentCurrentScene (unsigned int p_scene) |
| unsigned int | getDocumentSceneCurrentLayer () |
| void | setDocumentSceneCurrentLayer (unsigned int p_layer, bool p_addSelected) |
| unsigned int | getDocumentSceneLayerCurrentFrame () |
| void | setCurrentLayerByID (unsigned int p_layerID) |
| void | setDocumentSceneLayerCurrentFrame (unsigned int p_frame, bool p_addSelected) |
| void | displayMouseXY (double p_x, double p_y) |
| void | registerPropertiesPane () |
| void | refreshUI () |
| void | focusOnStage () |
| void | setStageBG (Gdk::Color p_Color) |
| Gdk::Color | getStageBG () |
Static Public Member Functions | |
| static void | timestamp () |
| static void | timestamp_IN () |
| static void | timestamp_OUT () |
Data Fields | |
| KageScenesUI | _scenes |
| KageLayersUI | _layers |
| KageAssetManager | _assetManager |
| KageTimeline | _timeline |
| Gtk::ToggleButton | _toggleOnion |
| Gtk::ToggleButton | _toggleOnionLayer |
| KageStage | _stage |
| bool | _UPDATE_SHAPE_COLORS |
| bool | _propFillVisible = false |
| bool | _propStrokeVisible = false |
| PropertyStage | m_PropStage |
| PropertyLocationSize | m_propLocationSize |
| PropertyAsset | m_propAsset |
| PropertyFillStroke | m_propFillStroke |
| PropertyNodeXY | m_propNodeXY |
| PropertyFrameTween | m_propFrameTween |
| KageLibrary | _library |
| Gdk::Color | m_Color |
| bool | _isPlaying |
| bool | _displayObjectIsShape = false |
| UnRe | _undoRedoManager |
| KageProject | _document |
| KageDocument | _documentCopyBuffer |
| std::vector< VectorData > | g_copiedData |
| will contain copied Scene/s, its Layer/s, it's Frames | |
| std::vector< unsigned int > | g_selectedItems |
Static Public Attributes | |
| static unsigned int | TAB_COUNT = 0 |
| static gboolean | NotDarkMode = TRUE |
Protected Member Functions | |
| void | updateStatus (Glib::ustring status_msg) |
| void | Quit_onClick () |
| void | SceneAdd_onClick () |
| void | SceneDel_onClick () |
| void | SceneRename_onClick () |
| void | SceneMoveToNext_onClick () |
| void | SceneMoveToPrevious_onClick () |
| void | SceneMoveToLast_onClick () |
| void | SceneMoveToFirst_onClick () |
| void | LayerAdd_onClick () |
| void | LayerRename_onClick () |
| void | ShowHideLayer_onClick () |
| void | LockUnlockLayer_onClick () |
| void | LayerDel_onClick () |
| void | LayerMoveTop_onClick () |
| void | LayerMoveUp_onClick () |
| void | LayerMoveDown_onClick () |
| void | LayerMoveBottom_onClick () |
| void | ToggleOnionSkin_onClick () |
| void | ToggleOnionLayer_onClick () |
| void | ToggleOnion_onClick () |
| void | ToolButtons_onClick (Gtk::ToggleButton *p_sourceButton) |
| void | onActionActivate () |
| void | ToggleTimeline_onClick () |
| void | ToggleProperties_onClick () |
| void | TogglePropertiesFill_onClick () |
| void | TogglePropertiesStroke_onClick () |
| void | ToggleDarkTheme_onClick () |
| void | ShapeGroup_onClick () |
| void | ShapeUngroup_onClick () |
| void | Raise_onClick () |
| void | Lower_onClick () |
| void | RaiseToTop_onClick () |
| void | LowerToBottom_onClick () |
| void | FlipHorizontal_onClick () |
| void | FlipVertical_onClick () |
| void | RecenterRotationPoint_onClick () |
| void | Tween_onClick () |
| void | PreviousFrame_onClick () |
| void | NextFrame_onClick () |
| void | ToggleLoop_onClick () |
| void | AddFrame_onClick () |
| void | ExtendFrame_onClick () |
| void | DuplicateFrame_onClick () |
| void | RemoveFrame_onClick () |
| void | CutFrame_onClick () |
| void | CopyFrame_onClick () |
| void | PasteFrame_onClick () |
| void | DeleteFrame_onClick () |
| void | TweenFrame_onClick () |
| void | RemoveTweenFrame_onClick () |
| void | OpenKAGE_onClick () |
| void | ImportSVG_onClick () |
| void | ExportKS_onClick () |
| void | ExportHTML5_onClick () |
| void | ExportSVG_onClick () |
| void | ExportPNG_onClick () |
| void | ExportPNGTransparent_onClick () |
| void | ExportPNGSpritesheet_onClick () |
| void | ExportPNGSequence_onClick () |
| void | ExportVideo_onClick () |
| void | ProjectSave_onClick () |
| void | ProjectSaveAs_onClick () |
| void | ImportAsset_onClick () |
| virtual bool | on_delete_event (GdkEventAny *any_event) |
| virtual bool | on_key_press_event (GdkEventKey *e) override |
| virtual bool | on_key_release_event (GdkEventKey *e) override |
| void | doOpenKAGE () |
| void | doOpenKSF () |
| void | doImportSVG () |
| void | doSaveProjectDialog (std::string p_title) |
| void | doSaveProject (std::string p_filename) |
| void | doSaveDialog (std::string p_title) |
| bool | doSaveKSF (std::string p_filename) |
| void | doExportPNGDialog (std::string p_title, bool p_transparent) |
| void | addToolButton (const Glib::ustring &label) |
| void | btnAbout_onClick () |
| void | CheckUpdate_onClick () |
| void | Website_onClick () |
| void | openWebsite (std::string p_url) |
| bool | dtrace (std::string p_msg) |
| bool | saveKageStudio (std::string p_path, std::string p_msg) |
| bool | saveKageStudioFile (std::string p_path, std::string p_msg) |
| bool | exportHtml5 (std::string p_path, std::string p_msg) |
| bool | exportSvg (std::string p_path, std::string p_msg) |
| bool | exportKonsolScript (std::string p_path, std::string p_msg) |
| bool | dump (std::string p_path, std::string p_msg) |
| bool | fileWrite (std::string p_path, std::string p_msg, std::ofstream &p_file, bool &p_flag) |
| std::string | openTextFile (std::string p_path) |
| std::vector< double > | parseNumbers (std::string p_numbers) |
| std::vector< int > | parseColorString (std::string p_color) |
| void | parseKAGE_Children (std::vector< XmlTag > p_children) |
| void | parseKAGE (std::string p_content) |
| bool | parseKSF_Children (std::vector< XmlTag > p_children) |
| bool | parseKSF (std::string p_content) |
| void | parseSVG_ChildrenPathStyle (ColorData &p_pathColor, StrokeColorData &p_pathStrokeColor, XmlTagProperty &p_graphProperty) |
| void | parseSVG_ChildrenPath (double p_centerX, double p_centerY, ColorData &p_pathColor, StrokeColorData &p_pathStrokeColor, XmlTag &p_graphTag) |
| void | parseSVG_Children (std::vector< XmlTag > p_children) |
| void | parseSVG (std::string p_content) |
| std::string | runExternalGetResult (std::string p_cmd, std::string p_param) |
| bool | runExternal (std::string p_cmd, std::string p_param) |
| void | Play_onClick () |
| void | PlayFrame_onClick () |
| void | ToolNode_onClick () |
| void | ToolPoly_onClick () |
| void | ToolPencil_onClick () |
| void | ToolOval_onClick () |
| void | ToolRectangle_onClick () |
| void | ToolStroke_onClick () |
| void | ToolFill_onClick () |
| void | ToolEyedrop_onClick () |
| void | ToolZoom_onClick () |
| bool | on_tick (const Glib::RefPtr< Gdk::FrameClock > &frame_clock) |
| bool | handleUnsavedWork () |
| bool | m_LabelLibrary_onClick (GdkEventButton *event) |
| Kage::Kage | ( | std::string | p_filePath | ) |
|
virtual |
| void Kage::addDataToFrame | ( | VectorDataManager | v, |
| bool | p_force = false ) |

|
protected |
see addLayerFrame


|
protected |


|
protected |

| void Kage::btnDebug_onClick | ( | ) |

|
protected |


| void Kage::cleanupInterface | ( | ) |


| void Kage::Copy_onClick | ( | ) |


|
protected |
Copies Frame's full content

| void Kage::Cut_onClick | ( | ) |


|
protected |
Deletes a Frame via Selecting All then Deleting selected shapes


| void Kage::Delete_onClick | ( | ) |


|
protected |
Deletes a Frame via Selecting All then Deleting selected shapes


| void Kage::Deselect_onClick | ( | ) |


| void Kage::displayMouseXY | ( | double | p_x, |
| double | p_y ) |

| bool Kage::doDeleteFrame | ( | ) |

|
protected |


|
protected |


|
protected |


|
protected |


|
protected |

|
protected |


|
protected |


|
protected |


|
protected |

|
protected |


| std::string Kage::dumpFrame | ( | bool | bKS | ) |


| std::string Kage::dumpFrameToSvg | ( | ) |


| void Kage::Duplicate_onClick | ( | ) |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |

|
protected |


|
protected |


| void Kage::focusOnStage | ( | ) |
| void Kage::forceRenderFrames | ( | ) |


| unsigned int Kage::getDocumentCurrentScene | ( | ) |

| unsigned int Kage::getDocumentSceneCurrentLayer | ( | ) |

| unsigned int Kage::getDocumentSceneLayerCurrentFrame | ( | ) |

| VectorDataManager Kage::getFrameData | ( | bool | p_force = false | ) |
Returns Frame's VectorDataManager if visible, but can be forced to by-pass.
| p_force | to by-pass "Is Visible" blocking |

| VectorDataManager Kage::getFrameDataAt | ( | unsigned int | p_frame | ) |
For use on Onion Skin feature. Returns Frame's VectorDataManager only if it's visible.
| p_frame | is from 1 to total frame count, select any |

| Gdk::Color Kage::getStageBG | ( | ) |

| unsigned int Kage::getTween | ( | ) |

|
protected |


| unsigned int Kage::hexToInt15 | ( | char | p | ) |

| unsigned int Kage::hexToInt255 | ( | std::string | p | ) |


|
protected |


|
protected |


| char Kage::int15ToHex | ( | unsigned int | p | ) |

| std::string Kage::int255ToHex | ( | unsigned int | p | ) |


| bool Kage::isFrameEmpty | ( | ) |
| bool Kage::isLayerLocked | ( | ) |

|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


| void Kage::Library_onDragStart | ( | const Glib::RefPtr< Gdk::DragContext > & | context, |
| Gtk::SelectionData & | selection_data, | ||
| guint | p_info, | ||
| guint | time ) |

|
protected |


|
protected |


|
protected |


|
protected |

| void Kage::New_onClick | ( | ) |


|
protected |


|
protectedvirtual |

|
overrideprotectedvirtual |

|
overrideprotectedvirtual |

|
protected |


|
protected |

|
protected |


|
protected |
|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |
see addLayerFrame


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


| void Kage::Paste_onClick | ( | ) |


|
protected |
Overwrites Frame's current content via Selecting All then Deleting selected shapes then pasting buffer


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


| void Kage::propAssetPropertiesSetVisible | ( | bool | p_visible | ) |


| void Kage::propDisplayObjectPropertiesSetVisible | ( | bool | p_visible | ) |


| void Kage::propFillStrokeSetVisible | ( | bool | p_visible | ) |

| void Kage::propFrameTweenSetVisible | ( | bool | p_visible | ) |

| void Kage::propNodeXYSetVisible | ( | bool | p_visible | ) |


| void Kage::propShapePropertiesSetVisible | ( | bool | p_visible | ) |


| void Kage::propStageSetVisible | ( | bool | p_visible | ) |

|
protected |


|
protected |


|
protected |


|
protected |


| void Kage::Redo_onClick | ( | ) |


| void Kage::refreshUI | ( | ) |


| void Kage::registerPropertiesPane | ( | ) |

|
protected |


|
protected |


| void Kage::renderFrames | ( | ) |
Called on any Stage activity to update displayed shapes. This renders all frameN in all layers, where frameN is the currentFrame


| void Kage::renderFramesAboveCurrentLayer | ( | ) |

| void Kage::renderFramesBelowCurrentLayer | ( | ) |

| void Kage::renderOnionFrames | ( | ) |


|
protected |

|
protected |
| std::string Kage::saveFrame | ( | ) |


|
protected |


|
protected |


|
protected |


|
protected |


| bool Kage::sceneLayerSwitchToNextFrame | ( | ) |


| bool Kage::sceneLayerSwitchToPreviousFrame | ( | ) |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


| void Kage::SelectAll_onClick | ( | ) |


| void Kage::setCurrentLayerByID | ( | unsigned int | p_layerID | ) |
| bool Kage::setDocumentCurrentScene | ( | unsigned int | p_scene | ) |


| void Kage::setDocumentSceneCurrentLayer | ( | unsigned int | p_layer, |
| bool | p_addSelected ) |

| void Kage::setDocumentSceneLayerCurrentFrame | ( | unsigned int | p_frame, |
| bool | p_addSelected ) |


| void Kage::setFrameData | ( | VectorDataManager | p_vectorsData | ) |


| void Kage::setFrameData | ( | VectorDataManager | p_vectorsData, |
| bool | p_force ) |
| void Kage::setStageBG | ( | Gdk::Color | p_Color | ) |
|
protected |


|
protected |


|
protected |


| void Kage::stackDo | ( | ) |

| void Kage::Stage_onDragStop | ( | const Glib::RefPtr< Gdk::DragContext > & | context, |
| int | p_destX, | ||
| int | p_destY, | ||
| const Gtk::SelectionData & | selection_data, | ||
| guint | p_info, | ||
| guint | time ) |

| void Kage::Stop_onClick | ( | ) |

|
static |

|
static |

|
static |
|
protected |

|
protected |

|
protected |


|
protected |


|
protected |


|
protected |


|
protected |

|
protected |

|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


|
protected |


| void Kage::toolsButtonToggle | ( | std::string | p_toolTip | ) |

| void Kage::ToolSelect_onClick | ( | ) |


|
protected |


|
protected |


|
protected |
|
protected |


| void Kage::Undo_onClick | ( | ) |


| void Kage::updateAssetProperties | ( | ) |


| void Kage::updateColors | ( | ) |
We're updating the GUI's colors based on KageStage's Fill and Stroke colors.
| void Kage::updateNodeXY | ( | ) |


| void Kage::updateSelectedShapeColor | ( | bool | p_doFill = true, |
| bool | p_doStroke = true ) |
Used by Fill and Stroke tools.
| p_doFill | |
| p_doStroke |

| void Kage::updateShapeProperties | ( | ) |


|
protected |

|
protected |


|
protected |
|
protected |
|
protected |
| KageAssetManager Kage::_assetManager |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bool Kage::_displayObjectIsShape = false |
| KageProject Kage::_document |
| KageDocument Kage::_documentCopyBuffer |
| bool Kage::_isPlaying |
|
protected |
| KageLayersUI Kage::_layers |
| KageLibrary Kage::_library |
| bool Kage::_propFillVisible = false |
| bool Kage::_propStrokeVisible = false |
| KageScenesUI Kage::_scenes |
| KageStage Kage::_stage |
| KageTimeline Kage::_timeline |
| Gtk::ToggleButton Kage::_toggleOnion |
|
protected |
|
protected |
| Gtk::ToggleButton Kage::_toggleOnionLayer |
|
protected |
|
protected |
|
protected |
| UnRe Kage::_undoRedoManager |
| bool Kage::_UPDATE_SHAPE_COLORS |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| std::vector<VectorData> Kage::g_copiedData |
will contain copied Scene/s, its Layer/s, it's Frames
| std::vector<unsigned int> Kage::g_selectedItems |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| Gdk::Color Kage::m_Color |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| PropertyAsset Kage::m_propAsset |
|
protected |
|
protected |
|
protected |
| PropertyFillStroke Kage::m_propFillStroke |
| PropertyFrameTween Kage::m_propFrameTween |
| PropertyLocationSize Kage::m_propLocationSize |
| PropertyNodeXY Kage::m_propNodeXY |
| PropertyStage Kage::m_PropStage |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |