Detailed Description

Represents the GIF format.

Inheritance diagram for Gif.GifFormat:
PowerUI.ImageFormat

Public Member Functions

 GifFormat ()
 
 GifFormat (Gif gif)
 
override string[] GetNames ()
 The set of lowercase file types that this format will handle. More...
 
override Material GetImageMaterial (ShaderSet shaders)
 A single-frame image material. Used for e.g. videos and animations. More...
 
override bool LoadData (byte[] data, ImagePackage package)
 Loads the raw block of data into an object of this format. More...
 
override ImageFormat Instance ()
 Creates an instance of this format. More...
 
override bool InternallyCached (Location path, ImagePackage package)
 Some formats may cache their result internally. This checks and updates if it has. More...
 
override void ClearX ()
 Resets this image format container. More...
 
Material Start ()
 A shortcut for instancing it. More...
 
Material Start (bool lit)
 A shortcut for instancing it. More...
 
Material Start (Shader shader)
 A shortcut for instancing it. More...
 
override void GoingOnDisplay (Css.RenderableData context)
 Called when this image is going to be displayed. More...
 
override void GoingOffDisplay ()
 Called when this image is going to stop being displayed. More...
 
- Public Member Functions inherited from PowerUI.ImageFormat
virtual int GetAtlasID ()
 Get the identifier used for this content on an atlas. More...
 
Material GetImageMaterial ()
 A single-frame image material using the standard UI shader set. Used for e.g. videos and animations. More...
 
virtual bool LoadFromAsset (UnityEngine.Object asset, ImagePackage package)
 Attempt to load the image from a Unity resource. More...
 
virtual void OnLayout (RenderableData context, LayoutBox box, out float width, out float height)
 Called when the host element is drawing. More...
 
virtual bool DrawToAtlas (TextureAtlas atlas, AtlasLocation location)
 Draws this image to the given atlas. More...
 

Public Attributes

Gif GifFile
 The GIF that is in use, if any. More...
 
SPAInstance Animation
 An instance of the animation retrieved. More...
 

Properties

override int Height [get]
 
override int Width [get]
 
override bool Loaded [get]
 
override bool Isolate [get]
 
- Properties inherited from PowerUI.ImageFormat
virtual int Height [get]
 The height of the image. More...
 
virtual int Width [get]
 The width of the image. More...
 
virtual FilterMode FilterMode [get, set]
 Get/set the filter mode. More...
 
virtual bool Loaded [get]
 Is this image loaded? More...
 
virtual bool Isolate [get]
 Should this image be isolated - i.e. off atlas. More...
 

Constructor & Destructor Documentation

Gif.GifFormat.GifFormat ( )
inline
Gif.GifFormat.GifFormat ( Gif  gif)
inline

Member Function Documentation

override void Gif.GifFormat.ClearX ( )
inlinevirtual

Resets this image format container.

Reimplemented from PowerUI.ImageFormat.

override Material Gif.GifFormat.GetImageMaterial ( ShaderSet  shaders)
inlinevirtual

A single-frame image material. Used for e.g. videos and animations.

Reimplemented from PowerUI.ImageFormat.

override string [] Gif.GifFormat.GetNames ( )
inlinevirtual

The set of lowercase file types that this format will handle.

Reimplemented from PowerUI.ImageFormat.

override void Gif.GifFormat.GoingOffDisplay ( )
inlinevirtual

Called when this image is going to stop being displayed.

Reimplemented from PowerUI.ImageFormat.

override void Gif.GifFormat.GoingOnDisplay ( Css.RenderableData  context)
inlinevirtual

Called when this image is going to be displayed.

Reimplemented from PowerUI.ImageFormat.

override ImageFormat Gif.GifFormat.Instance ( )
inlinevirtual

Creates an instance of this format.

Reimplemented from PowerUI.ImageFormat.

override bool Gif.GifFormat.InternallyCached ( Location  path,
ImagePackage  package 
)
inlinevirtual

Some formats may cache their result internally. This checks and updates if it has.

Reimplemented from PowerUI.ImageFormat.

override bool Gif.GifFormat.LoadData ( byte[]  data,
ImagePackage  package 
)
inlinevirtual

Loads the raw block of data into an object of this format.

Reimplemented from PowerUI.ImageFormat.

Material Gif.GifFormat.Start ( )
inline

A shortcut for instancing it.

Material Gif.GifFormat.Start ( bool  lit)
inline

A shortcut for instancing it.

Material Gif.GifFormat.Start ( Shader  shader)
inline

A shortcut for instancing it.

Member Data Documentation

SPAInstance Gif.GifFormat.Animation

An instance of the animation retrieved.

Gif Gif.GifFormat.GifFile

The GIF that is in use, if any.

Property Documentation

override int Gif.GifFormat.Height
get
override bool Gif.GifFormat.Isolate
get
override bool Gif.GifFormat.Loaded
get
override int Gif.GifFormat.Width
get