Back to index

unity  6.0.0
Public Types | Public Member Functions | Public Attributes
unity::dash::Lenses Class Reference

#include <Lenses.h>

Inheritance diagram for unity::dash::Lenses:
Inheritance graph
Collaboration diagram for unity::dash::Lenses:
Collaboration graph

List of all members.

Public Types

typedef std::vector< Lens::PtrLensList

Public Member Functions

virtual LensList GetLenses () const =0
 Get the currently loaded Lenses.
virtual Lens::Ptr GetLens (std::string const &lens_id) const =0
virtual Lens::Ptr GetLensAtIndex (std::size_t index) const =0

Public Attributes

nux::ROProperty< std::size_t > count
sigc::signal< void, Lens::Ptr & > lens_added

Detailed Description

Definition at line 33 of file Lenses.h.

Member Typedef Documentation

Definition at line 36 of file Lenses.h.

Member Function Documentation

virtual Lens::Ptr unity::dash::Lenses::GetLens ( std::string const &  lens_id) const [pure virtual]
virtual Lens::Ptr unity::dash::Lenses::GetLensAtIndex ( std::size_t  index) const [pure virtual]
virtual LensList unity::dash::Lenses::GetLenses ( ) const [pure virtual]

Get the currently loaded Lenses.

This is necessary as some of the consumers of this object employ a lazy-loading technique to reduce the overhead of starting Unity. Therefore, the Lenses may already have been loaded by the time the objects have been initiated (and so just connecting to the signals is not enough)

Implemented in unity::dash::FilesystemLenses, and unity::dash::HomeLens.

Here is the caller graph for this function:

Member Data Documentation

nux::ROProperty<std::size_t> unity::dash::Lenses::count

Definition at line 49 of file Lenses.h.

Definition at line 51 of file Lenses.h.

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