MGUI::GADGET_IMAGE Class Reference

Simple image gadget with source from pipeline and tooltip support. More...

#include <mgui/gadgetimage.h>

Inheritance diagram for MGUI::GADGET_IMAGE:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GADGET_IMAGE (MGUI::TOOLCANVAS *pCanvas, PLACEMENT PlacementsAllowed, FLAGS flags=FLAG_None, CANVASDEVICES CanvasDevices=CANVASDEVICE_Memory)
 ~GADGET_IMAGE ()
void SetImage (SPATMOD::IMAGE::STAGE *pStage, bool TakeOwnership)
void SetToolTip (const MISTRING &tooltip)
void SetUseAlphaBlend (bool UseAlphaBlend=true)

Detailed Description

Simple image gadget with source from pipeline and tooltip support.


Constructor & Destructor Documentation

MGUI::GADGET_IMAGE::GADGET_IMAGE ( MGUI::TOOLCANVAS pCanvas,
PLACEMENT  PlacementsAllowed,
FLAGS  flags = FLAG_None,
CANVASDEVICES  CanvasDevices = CANVASDEVICE_Memory 
)

Contructor.

Parameters:
pCanvas Canvas to contain gadget
PlacementsAllowed Allowed placements
MGUI::GADGET_IMAGE::~GADGET_IMAGE (  ) 

Destructor.


Member Function Documentation

void MGUI::GADGET_IMAGE::SetImage ( SPATMOD::IMAGE::STAGE pStage,
bool  TakeOwnership 
) [inline]

Set image.

If caller retains ownership the specified stage must exist for the life of the gadget.

Parameters:
pStage Pointer to stage
TakeOwnership Whether to take ownership
void MGUI::GADGET_IMAGE::SetToolTip ( const MISTRING tooltip  )  [inline]

Set tooltip string.

void MGUI::GADGET_IMAGE::SetUseAlphaBlend ( bool  UseAlphaBlend = true  )  [inline]

Set whether to use alpha blending when drawing.


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

Generated on Sun Oct 7 21:36:09 2012 for TNTsdk 2012 by  doxygen 1.6.1