Canola  0.8.D001
Typedefs | Functions | Variables
canola/load_image.cc File Reference
#include <lib/config.h>
#include <map>
#include <canola/gui_search_path.h>
#include <canola/load_image.h>

Go to the source code of this file.

Typedefs

typedef std::map< std::string,
img_ptr_t
cache_t

Functions

img_ptr_t load_gui_image (const std::string &filename)
Gdk::RGBA custom_widget_background ("#cccccc")

Variables

static cache_t cache

Typedef Documentation

typedef std::map<std::string, img_ptr_t> cache_t

Definition at line 25 of file load_image.cc.


Function Documentation

Gdk::RGBA custom_widget_background ( "#cccccc"  )
img_ptr_t load_gui_image ( const std::string &  filename)

The load_gui_image function is used to obtaina pointer to an image from the /gui directory.

Parameters:
filenameThe name of the image to load. Do not add a "gui/" prefix. Do not add a ".png" suffix.

Definition at line 30 of file load_image.cc.


Variable Documentation

cache_t cache [static]

Definition at line 26 of file load_image.cc.