soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
IRenderFactory Struct Reference

RenderFactory object. More...

#include <SRender-i.h>

Inheritance diagram for IRenderFactory:
IObjRef

Public Member Functions

long AddRef () PURE
 Increments the reference count of the object.
 
long Release () PURE
 Decrements the reference count of the object.
 
void OnFinalRelease () PURE
 Final release of the object, performing cleanup if necessary.
 
IImgDecoderFactoryGetImgDecoderFactory () PURE
 Retrieves the image decoder factory associated with this render factory.
 
void SetImgDecoderFactory (IImgDecoderFactory *pImgDecoderFac) PURE
 Sets the image decoder factory for this render factory.
 
BOOL CreateRenderTarget (IRenderTarget **ppRenderTarget, int nWid=0, int nHei=0) PURE
 Creates a render target with specified dimensions.
 
BOOL CreateRenderTarget2 (IRenderTarget **ppRenderTarget, HWND hWnd) PURE
 Creates a render target associated with a specific window handle.
 
BOOL CreateFont (IFontS **ppFont, const LOGFONT *lf) PURE
 Creates a font object with specified attributes.
 
BOOL CreateBitmap (IBitmapS **ppBitmap) PURE
 Creates a bitmap object.
 
BOOL CreateRegion (IRegionS **ppRgn) PURE
 Creates a region object.
 
BOOL CreatePath (IPathS **ppPath) PURE
 Creates a path object.
 
HRESULT CreateBlurMaskFilter (float radius, BlurStyle style, BlurFlags flag, IMaskFilter **ppMaskFilter) PURE
 Creates a blur mask filter with specified parameters.
 
HRESULT CreateEmbossMaskFilter (float direction[3], float ambient, float specular, float blurRadius, IMaskFilter **ppMaskFilter) PURE
 Creates an emboss mask filter with specified parameters.
 
BOOL CreatePathEffect (REFGUID guidEffect, IPathEffect **ppPathEffect) PURE
 Creates a path effect with specified GUID.
 
IFontSGetDefFont () PURE
 Retrieves the default font object.
 
- Public Member Functions inherited from IObjRef
long AddRef () PURE
 Increases the reference count.
 
long Release () PURE
 Decreases the reference count.
 
void OnFinalRelease () PURE
 Called when the reference count reaches zero and the object is about to be released.
 

Detailed Description

RenderFactory object.

Describe This interface defines a factory for creating various rendering objects and managing resources.

Definition at line 2017 of file SRender-i.h.

Member Function Documentation

◆ AddRef()

long IRenderFactory::AddRef ( )

Increments the reference count of the object.

Returns
long - The new reference count.

◆ CreateBitmap()

BOOL IRenderFactory::CreateBitmap ( IBitmapS ** ppBitmap)

Creates a bitmap object.

Parameters
ppBitmap- Pointer to receive the created bitmap object.
Returns
BOOL - TRUE if successful, FALSE otherwise.

◆ CreateBlurMaskFilter()

HRESULT IRenderFactory::CreateBlurMaskFilter ( float radius,
BlurStyle style,
BlurFlags flag,
IMaskFilter ** ppMaskFilter )

Creates a blur mask filter with specified parameters.

Parameters
radius- Blur radius.
style- Blur style (e.g., normal, solid, outer, inner).
flag- Blur flags (e.g., ignore transform, high quality).
ppMaskFilter- Pointer to receive the created mask filter.
Returns
HRESULT - S_OK if successful, error code otherwise.

◆ CreateEmbossMaskFilter()

HRESULT IRenderFactory::CreateEmbossMaskFilter ( float direction[3],
float ambient,
float specular,
float blurRadius,
IMaskFilter ** ppMaskFilter )

Creates an emboss mask filter with specified parameters.

Parameters
direction- Array of 3 floats defining the light direction.
ambient- Ambient light intensity.
specular- Specular light intensity.
blurRadius- Blur radius for the emboss effect.
ppMaskFilter- Pointer to receive the created mask filter.
Returns
HRESULT - S_OK if successful, error code otherwise.

◆ CreateFont()

BOOL IRenderFactory::CreateFont ( IFontS ** ppFont,
const LOGFONT * lf )

Creates a font object with specified attributes.

Parameters
ppFont- Pointer to receive the created font object.
lf- Pointer to the LOGFONT structure defining the font attributes.
Returns
BOOL - TRUE if successful, FALSE otherwise.

◆ CreatePath()

BOOL IRenderFactory::CreatePath ( IPathS ** ppPath)

Creates a path object.

Parameters
ppPath- Pointer to receive the created path object.
Returns
BOOL - TRUE if successful, FALSE otherwise.

◆ CreatePathEffect()

BOOL IRenderFactory::CreatePathEffect ( REFGUID guidEffect,
IPathEffect ** ppPathEffect )

Creates a path effect with specified GUID.

Parameters
guidEffect- GUID identifying the path effect type.
ppPathEffect- Pointer to receive the created path effect.
Returns
BOOL - TRUE if successful, FALSE otherwise.

◆ CreateRegion()

BOOL IRenderFactory::CreateRegion ( IRegionS ** ppRgn)

Creates a region object.

Parameters
ppRgn- Pointer to receive the created region object.
Returns
BOOL - TRUE if successful, FALSE otherwise.

◆ CreateRenderTarget()

BOOL IRenderFactory::CreateRenderTarget ( IRenderTarget ** ppRenderTarget,
int nWid = 0,
int nHei = 0 )

Creates a render target with specified dimensions.

Parameters
ppRenderTarget- Pointer to receive the created render target.
nWid- Width of the render target (default is 0).
nHei- Height of the render target (default is 0).
Returns
BOOL - TRUE if successful, FALSE otherwise.

◆ CreateRenderTarget2()

BOOL IRenderFactory::CreateRenderTarget2 ( IRenderTarget ** ppRenderTarget,
HWND hWnd )

Creates a render target associated with a specific window handle.

Parameters
ppRenderTarget- Pointer to receive the created render target.
hWnd- Handle to the window.
Returns
BOOL - TRUE if successful, FALSE otherwise.

◆ GetDefFont()

IFontS * IRenderFactory::GetDefFont ( )

Retrieves the default font object.

Returns
IFontS* - Pointer to the default font object.

◆ GetImgDecoderFactory()

IImgDecoderFactory * IRenderFactory::GetImgDecoderFactory ( )

Retrieves the image decoder factory associated with this render factory.

Returns
IImgDecoderFactory* - Pointer to the image decoder factory.

◆ Release()

long IRenderFactory::Release ( )

Decrements the reference count of the object.

Returns
long - The new reference count.

◆ SetImgDecoderFactory()

void IRenderFactory::SetImgDecoderFactory ( IImgDecoderFactory * pImgDecoderFac)

Sets the image decoder factory for this render factory.

Parameters
pImgDecoderFac- Pointer to the new image decoder factory.

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