Back to index

unity  6.0.0
Public Types | Public Member Functions | Private Member Functions | Private Attributes
unity::ui::IconTextureSource Class Reference

#include <IconTextureSource.h>

Inheritance diagram for unity::ui::IconTextureSource:
Inheritance graph
[legend]
Collaboration diagram for unity::ui::IconTextureSource:
Collaboration graph
[legend]

List of all members.

Public Types

enum  TransformIndex {
  TRANSFORM_TILE, TRANSFORM_IMAGE, TRANSFORM_HIT_AREA, TRANSFORM_GLOW,
  TRANSFORM_EMBLEM
}
typedef nux::ObjectPtr
< IconTextureSource
Ptr

Public Member Functions

 IconTextureSource ()
std::vector< nux::Vector4 > & GetTransform (TransformIndex index, int monitor)
virtual nux::Color BackgroundColor () const =0
virtual nux::Color GlowColor ()=0
virtual nux::BaseTexture * TextureForSize (int size)=0
virtual nux::BaseTexture * Emblem ()=0

Private Member Functions

 NUX_DECLARE_OBJECT_TYPE (IconTextureSource, nux::InitiallyUnownedObject)

Private Attributes

std::vector< std::map
< TransformIndex, std::vector
< nux::Vector4 > > > 
transform_map

Detailed Description

Definition at line 33 of file IconTextureSource.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
TRANSFORM_TILE 
TRANSFORM_IMAGE 
TRANSFORM_HIT_AREA 
TRANSFORM_GLOW 
TRANSFORM_EMBLEM 

Definition at line 39 of file IconTextureSource.h.


Constructor & Destructor Documentation

Definition at line 29 of file IconTextureSource.cpp.


Member Function Documentation

virtual nux::Color unity::ui::IconTextureSource::BackgroundColor ( ) const [pure virtual]
virtual nux::BaseTexture* unity::ui::IconTextureSource::Emblem ( ) [pure virtual]

Implemented in unity::launcher::MockLauncherIcon, unity::launcher::LauncherIcon, and unity::hud::HudIconTextureSource.

Here is the caller graph for this function:

std::vector< nux::Vector4 > & unity::ui::IconTextureSource::GetTransform ( TransformIndex  index,
int  monitor 
)

Definition at line 34 of file IconTextureSource.cpp.

{
  auto iter = transform_map[monitor].find(index);
  if (iter == transform_map[monitor].end())
  {
    auto iter2 = transform_map[monitor].insert(std::map<TransformIndex, std::vector<nux::Vector4> >::value_type(index, std::vector<nux::Vector4>(4)));
    return iter2.first->second;
  }

  return iter->second;
}

Here is the caller graph for this function:

virtual nux::Color unity::ui::IconTextureSource::GlowColor ( ) [pure virtual]
unity::ui::IconTextureSource::NUX_DECLARE_OBJECT_TYPE ( IconTextureSource  ,
nux::InitiallyUnownedObject   
) [private]
virtual nux::BaseTexture* unity::ui::IconTextureSource::TextureForSize ( int  size) [pure virtual]

Implemented in unity::launcher::MockLauncherIcon, unity::launcher::LauncherIcon, and unity::hud::HudIconTextureSource.

Here is the caller graph for this function:


Member Data Documentation

std::vector<std::map<TransformIndex, std::vector<nux::Vector4> > > unity::ui::IconTextureSource::transform_map [private]

Definition at line 61 of file IconTextureSource.h.


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