Files
textmate/Frameworks/cf/src/image.h
Allan Odgaard 9894969e67 Initial commit
2012-08-09 16:25:56 +02:00

22 lines
528 B
C++

#ifndef CF_IMAGE_H_KU6HL51
#define CF_IMAGE_H_KU6HL51
#include <oak/misc.h>
namespace cf
{
struct PUBLIC image_t
{
image_t (std::string const& path, std::string const& bundleId = NULL_STR);
image_t () { }
operator CGImageRef () const { return _value.get(); }
EXPLICIT operator bool () const { return _value.get() ? true : false; }
private:
typedef std::tr1::shared_ptr<struct CGImage> CGImagePtr;
CGImagePtr _value;
};
} /* cf */
#endif /* end of include guard: CF_IMAGE_H_KU6HL51 */