Class Item¶
Defined in File item.h
Inheritance Relationships¶
Derived Types¶
public portal::content_browser::DirectoryItem(Class DirectoryItem)public portal::content_browser::ResourceItem(Class ResourceItem)
Class Documentation¶
-
class Item¶
Subclassed by portal::content_browser::DirectoryItem, portal::content_browser::ResourceItem
Public Functions
-
Item(Type type, const StringId &resource_id, const std::string &name, const EditorIcon &icon)¶
-
virtual ~Item() = default¶
-
void on_render_begin() const¶
-
Action on_render(Entity selection_context, ItemList &item_list, EditorContext &editor_context)¶
-
void on_render_end() const¶
-
inline virtual void del()¶
-
inline virtual bool move(std::filesystem::path &destination)¶
-
inline const std::string &get_display_name() const¶
-
inline EditorIcon get_icon() const¶
-
void start_renaming()¶
-
void stop_renaming()¶
-
inline bool is_renaming() const¶
-
void rename(const std::string &new_name)¶
-
void set_display_name_from_file_name()¶
-
Item(Type type, const StringId &resource_id, const std::string &name, const EditorIcon &icon)¶