22#ifndef GTKMM_KAGE_ASSET_H
23 #define GTKMM_KAGE_ASSET_H
25 #include <gtkmm/drawingarea.h>
26 #include <gtkmm/entry.h>
28 #include "../../util/string/stringhelper.h"
76 void render(
unsigned int p_assetID);
84 virtual bool on_event(GdkEvent *e)
override;
86 bool on_draw(
const Cairo::RefPtr<Cairo::Context>& cr)
override;
forward declaration
Definition: asset.h:32
KageAsset::AssetType getAssetType()
Definition: asset.cpp:301
virtual bool on_key_release_event(GdkEventKey *e) override
Definition: asset.cpp:91
bool _CTRL
Definition: asset.h:96
AssetType
Definition: asset.h:34
@ ASSET_KAGE
Definition: asset.h:36
@ ASSET_IMAGE
Definition: asset.h:35
@ ASSET_VIDEO
Definition: asset.h:37
Gtk::Entry _txtLabel
Definition: asset.h:71
void setFileName(string p_fileName)
Set the original File Name where this ASSET was loaded.
Definition: asset.cpp:271
void setFilePath(string p_filePath)
Definition: asset.cpp:260
void setFocus()
Definition: asset.cpp:293
void setAssetType(KageAsset::AssetType p_assetType)
Definition: asset.cpp:297
string getLabel()
Definition: asset.cpp:282
bool _selected
Definition: asset.h:87
string _label
Definition: asset.h:89
static bool mouseIsDown
Definition: asset.h:40
KageAsset::AssetType _assetType
Definition: asset.h:88
void addEventsListener()
Definition: asset.cpp:68
void render(unsigned int p_assetID)
Definition: asset.cpp:305
bool isSelected()
Definition: asset.cpp:289
void setAssetHash(string p_assetHash)
When User imports a file, the original file is copied inside project file; the copied file name will ...
Definition: asset.cpp:253
unsigned int _renderAssetID
Definition: asset.h:95
virtual bool invalidateToRender()
Definition: asset.cpp:168
static Glib::RefPtr< Gdk::Pixbuf > iconASSET_VIDEO
Definition: asset.h:43
virtual bool on_key_press_event(GdkEventKey *e) override
Definition: asset.cpp:82
void setSelected(bool p_selected)
Definition: asset.cpp:285
virtual bool on_event(GdkEvent *e) override
Definition: asset.cpp:111
void txtLabel_onEnter()
Definition: asset.cpp:77
string _filePath
Definition: asset.h:92
virtual ~KageAsset()
Definition: asset.cpp:64
bool on_draw(const Cairo::RefPtr< Cairo::Context > &cr) override
Definition: asset.cpp:192
string getFilePath()
Definition: asset.cpp:263
void forceRender()
Definition: asset.cpp:160
string _fileName
Definition: asset.h:93
Glib::RefPtr< Gdk::Window > window
Definition: asset.h:45
string _assetHash
Definition: asset.h:78
string getAssetHash()
Definition: asset.cpp:256
static Glib::RefPtr< Gdk::Pixbuf > iconASSET_IMAGE
Definition: asset.h:41
void setLabel(string p_label)
Definition: asset.cpp:278
KageAssetManager * _assetManager
Definition: asset.h:91
string getFileName()
Definition: asset.cpp:274
unsigned int assetID
Definition: asset.h:67
static Glib::RefPtr< Gdk::Pixbuf > iconASSET_KAGE
Definition: asset.h:42
virtual bool on_expose_event(GdkEventExpose *e)
Definition: asset.cpp:100
Definition: assetmanager.h:34