Presenter class for the host window. This class manages the lifecycle and rendering of the host window. More...
#include <SHostPresenter.h>
Public Member Functions | |
| SHostPresenter (SHostWnd *pHostWnd) | |
| Constructor for SHostPresenter. | |
| ~SHostPresenter (void) | |
| Destructor for SHostPresenter. | |
| void | OnHostCreate () OVERRIDE |
| Called when the host window is created. | |
| void | OnHostDestroy () OVERRIDE |
| Called when the host window is destroyed. | |
| void | OnHostResize (SIZE szHost) OVERRIDE |
| Called when the host window is resized. | |
| void | OnHostPresent (HDC hdc, IRenderTarget *pMemRT, LPCRECT rcDirty, BYTE byAlpha) OVERRIDE |
| Called to present the host window. | |
Public Member Functions inherited from TObjRefImpl< IHostPresenter > | |
| TObjRefImpl () | |
| Constructor that initializes the reference count to 1. | |
| virtual | ~TObjRefImpl () |
| Virtual destructor. | |
| long | AddRef () override |
| Increments the reference count. | |
| long | Release () override |
| Decrements the reference count and deletes the object if the count reaches zero. | |
| void | OnFinalRelease () override |
| Deletes the object. | |
Protected Member Functions | |
| void | UpdateLayerFromRenderTarget (IRenderTarget *pRT, BYTE byAlpha, LPCRECT prcDirty=NULL) |
| Updates the layer from the render target. | |
Protected Attributes | |
| SHostWnd * | m_pHostWnd |
Protected Attributes inherited from TObjRefImpl< IHostPresenter > | |
| LONG | m_cRef |
| Reference count. | |
Presenter class for the host window. This class manages the lifecycle and rendering of the host window.
Definition at line 44 of file SHostPresenter.h.
| SNSBEGIN SHostPresenter::SHostPresenter | ( | SHostWnd * | pHostWnd | ) |
Constructor for SHostPresenter.
| pHostWnd | Pointer to the host window. |
Definition at line 132 of file SHostPresenter.cpp.
| SHostPresenter::~SHostPresenter | ( | void | ) |
Destructor for SHostPresenter.
Definition at line 137 of file SHostPresenter.cpp.
| void SHostPresenter::OnHostCreate | ( | ) |
Called when the host window is created.
Definition at line 141 of file SHostPresenter.cpp.
| void SHostPresenter::OnHostDestroy | ( | ) |
Called when the host window is destroyed.
Definition at line 145 of file SHostPresenter.cpp.
| void SHostPresenter::OnHostPresent | ( | HDC | hdc, |
| IRenderTarget * | pMemRT, | ||
| LPCRECT | rcDirty, | ||
| BYTE | byAlpha ) |
Called to present the host window.
| hdc | Device context for drawing. |
| pMemRT | Pointer to the memory render target. |
| rcDirty | Rectangle specifying the area to update. |
| byAlpha | Alpha blending value. |
Definition at line 153 of file SHostPresenter.cpp.
| void SHostPresenter::OnHostResize | ( | SIZE | szHost | ) |
Called when the host window is resized.
| szHost | New size of the host window. |
Definition at line 149 of file SHostPresenter.cpp.
|
protected |
Updates the layer from the render target.
| pRT | Pointer to the render target. |
| byAlpha | Alpha blending value. |
| prcDirty | Optional rectangle specifying the area to update. |
|
protected |
Definition at line 47 of file SHostPresenter.h.