Back to index

unity  6.0.0
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes
unity::Settings Class Reference

#include <UnitySettings.h>

Collaboration diagram for unity::Settings:
Collaboration graph
[legend]

List of all members.

Classes

class  Impl

Public Member Functions

 Settings ()
 ~Settings ()
FormFactor GetFormFactor () const
void SetFormFactor (FormFactor factor)

Static Public Member Functions

static SettingsInstance ()

Public Attributes

nux::Property< bool > is_standalone
sigc::signal< void > changed

Private Attributes

Implpimpl

Detailed Description

Definition at line 36 of file UnitySettings.h.


Constructor & Destructor Documentation

Definition at line 111 of file UnitySettings.cpp.

  : is_standalone(false)
  , pimpl(new Impl(this))
{
  if (settings_instance)
  {
    LOG_ERROR(logger) << "More than one unity::Settings created.";
  }
  else
  {
    settings_instance = this;
  }
}

Definition at line 125 of file UnitySettings.cpp.

{
  delete pimpl;
  if (settings_instance == this)
    settings_instance = nullptr;
}

Member Function Documentation

Definition at line 142 of file UnitySettings.cpp.

{
  return pimpl->GetFormFactor();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 132 of file UnitySettings.cpp.

{
  if (!settings_instance)
  {
    LOG_ERROR(logger) << "No unity::Settings created yet.";
  }

  return *settings_instance;
}

Here is the caller graph for this function:

Definition at line 147 of file UnitySettings.cpp.

{
  pimpl->SetFormFactor(factor);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

sigc::signal<void> unity::Settings::changed

Definition at line 49 of file UnitySettings.h.

nux::Property<bool> unity::Settings::is_standalone

Definition at line 48 of file UnitySettings.h.

Definition at line 52 of file UnitySettings.h.


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