AlphaImage Class Reference

Image widget with optional alpha value. More...

#include <alphaimage.h>

List of all members.

Public Member Functions

 AlphaImage (const std::string &file)
 Constructor.
void set_alpha (double alpha)
 Set the alpha value for the image.
double get_alpha () const
 Get the alpha value.

Private Member Functions

virtual bool on_expose_event (GdkEventExpose *)

Private Attributes

Cairo::RefPtr
< Cairo::ImageSurface > 
m_Image
double m_Alpha
 The internal alpha value.


Detailed Description

Image widget with optional alpha value.

This widget displays an image with a customizable alpha value for transparency


Constructor & Destructor Documentation

AlphaImage::AlphaImage ( const std::string &  file  ) 

Constructor.

Parameters:
file Path to image file


Member Function Documentation

void AlphaImage::set_alpha ( double  alpha  ) 

Set the alpha value for the image.

Parameters:
alpha The alpha value, should be between 0.0 to 1.0

double AlphaImage::get_alpha (  )  const [inline]

Get the alpha value.

Returns:
The image's alpha value


The documentation for this class was generated from the following files:
Generated on Fri Feb 22 22:34:18 2008 for Phoenix Wright Case Editor API by  doxygen 1.5.3