pub enum DefaultNodeIcon {
Custom(PathBuf),
BaseClass,
NodeRust(NodeRust, PathBuf),
Node,
}Available on crate features
icons and find_icons only.Expand description
Node icon to use as the default node when none are specified.
Variants§
Custom(PathBuf)
When using a custom icon. The path used is relative to the base directory for icons.
BaseClass
When using the icon of the base class of the node. They will always be searched for in the editor directory for icons.
NodeRust(NodeRust, PathBuf)
When using one of the NODES_RUST icon. The path used is relative to the to the base directory for icons, but it’s only to the folder that contains the NodeRust files, it must NOT have the filename in it.
Node
When using the default Godot node icon.
Trait Implementations§
Source§impl Clone for DefaultNodeIcon
impl Clone for DefaultNodeIcon
Source§fn clone(&self) -> DefaultNodeIcon
fn clone(&self) -> DefaultNodeIcon
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultNodeIcon
impl Debug for DefaultNodeIcon
Source§impl Default for DefaultNodeIcon
impl Default for DefaultNodeIcon
Source§fn default() -> DefaultNodeIcon
fn default() -> DefaultNodeIcon
Returns the “default value” for a type. Read more
Source§impl PartialEq for DefaultNodeIcon
impl PartialEq for DefaultNodeIcon
impl StructuralPartialEq for DefaultNodeIcon
Auto Trait Implementations§
impl Freeze for DefaultNodeIcon
impl RefUnwindSafe for DefaultNodeIcon
impl Send for DefaultNodeIcon
impl Sync for DefaultNodeIcon
impl Unpin for DefaultNodeIcon
impl UnwindSafe for DefaultNodeIcon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more