Back to index

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

#include <IconLoader.h>

Inheritance diagram for unity::IconLoader:
Inheritance graph
[legend]
Collaboration diagram for unity::IconLoader:
Collaboration graph
[legend]

List of all members.

Classes

class  Impl

Public Types

typedef sigc::slot< void,
std::string const &, unsigned,
glib::Object< GdkPixbuf >
const & > 
IconLoaderCallback

Public Member Functions

 IconLoader ()
 ~IconLoader ()
int LoadFromIconName (std::string const &icon_name, unsigned size, IconLoaderCallback slot)
 Each of the Load functions return an opaque handle.
int LoadFromGIconString (std::string const &gicon_string, unsigned size, IconLoaderCallback slot)
int LoadFromFilename (std::string const &filename, unsigned size, IconLoaderCallback slot)
int LoadFromURI (std::string const &uri, unsigned size, IconLoaderCallback slot)
void DisconnectHandle (int handle)

Static Public Member Functions

static IconLoaderGetDefault ()

Private Attributes

std::unique_ptr< Implpimpl

Detailed Description

Definition at line 33 of file IconLoader.h.


Member Typedef Documentation

typedef sigc::slot<void, std::string const&, unsigned, glib::Object<GdkPixbuf> const&> unity::IconLoader::IconLoaderCallback

Definition at line 36 of file IconLoader.h.


Constructor & Destructor Documentation

Definition at line 569 of file IconLoader.cpp.

  : pimpl(new Impl())
{
}

Definition at line 574 of file IconLoader.cpp.

{
}

Member Function Documentation

Definition at line 612 of file IconLoader.cpp.

{
  pimpl->DisconnectHandle(handle);
}

Here is the caller graph for this function:

Definition at line 578 of file IconLoader.cpp.

{
  static IconLoader default_loader;
  return default_loader;
}

Here is the caller graph for this function:

int unity::IconLoader::LoadFromFilename ( std::string const &  filename,
unsigned  size,
IconLoaderCallback  slot 
)

Definition at line 598 of file IconLoader.cpp.

{
  return pimpl->LoadFromFilename(filename, size, slot);
}

Here is the caller graph for this function:

int unity::IconLoader::LoadFromGIconString ( std::string const &  gicon_string,
unsigned  size,
IconLoaderCallback  slot 
)

Definition at line 591 of file IconLoader.cpp.

{
  return pimpl->LoadFromGIconString(gicon_string, size, slot);
}

Here is the caller graph for this function:

int unity::IconLoader::LoadFromIconName ( std::string const &  icon_name,
unsigned  size,
IconLoaderCallback  slot 
)

Each of the Load functions return an opaque handle.

The sole use for this is to disconnect the callback slot.

Definition at line 584 of file IconLoader.cpp.

{
  return pimpl->LoadFromIconName(icon_name, size, slot);
}

Here is the caller graph for this function:

int unity::IconLoader::LoadFromURI ( std::string const &  uri,
unsigned  size,
IconLoaderCallback  slot 
)

Definition at line 605 of file IconLoader.cpp.

{
  return pimpl->LoadFromURI(uri, size, slot);
}

Here is the caller graph for this function:


Member Data Documentation

std::unique_ptr<Impl> unity::IconLoader::pimpl [private]

Definition at line 67 of file IconLoader.h.


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