EditorResourcePreview

Helper to generate previews of resources or files.

This object is used to generate previews for resources of files.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_previewReady
void _previewReady(StringArg0 arg0, Texture arg1, Texture arg2, long arg3, StringArg4 arg4, VariantArg5 arg5)
addPreviewGenerator
void addPreviewGenerator(EditorResourcePreviewGenerator generator)

Create an own, custom preview generator.

checkForInvalidation
void checkForInvalidation(StringArg0 path)

Check if the resource changed, if so it will be invalidated and the corresponding signal emitted.

opAssign
EditorResourcePreview opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(EditorResourcePreview other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
queueEditedResourcePreview
void queueEditedResourcePreview(Resource resource, GodotObject receiver, StringArg2 receiver_func, VariantArg3 userdata)

Queue a resource being edited for preview (using an instance). Once the preview is ready, your receiver.receiver_func will be called either containing the preview texture or an empty texture (if no preview was possible). Callback must have the format: (path,texture,userdata). Userdata can be anything.

queueResourcePreview
void queueResourcePreview(StringArg0 path, GodotObject receiver, StringArg2 receiver_func, VariantArg3 userdata)

Queue a resource file for preview (using a path). Once the preview is ready, your receiver.receiver_func will be called either containing the preview texture or an empty texture (if no preview was possible). Callback must have the format: (path,texture,userdata). Userdata can be anything.

removePreviewGenerator
void removePreviewGenerator(EditorResourcePreviewGenerator generator)

Remove a custom preview generator.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
EditorResourcePreview _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta