Smart Gallery v1.1
 
Loading...
Searching...
No Matches
TextureContent Class Reference

The content type for displaying textures. More...

Inheritance diagram for TextureContent:
RawImageContent ContentType

Public Member Functions

override Texture GetPreviewTexture ()
 Gets the preview texture of the content.
 

Static Public Member Functions

static Frame CreateFrame (Texture texture)
 Creates a frame with the texture.
 

Public Attributes

Texture texture
 The texture of the content.
 

Protected Member Functions

override void LoadContentData (Content content)
 Loads the data of the content.
 
override bool ValidateProperties ()
 Validates the properties of the content.
 

Properties

override bool allowZoom [get]
 Whether the content can be zoomed.
 
override string name [get]
 The name of the content type.
 

Additional Inherited Members

Detailed Description

The content type for displaying textures.

Member Function Documentation

◆ CreateFrame()

static Frame CreateFrame ( Texture texture)
static

Creates a frame with the texture.

Parameters
textureThe texture.
Returns
The frame.

◆ GetPreviewTexture()

override Texture GetPreviewTexture ( )
virtual

Gets the preview texture of the content.

Returns
The preview texture.

Reimplemented from ContentType.

◆ LoadContentData()

override void LoadContentData ( Content content)
protected

Loads the data of the content.

Parameters
contentThe content.

◆ ValidateProperties()

override bool ValidateProperties ( )
protected

Validates the properties of the content.

Returns
Whether the properties are valid.