You.i Engine
CYIViewTemplate::Source Class Reference

Detailed Description

Defines information about the sources a view template may have.

#include <import/YiViewTemplate.h>

Public Types

enum  Type {
  Type::Composition = 0,
  Type::Image,
  Type::Solid,
  Type::Null,
  Type::NPatch,
  Type::Mask,
  Type::None,
  Type::Sprite,
  Type::Adjustment,
  Type::Font
}
 

Public Member Functions

 Source ()
 
const CYIStringGetName () const
 
void SetName (const CYIString &name)
 
Type GetSourceType () const
 
void SetSourceType (Type sourceType)
 

Member Enumeration Documentation

◆ Type

Represents the different types of sources that exist.

Enumerator
Composition 

Represents a composition source.

Image 

Represents an image source.

Solid 

Represents a solid source.

Null 

Represents a null source.

NPatch 

Represents an image 9-patch source.

Mask 

Represents a mask source.

None 

Represents a source that has no type.

Sprite 

Represents a sprite source.

Adjustment 

Represents an adjustment layer source.

Font 

Represents a font source.

Constructor & Destructor Documentation

◆ Source()

CYIViewTemplate::Source::Source ( )

Member Function Documentation

◆ GetName()

const CYIString& CYIViewTemplate::Source::GetName ( ) const

◆ GetSourceType()

Type CYIViewTemplate::Source::GetSourceType ( ) const

◆ SetName()

void CYIViewTemplate::Source::SetName ( const CYIString name)

◆ SetSourceType()

void CYIViewTemplate::Source::SetSourceType ( Type  sourceType)

The documentation for this class was generated from the following file: