Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
Dali::Internal::Adaptor::StyleMonitor Class Reference

This holds the platform's style information. More...

#include <style-monitor-impl.h>

Inheritance diagram for Dali::Internal::Adaptor::StyleMonitor:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Adaptor::StyleMonitor:
Collaboration graph
[legend]

Public Member Functions

 StyleMonitor (Integration::PlatformAbstraction &platformAbstraction)
 Constructor. More...
 
void StyleChanged (StyleChange::Type styleChange)
 Informs the Style Monitor that the style has changed. More...
 
std::string GetDefaultFontFamily () const
  More...
 
std::string GetDefaultFontStyle () const
  More...
 
int GetDefaultFontSize () const
  More...
 
const std::string & GetTheme () const
  More...
 
void SetTheme (const std::string &themeFilePath)
  More...
 
bool LoadThemeFile (const std::string &filename, std::string &output)
  More...
 
Dali::StyleMonitor::StyleChangeSignalTypeStyleChangeSignal ()
  More...
 
 StyleMonitor ()
 
 ~StyleMonitor ()
 
std::string GetDefaultFontFamily () const
 
float GetDefaultFontSize () const
 
const std::string & GetTheme () const
 
void SetTheme (std::string theme)
 
Dali::StyleMonitor::StyleChangeSignalTypeStyleChangeSignal ()
 
void EmitStyleChangeSignal (StyleChange::Type styleChange)
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static Dali::StyleMonitor Get ()
 Retrieve the initialized instance of the StyleMonitor. More...
 
static Dali::StyleMonitor Get ()
 

Protected Member Functions

virtual ~StyleMonitor ()
 Virtual Destructor. More...
 
- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 
- Protected Member Functions inherited from Dali::RefObject
 RefObject ()
 Default constructor. More...
 
virtual ~RefObject ()
 RefObject is intended as a base class. More...
 
 RefObject (const RefObject &rhs)
 Copy constructor. More...
 
RefObjectoperator= (const RefObject &rhs)
 Assignment operator. More...
 

Private Member Functions

void EmitStyleChangeSignal (StyleChange::Type styleChange)
 Emit the style change signal. More...
 

Private Attributes

Dali::StyleMonitor::StyleChangeSignalType mStyleChangeSignal
 Emitted when the style changes. More...
 
Integration::PlatformAbstractionmPlatformAbstraction
 Reference to the PlatformAbstraction (for retrieving defaults) More...
 
TextAbstraction::FontClient mFontClient
 
std::string mDefaultFontFamily
 The system default font family. More...
 
std::string mDefaultFontStyle
 The default font style. More...
 
std::string mUserDefinedThemeFilePath
 String containing the user defined theme file path. More...
 
int mDefaultFontSize
 The default accessibility font size e.g. 0 is smallest. More...
 
std::string mTheme
 

Static Private Attributes

static Dali::StyleMonitor mToolkitStyleMonitor
 

Detailed Description

This holds the platform's style information.

Stub for the StyleMonitor.

It provides a signal when any aspect of the default style changes on the device.

Definition at line 43 of file style-monitor-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::StyleMonitor::StyleMonitor ( Integration::PlatformAbstraction platformAbstraction)
Dali::Internal::Adaptor::StyleMonitor::~StyleMonitor ( )
protectedvirtual

Virtual Destructor.

Definition at line 99 of file style-monitor-impl.cpp.

Dali::Internal::Adaptor::StyleMonitor::StyleMonitor ( )

Definition at line 73 of file toolkit-style-monitor.cpp.

Referenced by Get().

Here is the caller graph for this function:

Dali::Internal::Adaptor::StyleMonitor::~StyleMonitor ( )

Member Function Documentation

void Dali::Internal::Adaptor::StyleMonitor::EmitStyleChangeSignal ( StyleChange::Type  styleChange)
inline

Definition at line 51 of file toolkit-style-monitor.cpp.

References mStyleChangeSignal.

void Dali::Internal::Adaptor::StyleMonitor::EmitStyleChangeSignal ( StyleChange::Type  styleChange)
inlineprivate

Emit the style change signal.

Parameters
[in]styleChangeThe details of the style change

Definition at line 181 of file style-monitor-impl.cpp.

References DALI_LOG_INFO, and mStyleChangeSignal.

Referenced by SetTheme(), and StyleChanged().

Here is the caller graph for this function:

static Dali::StyleMonitor Dali::Internal::Adaptor::StyleMonitor::Get ( )
static
Dali::StyleMonitor Dali::Internal::Adaptor::StyleMonitor::Get ( )
static
std::string Dali::Internal::Adaptor::StyleMonitor::GetDefaultFontFamily ( ) const
std::string Dali::Internal::Adaptor::StyleMonitor::GetDefaultFontFamily ( ) const

