Harlinn.Windows 0.1
|
This class performs all the same functions as the existing CommandSink (ID2D1CommandSink) class. It also enables access to the new primitive blend modes, MIN and ADD, through its SetPrimitiveBlend1 method. More...
#include <HWGraphics.h>
Public Types | |
using | Base = CommandSink |
![]() | |
using | Base = Unknown |
![]() | |
typedef IUnknown | InterfaceType |
Public Member Functions | |
void | SetPrimitiveBlend1 (D2D1_PRIMITIVE_BLEND primitiveBlend) const |
Sets a new primitive blend mode. | |
![]() | |
void | BeginDraw () const |
void | EndDraw () const |
void | SetAntialiasMode (D2D1_ANTIALIAS_MODE antialiasMode) const |
void | SetTags (D2D1_TAG tag1, D2D1_TAG tag2) const |
void | SetTextAntialiasMode (D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode) const |
void | SetTextRenderingParams (IDWriteRenderingParams *textRenderingParams) const |
void | SetTransform (const D2D1_MATRIX_3X2_F *transform) const |
void | SetPrimitiveBlend (D2D1_PRIMITIVE_BLEND primitiveBlend) const |
void | SetUnitMode (D2D1_UNIT_MODE unitMode) const |
void | Clear (const D2D1_COLOR_F *color) const |
void | DrawGlyphRun (D2D1_POINT_2F baselineOrigin, const DWRITE_GLYPH_RUN *glyphRun, const DWRITE_GLYPH_RUN_DESCRIPTION *glyphRunDescription, ID2D1Brush *foregroundBrush, DWRITE_MEASURING_MODE measuringMode) const |
void | DrawLine (D2D1_POINT_2F point0, D2D1_POINT_2F point1, ID2D1Brush *brush, FLOAT strokeWidth, ID2D1StrokeStyle *strokeStyle) const |
void | DrawGeometry (ID2D1Geometry *geometry, ID2D1Brush *brush, FLOAT strokeWidth, ID2D1StrokeStyle *strokeStyle) const |
void | DrawRectangle (const D2D1_RECT_F *rect, ID2D1Brush *brush, FLOAT strokeWidth, ID2D1StrokeStyle *strokeStyle) const |
void | DrawBitmap (ID2D1Bitmap *bitmap, const D2D1_RECT_F *destinationRectangle, FLOAT opacity, D2D1_INTERPOLATION_MODE interpolationMode, const D2D1_RECT_F *sourceRectangle, const D2D1_MATRIX_4X4_F *perspectiveTransform) const |
void | DrawImage (ID2D1Image *image, const D2D1_POINT_2F *targetOffset, const D2D1_RECT_F *imageRectangle, D2D1_INTERPOLATION_MODE interpolationMode, D2D1_COMPOSITE_MODE compositeMode) const |
void | DrawGdiMetafile (ID2D1GdiMetafile *gdiMetafile, const D2D1_POINT_2F *targetOffset) const |
void | FillMesh (ID2D1Mesh *mesh, ID2D1Brush *brush) const |
void | FillOpacityMask (ID2D1Bitmap *opacityMask, ID2D1Brush *brush, const D2D1_RECT_F *destinationRectangle, const D2D1_RECT_F *sourceRectangle) const |
void | FillGeometry (ID2D1Geometry *geometry, ID2D1Brush *brush, ID2D1Brush *opacityBrush) const |
void | FillRectangle (const D2D1_RECT_F *rect, ID2D1Brush *brush) const |
void | PushAxisAlignedClip (const D2D1_RECT_F *clipRect, D2D1_ANTIALIAS_MODE antialiasMode) const |
void | PushLayer (const D2D1_LAYER_PARAMETERS1 *layerParameters1, ID2D1Layer *layer) const |
void | PopAxisAlignedClip () const |
void | PopLayer () const |
![]() | |
constexpr | Unknown () noexcept |
Unknown (IUnknown *unknown, bool addref=false) noexcept | |
Unknown (REFIID iid, const Unknown &unknown, bool throwIfNoInterface=true) | |
Unknown (const Unknown &other) noexcept | |
Unknown (Unknown &&other) noexcept | |
~Unknown () noexcept | |
constexpr | operator bool () const noexcept |
Unknown & | operator= (const Unknown &other) noexcept |
Unknown & | operator= (Unknown &&other) noexcept |
void | swap (Unknown &other) noexcept |
void | ResetPtr (IUnknown *other=nullptr, bool addRef=false) noexcept |
Unknown & | operator= (nullptr_t) |
IUnknown * | Detach () |
template<typename T > requires std::is_base_of_v<Unknown, T > | |
T | As () const |
template<typename T > requires std::is_base_of_v<Unknown, T> | |
bool | Is () const noexcept |
template<typename T > requires std::is_base_of_v<IUnknown, T> | |
ComPtr< T > | As () const |
template<typename T > requires std::is_base_of_v<IUnknown, T> | |
bool | Is () const noexcept |
This function can be used to detect if an object supports a particular COM interface derived from IUnknown. | |
template<typename T = IUnknown> | |
T * | GetInterfacePointer () const noexcept |
bool | QueryInterface (REFIID riid, void **itf) const |
Queries a COM object for a pointer to one of its interface; identifying the interface by a reference to its interface identifier (IID). If the COM object implements the interface, then it returns a pointer to that interface after calling IUnknown::AddRef on it. | |
template<typename T > requires std::is_base_of_v<IUnknown, T> | |
bool | QueryInterface (T **itf) const |
constexpr bool | operator== (const Unknown &other) const noexcept |
constexpr bool | operator!= (const Unknown &other) const noexcept |
constexpr bool | operator== (const IUnknown *other) const noexcept |
constexpr bool | operator!= (const IUnknown *other) const noexcept |
Additional Inherited Members | |
![]() | |
template<typename T > requires std::is_base_of_v<Unknown, T> | |
static T | CoCreateInstanceFromClassId (const CLSID &clsid, DWORD classContext=CLSCTX_INPROC_SERVER) |
template<typename T > requires std::is_base_of_v<Unknown, T> | |
static T | CoCreateInstanceFromClassId (const wchar_t *clsid, DWORD classContext=CLSCTX_INPROC_SERVER) |
template<typename T > requires std::is_base_of_v<Unknown, T> | |
static T | CoCreateInstanceFromClassId (const WideString &clsid, DWORD classContext=CLSCTX_INPROC_SERVER) |
template<typename T > requires std::is_base_of_v<Unknown, T> | |
static T | CoCreateInstanceFromProgId (const wchar_t *progId, DWORD classContext=CLSCTX_INPROC_SERVER) |
template<typename T > requires std::is_base_of_v<Unknown, T> | |
static T | CoCreateInstanceFromProgId (const WideString &progId, DWORD classContext=CLSCTX_INPROC_SERVER) |
template<typename T > requires std::is_base_of_v<Unknown, T> | |
static T | CoCreateInstanceFromDll (const ModuleHandle &dll, const CLSID &clsid) |
![]() | |
IUnknown * | unknown_ |
This class performs all the same functions as the existing CommandSink (ID2D1CommandSink) class. It also enables access to the new primitive blend modes, MIN and ADD, through its SetPrimitiveBlend1 method.
|
inline |
Sets a new primitive blend mode.
primitiveBlend | The primitive blend that will apply to subsequent primitives. |