soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SHostPresenter Class Reference

Presenter class for the host window. This class manages the lifecycle and rendering of the host window. More...

#include <SHostPresenter.h>

Inheritance diagram for SHostPresenter:
TObjRefImpl< IHostPresenter >

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

SHostWndm_pHostWnd
 
- Protected Attributes inherited from TObjRefImpl< IHostPresenter >
LONG m_cRef
 Reference count.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SHostPresenter()

SNSBEGIN SHostPresenter::SHostPresenter ( SHostWnd * pHostWnd)

Constructor for SHostPresenter.

Parameters
pHostWndPointer to the host window.

Definition at line 132 of file SHostPresenter.cpp.

◆ ~SHostPresenter()

SHostPresenter::~SHostPresenter ( void )

Destructor for SHostPresenter.

Definition at line 137 of file SHostPresenter.cpp.

Member Function Documentation

◆ OnHostCreate()

void SHostPresenter::OnHostCreate ( )

Called when the host window is created.

Definition at line 141 of file SHostPresenter.cpp.

◆ OnHostDestroy()

void SHostPresenter::OnHostDestroy ( )

Called when the host window is destroyed.

Definition at line 145 of file SHostPresenter.cpp.

◆ OnHostPresent()

void SHostPresenter::OnHostPresent ( HDC hdc,
IRenderTarget * pMemRT,
LPCRECT rcDirty,
BYTE byAlpha )

Called to present the host window.

Parameters
hdcDevice context for drawing.
pMemRTPointer to the memory render target.
rcDirtyRectangle specifying the area to update.
byAlphaAlpha blending value.

Definition at line 153 of file SHostPresenter.cpp.

◆ OnHostResize()

void SHostPresenter::OnHostResize ( SIZE szHost)

Called when the host window is resized.

Parameters
szHostNew size of the host window.

Definition at line 149 of file SHostPresenter.cpp.

◆ UpdateLayerFromRenderTarget()

void SHostPresenter::UpdateLayerFromRenderTarget ( IRenderTarget * pRT,
BYTE byAlpha,
LPCRECT prcDirty = NULL )
protected

Updates the layer from the render target.

Parameters
pRTPointer to the render target.
byAlphaAlpha blending value.
prcDirtyOptional rectangle specifying the area to update.

Member Data Documentation

◆ m_pHostWnd

SHostWnd* SHostPresenter::m_pHostWnd
protected

Definition at line 47 of file SHostPresenter.h.


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