Definition at line 133 of file style-monitor-impl.cpp.

References mDefaultFontFamily.

float Dali::Internal::Adaptor::StyleMonitor::GetDefaultFontSize ( ) const
float Dali::Internal::Adaptor::StyleMonitor::GetDefaultFontSize ( ) const

Definition at line 143 of file style-monitor-impl.cpp.

References mDefaultFontSize.

std::string Dali::Internal::Adaptor::StyleMonitor::GetDefaultFontStyle ( ) const

Definition at line 138 of file style-monitor-impl.cpp.

References mDefaultFontStyle.

const std::string& Dali::Internal::Adaptor::StyleMonitor::GetTheme ( ) const
const std::string & Dali::Internal::Adaptor::StyleMonitor::GetTheme ( ) const

Definition at line 148 of file style-monitor-impl.cpp.

References mUserDefinedThemeFilePath.

bool Dali::Internal::Adaptor::StyleMonitor::LoadThemeFile ( const std::string &  filename,
std::string &  output 
)

Definition at line 159 of file style-monitor-impl.cpp.

void Dali::Internal::Adaptor::StyleMonitor::SetTheme ( std::string  theme)

Definition at line 97 of file toolkit-style-monitor.cpp.

References EmitStyleChangeSignal(), mTheme, and Dali::StyleChange::THEME_CHANGE.

Here is the call graph for this function:

void Dali::Internal::Adaptor::StyleMonitor::SetTheme ( const std::string &  themeFilePath)

Definition at line 153 of file style-monitor-impl.cpp.

References EmitStyleChangeSignal(), mUserDefinedThemeFilePath, and Dali::StyleChange::THEME_CHANGE.

Here is the call graph for this function:

void Dali::Internal::Adaptor::StyleMonitor::StyleChanged ( StyleChange::Type  styleChange)
Dali::StyleMonitor::StyleChangeSignalType& Dali::Internal::Adaptor::StyleMonitor::StyleChangeSignal ( )
Dali::StyleMonitor::StyleChangeSignalType & Dali::Internal::Adaptor::StyleMonitor::StyleChangeSignal ( )

Definition at line 176 of file style-monitor-impl.cpp.

References mStyleChangeSignal.

Member Data Documentation

std::string Dali::Internal::Adaptor::StyleMonitor::mDefaultFontFamily
private

The system default font family.

Definition at line 130 of file style-monitor-impl.h.

Referenced by GetDefaultFontFamily(), StyleChanged(), and StyleMonitor().

int Dali::Internal::Adaptor::StyleMonitor::mDefaultFontSize
private

The default accessibility font size e.g. 0 is smallest.

Definition at line 133 of file style-monitor-impl.h.

Referenced by GetDefaultFontSize(), StyleChanged(), and StyleMonitor().

std::string Dali::Internal::Adaptor::StyleMonitor::mDefaultFontStyle
private

The default font style.

Definition at line 131 of file style-monitor-impl.h.

Referenced by GetDefaultFontStyle().

TextAbstraction::FontClient Dali::Internal::Adaptor::StyleMonitor::mFontClient
private

Definition at line 129 of file style-monitor-impl.h.

Referenced by StyleChanged(), and StyleMonitor().

Integration::PlatformAbstraction& Dali::Internal::Adaptor::StyleMonitor::mPlatformAbstraction
private

Reference to the PlatformAbstraction (for retrieving defaults)

Definition at line 127 of file style-monitor-impl.h.

Referenced by StyleChanged(), and StyleMonitor().

Dali::StyleMonitor::StyleChangeSignalType Dali::Internal::Adaptor::StyleMonitor::mStyleChangeSignal
private

Emitted when the style changes.

Definition at line 125 of file style-monitor-impl.h.

Referenced by EmitStyleChangeSignal(), and StyleChangeSignal().

std::string Dali::Internal::Adaptor::StyleMonitor::mTheme
private

Definition at line 59 of file toolkit-style-monitor.cpp.

Referenced by SetTheme().

Dali::StyleMonitor Dali::Internal::Adaptor::StyleMonitor::mToolkitStyleMonitor
staticprivate

Definition at line 58 of file toolkit-style-monitor.cpp.

std::string Dali::Internal::Adaptor::StyleMonitor::mUserDefinedThemeFilePath
private

String containing the user defined theme file path.

Definition at line 132 of file style-monitor-impl.h.

Referenced by GetTheme(), and SetTheme().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali