NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
2d_render_target_interface.h
Go to the documentation of this file.
1 #ifndef SDK_2D_RENDER_TARGET_INTERFACE_H_
11 #define SDK_2D_RENDER_TARGET_INTERFACE_H_
12 
13 #include <base/inc/platform.h>
14 #include <base/inc/base_types.h>
19 #include "2d_graphics_consts.h"
20 #include "2d_graphics_objects.h"
26 
27 namespace sdk {
28 namespace gfx {
29 
32 typedef enum RenderTarget2DType
33 {
36 
44  // \brief Render target, based on Direct2D, which renders to Microsoft Windows Imaging Component (WIC) bitmap
45  // RenderTarget2D_Direct2D_WIC = 0x04, // Reserved for future implementation
46 
54 
60 } RenderTarget2DType;
61 
64 class I2DRenderTarget : public sdk::ISDKComponent
65 {
66  public:
68  virtual RenderTarget2DType SDK_CALLTYPE GetType() const throw() = 0;
69 
71  virtual SDKResult SDK_CALLTYPE GetParent(
72  sdk::gfx::RenderTargetFactorySP& parent) const throw() = 0;
73 
77  virtual SDKResult SDK_CALLTYPE Reinitialize() throw() = 0;
78 
80  virtual SDKResult SDK_CALLTYPE GetRenderTargetSize(SDKSize& size) const throw() = 0;
81 
88  virtual SDKResult SDK_CALLTYPE SetDPI(const float& dpi_xy) throw() = 0;
90  virtual SDKResult SDK_CALLTYPE GetDPI(float& dpi_xy) const throw() = 0;
91 
93  virtual SDKResult SDK_CALLTYPE SetAntiAliasingMode(
94  const sdk::gfx::AntiAliasingMode& mode) throw() = 0;
96  virtual SDKResult SDK_CALLTYPE GetAntiAliasingMode(
97  sdk::gfx::AntiAliasingMode& mode) const throw() = 0;
98 
100  virtual SDKResult SDK_CALLTYPE SetMeasurementUnitsType(
101  const sdk::gfx::MeasurementUnits& units_type) throw() = 0;
103  virtual SDKResult SDK_CALLTYPE GetMeasurementUnitsType(
104  sdk::gfx::MeasurementUnits& units_type) const throw() = 0;
105 
107  virtual SDKResult SDK_CALLTYPE CreateBitmap(
108  const sdk::vis::scene::ITextureSP& texture,
109  sdk::gfx::RenderTargetBitmapSP& bitmap) const throw() = 0;
110 
113  virtual SDKResult SDK_CALLTYPE CreateBitmapFromRawData(
114  const SDKSize& bitmap_size, const SDKUInt32& source_data_stride_size,
115  const sdk::gfx::PixelFormats& source_data_pixel_format, const SDKUInt8* source_data,
116  sdk::gfx::RenderTargetBitmapSP& bitmap) const throw() = 0;
117 
120  virtual SDKResult SDK_CALLTYPE CreateIndexBitmap(
121  const SDKSize& bitmap_size, const SDKUInt32& source_data_stride_size,
122  const sdk::gfx::PixelFormats& source_data_pixel_format, const SDKUInt8* source_data,
123  const SDKUInt8* source_palette_data, SDKUInt32 source_palette_data_size,
124  sdk::gfx::RenderTargetBitmapSP& bitmap) const throw() = 0;
125 
127  virtual SDKResult SDK_CALLTYPE CreateSolidColorBrush(const SDKColorF& clr,
128  sdk::gfx::RenderTargetBrushSP& brush) const throw() = 0;
130  virtual SDKResult SDK_CALLTYPE CreateBitmapBrush(
131  const sdk::gfx::RenderTargetBitmapSP& bitmap,
132  const sdk::gfx::BitmapBrushExtendMode& ox_extend_mode,
133  const sdk::gfx::BitmapBrushExtendMode& oy_extend_mode,
134  sdk::gfx::RenderTargetBrushSP& brush) const throw() = 0;
135 
138  virtual SDKResult SDK_CALLTYPE CreateStrokeStyle(
139  const sdk::gfx::StrokeStyleOptions& style_options,
140  const float* line_dash_pattern, const SDKUInt32& line_dash_pattern_size,
141  sdk::gfx::RenderTargetStrokeStyleSP& stroke_style) const throw() = 0;
142 
144  virtual SDKResult SDK_CALLTYPE CreateText(const SDKString& output_text,
145  const SDKString& font_family_name, const sdk::gfx::FontStyle& font_style,
146  const sdk::gfx::FontWeight& font_weight, const float& font_size,
147  sdk::gfx::RenderTargetTextSP& text) const throw() = 0;
148 
152  virtual SDKResult SDK_CALLTYPE CalcStrokedBounds(
153  const sdk::gfx::GraphicsPathSP& path,
154  const SDKMatrix3X2& transformation_matrix, const float& line_width,
155  const sdk::gfx::RenderTargetStrokeStyleSP& stroke_style,
156  SDKRectF2D& bounds) const throw() = 0;
157 
161  virtual SDKResult SDK_CALLTYPE GetTextPath(const SDKPointF2D& origin_point,
162  const sdk::gfx::RenderTargetTextSP& text,
163  sdk::gfx::GraphicsPathSP& text_path) const throw() = 0;
166  virtual SDKResult SDK_CALLTYPE CalcTextBounds(const SDKPointF2D& origin_point,
167  const sdk::gfx::RenderTargetTextSP& text, SDKRectF2D& bounds) const throw() = 0;
170  virtual SDKResult SDK_CALLTYPE GetTextFontMetrics(
171  const sdk::gfx::RenderTargetTextSP& text,
172  sdk::gfx::FontMetrics& text_font_metrics) const throw() = 0;
173 
176  virtual SDKResult SDK_CALLTYPE StartDraw() throw() = 0;
179  virtual SDKResult SDK_CALLTYPE FinishDraw() throw() = 0;
182  virtual SDKResult SDK_CALLTYPE IsDrawInProgress(
183  bool& is_draw_in_progress) const throw() = 0;
184 
186  virtual SDKResult SDK_CALLTYPE FlushBuffers() throw() = 0;
187 
189  virtual SDKResult SDK_CALLTYPE FillBackground(const SDKColorF& clr) const throw() = 0;
190 
192  virtual SDKResult SDK_CALLTYPE FillPath(const sdk::gfx::GraphicsPathSP& path,
193  const sdk::gfx::RenderTargetBrushSP& brush) const throw() = 0;
200  virtual SDKResult SDK_CALLTYPE DrawPath(const sdk::gfx::GraphicsPathSP& path,
201  const sdk::gfx::RenderTargetBrushSP& brush, const float& line_width,
202  const sdk::gfx::RenderTargetStrokeStyleSP& stroke_style) const throw() = 0;
206  virtual SDKResult SDK_CALLTYPE WriteText(const SDKPointF2D& origin_point,
207  const sdk::gfx::RenderTargetTextSP& text,
208  const sdk::gfx::RenderTargetBrushSP& brush) const throw() = 0;
211  virtual SDKResult SDK_CALLTYPE DrawBitmap(const RenderTargetBitmapSP& bitmap,
212  const SDKRectF2D& source_bitmap_rect, const SDKRectF2D& dest_rect) const throw() = 0;
213 
215  virtual SDKResult SDK_CALLTYPE PushTransformationMatrix(
216  const SDKMatrix3X2& transformation_matrix) throw() = 0;
218  virtual SDKResult SDK_CALLTYPE PopTransformationMatrix() throw() = 0;
220  virtual SDKResult SDK_CALLTYPE GetTransformationMatrix(
221  SDKMatrix3X2& transformation_matrix) const throw() = 0;
223  virtual SDKResult SDK_CALLTYPE RemoveTransformationMatrixes() throw() = 0;
224 
226  virtual SDKResult SDK_CALLTYPE PushClippingPath(
227  const sdk::gfx::GraphicsPathSP& clip_path) throw() = 0;
229  virtual SDKResult SDK_CALLTYPE PopClippingPath() throw() = 0;
231  virtual SDKResult SDK_CALLTYPE RemoveClippingPathes() throw() = 0;
232 
242 
244  SDK_IMPLEMENT_IID(I2DRenderTarget)
245  SDK_END_INTERFACE(I2DRenderTarget)
246 };
247 SDK_DECLARE_IID(I2DRenderTarget)
248 
249 class RTAutoStartFinishDraw
252 {
253 public:
254  RTAutoStartFinishDraw(const RenderTargetSP& rt)
255  : m_rt(rt), m_start_draw_res(kSDKResult_NotInitialized)
256  {
257  if (m_rt) {
258  bool is_draw_in_progress = false;
259  if (SDK_OK(m_rt->IsDrawInProgress(is_draw_in_progress))) {
260  if (!is_draw_in_progress) {
261  m_start_draw_res = m_rt->StartDraw();
262  }
263  }
264  }
265  }
266 
267  ~RTAutoStartFinishDraw()
268  {
269  FinishDraw();
270  }
271 
272  inline bool IsDrawStarted() const throw() {
273  bool is_draw_in_progress = false;
274  if (!m_rt || SDK_FAILED(m_rt->IsDrawInProgress(is_draw_in_progress)))
275  return false;
276  return is_draw_in_progress;
277  }
278 
279  void FinishDraw()
280  {
281  if (m_rt && SDK_OK(m_start_draw_res)) {
282  m_rt->FinishDraw();
283  m_start_draw_res = kSDKResult_NotInitialized;
284  }
285  }
286 
287 private:
288  const RenderTargetSP m_rt;
289  SDKResult m_start_draw_res;
290 };
292 
295 class RTAutoRestoreAntiAliasingState
296 {
297 public:
298  RTAutoRestoreAntiAliasingState(const RenderTargetSP& rt,
299  const sdk::gfx::AntiAliasingMode& new_mode)
300  : m_rt(rt), m_new_mode_applied(false), m_prev_mode(sdk::gfx::AntiAliasingMode_None)
301  {
302  do
303  {
304  if (!m_rt)
305  break;
306  if (IsSDKResultError(m_rt->GetAntiAliasingMode(m_prev_mode)))
307  break;
308  if (IsSDKResultError(m_rt->SetAntiAliasingMode(new_mode)))
309  break;
310 
311  m_new_mode_applied = true;
312  }
313  while (false);
314  }
315 
316  ~RTAutoRestoreAntiAliasingState()
317  {
318  if (m_rt && m_new_mode_applied)
319  m_rt->SetAntiAliasingMode(m_prev_mode);
320  }
321 
322  inline bool IsNewModeApplied() const throw() { return m_new_mode_applied; }
323 
324 private:
325  const RenderTargetSP m_rt;
326  bool m_new_mode_applied;
327  sdk::gfx::AntiAliasingMode m_prev_mode;
328 };
330 
331 } // namespace gfx
332 } // namespace sdk
333 
334 #endif // SDK_2D_RENDER_TARGET_INTERFACE_H_
sdk::gfx::RenderTarget2D_SKIA_OpenGL_Texture
@ RenderTarget2D_SKIA_OpenGL_Texture
Render target, based on SKIA, which renders by using OpenGL to texture.
Definition: 2d_render_target_interface.h:53
sdk::gfx::I2DRenderTarget::SetAntiAliasingMode
virtual SDKResult SDK_CALLTYPE SetAntiAliasingMode(const sdk::gfx::AntiAliasingMode &mode)=0
Sets new anti-aliasing mode.
sdk::gfx::I2DRenderTarget::RemoveTransformationMatrixes
virtual SDKResult SDK_CALLTYPE RemoveTransformationMatrixes()=0
Removes all of applied user-defined transformation matrixes.
2d_graphics_path_interface.h
Graphics path primitive, which can be drawn by using render target object.
SDKColorF
A RGBA color.
Definition: color_base_types.h:15
sdk::gfx::I2DRenderTarget::RemoveClippingPathes
virtual SDKResult SDK_CALLTYPE RemoveClippingPathes()=0
Removes all of applied clipping paths from clipping stack.
sdk::gfx::PixelFormats
PixelFormats
Supported pixel formats for render targets.
Definition: 2d_graphics_consts.h:24
sdk::gfx::I2DRenderTarget::FinishDraw
virtual SDKResult SDK_CALLTYPE FinishDraw()=0
Finishes the draw process. No calls to drawing methods are allowed more, till another call to StartDr...
sdk::gfx::RenderTarget2D_SKIA_Software_Window
@ RenderTarget2D_SKIA_Software_Window
Google SKIA render targets, based on software rendering (kRenderTargetFactorySKIA_CID factory) Render...
Definition: 2d_render_target_interface.h:57
sdk::gfx::AntiAliasingMode
AntiAliasingMode
Possible anti-aliasing modes.
Definition: 2d_graphics_consts.h:95
sdk::gfx::I2DRenderTarget::Reinitialize
virtual SDKResult SDK_CALLTYPE Reinitialize()=0
Forces the render target to reinitialize all of underlying components in case it's possible....
sdk::gfx::I2DRenderTarget::DrawBitmap
virtual SDKResult SDK_CALLTYPE DrawBitmap(const RenderTargetBitmapSP &bitmap, const SDKRectF2D &source_bitmap_rect, const SDKRectF2D &dest_rect) const =0
Draws the specified bitmap by using source rectangle from bitmap and fitting it to destination rectan...
sdk::gfx::I2DRenderTarget::CreateBitmap
virtual SDKResult SDK_CALLTYPE CreateBitmap(const sdk::vis::scene::ITextureSP &texture, sdk::gfx::RenderTargetBitmapSP &bitmap) const =0
Creates new Bitmap object from ITexture object.
sdk::gfx::RenderTarget2D_Direct2D_DXGI
@ RenderTarget2D_Direct2D_DXGI
Render target, based on Direct2D, which renders to DirectX surface.
Definition: 2d_render_target_interface.h:43
sdk::gfx::I2DRenderTarget::WriteText
virtual SDKResult SDK_CALLTYPE WriteText(const SDKPointF2D &origin_point, const sdk::gfx::RenderTargetTextSP &text, const sdk::gfx::RenderTargetBrushSP &brush) const =0
Draws the specified text by using the origin point and foreground brush The font size is interpreted ...
sdk::gfx::I2DRenderTarget::CreateIndexBitmap
virtual SDKResult SDK_CALLTYPE CreateIndexBitmap(const SDKSize &bitmap_size, const SDKUInt32 &source_data_stride_size, const sdk::gfx::PixelFormats &source_data_pixel_format, const SDKUInt8 *source_data, const SDKUInt8 *source_palette_data, SDKUInt32 source_palette_data_size, sdk::gfx::RenderTargetBitmapSP &bitmap) const =0
Creates new Bitmap object by using index bitmap data source with palettes Stride order should be same...
base_types.h
SDK base types.
sdk::gfx::RenderTarget2D_SKIA_OpenGL_Context
@ RenderTarget2D_SKIA_OpenGL_Context
Google SKIA render targets (kRenderTargetFactorySKIA_CID factory) Render target, based on SKIA,...
Definition: 2d_render_target_interface.h:49
sdk::gfx::I2DRenderTarget::GetMeasurementUnitsType
virtual SDKResult SDK_CALLTYPE GetMeasurementUnitsType(sdk::gfx::MeasurementUnits &units_type) const =0
Returns current measurement units type.
sdk::gfx::I2DRenderTarget::CreateStrokeStyle
virtual SDKResult SDK_CALLTYPE CreateStrokeStyle(const sdk::gfx::StrokeStyleOptions &style_options, const float *line_dash_pattern, const SDKUInt32 &line_dash_pattern_size, sdk::gfx::RenderTargetStrokeStyleSP &stroke_style) const =0
Creates a new stroke style See the DrawPath description for important notes.
sdk::gfx::RenderTarget2D_Unknown
@ RenderTarget2D_Unknown
Render target type is unknown.
Definition: 2d_render_target_interface.h:35
sdk::gfx::I2DRenderTarget::GetDPI
virtual SDKResult SDK_CALLTYPE GetDPI(float &dpi_xy) const =0
Returns current render target DPI.
sdk::gfx::AntiAliasingMode_None
@ AntiAliasingMode_None
Anti-aliasing is disabled.
Definition: 2d_graphics_consts.h:97
sdk::gfx::I2DRenderTarget::PopTransformationMatrix
virtual SDKResult SDK_CALLTYPE PopTransformationMatrix()=0
Removes latest transformation matrix from matrixes stack.
sdk::gfx::I2DRenderTarget::CreateBitmapFromRawData
virtual SDKResult SDK_CALLTYPE CreateBitmapFromRawData(const SDKSize &bitmap_size, const SDKUInt32 &source_data_stride_size, const sdk::gfx::PixelFormats &source_data_pixel_format, const SDKUInt8 *source_data, sdk::gfx::RenderTargetBitmapSP &bitmap) const =0
Creates new Bitmap object by using raw data source Stride order should be same, as BMP has (bottom to...
2d_render_target_text_interface.h
Holds text to draw and all of appropriate text styles.
sdk::gfx::StrokeStyleOptions
Set of parameters for stroke style definition.
Definition: 2d_graphics_consts.h:233
IsSDKResultError
static SDK_INLINE bool IsSDKResultError(const SDKResult result)
Tells if result is an error.
Definition: sdk_results.h:253
sdk::gfx::I2DRenderTarget::GetTransformationMatrix
virtual SDKResult SDK_CALLTYPE GetTransformationMatrix(SDKMatrix3X2 &transformation_matrix) const =0
Returns current resulting transformation matrix.
sdk::gfx::RenderTarget2DType
RenderTarget2DType
All of available render targets enumeration.
Definition: 2d_render_target_interface.h:32
sdk::gfx::I2DRenderTarget::CreateBitmapBrush
virtual SDKResult SDK_CALLTYPE CreateBitmapBrush(const sdk::gfx::RenderTargetBitmapSP &bitmap, const sdk::gfx::BitmapBrushExtendMode &ox_extend_mode, const sdk::gfx::BitmapBrushExtendMode &oy_extend_mode, sdk::gfx::RenderTargetBrushSP &brush) const =0
Creates a new bitmap brush.
sdk::gfx::RenderTarget2D_Direct2D_DC
@ RenderTarget2D_Direct2D_DC
Direct2D render targets (kRenderTargetFactoryDirect2D_CID factory) Render target, based on Direct2D,...
Definition: 2d_render_target_interface.h:39
SDKRectF2D
2D Rectangle
Definition: geometry_base_types.h:1295
sdk::gfx::I2DRenderTarget::SetMeasurementUnitsType
virtual SDKResult SDK_CALLTYPE SetMeasurementUnitsType(const sdk::gfx::MeasurementUnits &units_type)=0
Sets new value for measurement units type.
2d_graphics_consts.h
Description of all of supported graphics constants.
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
sdk::gfx::I2DRenderTarget::GetParent
virtual SDKResult SDK_CALLTYPE GetParent(sdk::gfx::RenderTargetFactorySP &parent) const =0
Returns the parent factory instance, which created the given instance.
texture_interface.h
Definition of graphic texture interfaces.
sdk::gfx::I2DRenderTarget::GetType
virtual RenderTarget2DType SDK_CALLTYPE GetType() const =0
Returns the Render Target type.
sdk::gfx::I2DRenderTarget::CalcStrokedBounds
virtual SDKResult SDK_CALLTYPE CalcStrokedBounds(const sdk::gfx::GraphicsPathSP &path, const SDKMatrix3X2 &transformation_matrix, const float &line_width, const sdk::gfx::RenderTargetStrokeStyleSP &stroke_style, SDKRectF2D &bounds) const =0
Calculates the path bounding rectangle after stroke operation Current transformation matrixes stack f...
kSDKResult_NotInitialized
static const SDKResult kSDKResult_NotInitialized
Not initialized.
Definition: sdk_results.h:64
sdk::gfx::I2DRenderTarget::CreateText
virtual SDKResult SDK_CALLTYPE CreateText(const SDKString &output_text, const SDKString &font_family_name, const sdk::gfx::FontStyle &font_style, const sdk::gfx::FontWeight &font_weight, const float &font_size, sdk::gfx::RenderTargetTextSP &text) const =0
Creates a new text.
sdk_component_interface.h
Common base SDK interfaces.
color_base_types.h
Color base definitions.
SDKPointF2D
Single 2D point.
Definition: geometry_base_types.h:33
SDK_FAILED
#define SDK_FAILED(res)
Checks failed result.
Definition: sdk_results_enum.h:69
sdk::gfx::I2DRenderTarget::GetTextPath
virtual SDKResult SDK_CALLTYPE GetTextPath(const SDKPointF2D &origin_point, const sdk::gfx::RenderTargetTextSP &text, sdk::gfx::GraphicsPathSP &text_path) const =0
Extracts the graphics path for text from text instance Current transformation matrixes stack from ren...
platform.h
Describes the platform constants.
sdk::gfx::I2DRenderTarget::PopClippingPath
virtual SDKResult SDK_CALLTYPE PopClippingPath()=0
Removes latest clipping path from clipping stack.
sdk::gfx::I2DRenderTarget::GetRenderTargetSize
virtual SDKResult SDK_CALLTYPE GetRenderTargetSize(SDKSize &size) const =0
Returns the size of the render target in real device pixels.
SDK_OK
#define SDK_OK(res)
Checks succeeded result.
Definition: sdk_results_enum.h:65
sdk::gfx::I2DRenderTarget::SetDPI
virtual SDKResult SDK_CALLTYPE SetDPI(const float &dpi_xy)=0
Sets new DPI for render target, the DPI value will used to recalculate measurement units to device pi...
sdk::gfx::RenderTarget2D_SKIA_OpenGL_FBO
@ RenderTarget2D_SKIA_OpenGL_FBO
Render target, based on SKIA, which renders by using OpenGL to FBO.
Definition: 2d_render_target_interface.h:51
sdk::gfx::I2DRenderTarget
Generic 2D render target (allows to render 2D images)
Definition: 2d_render_target_interface.h:64
geometry_base_types.h
Geometry base types.
sdk::gfx::BitmapBrushExtendMode
BitmapBrushExtendMode
Describes possible of extend modes for bitmap based brushes.
Definition: 2d_graphics_consts.h:264
sdk::gfx::MeasurementUnits
MeasurementUnits
Measurement unit types.
Definition: 2d_graphics_consts.h:33
sdk::gfx::FontStyle
FontStyle
Possible font styles.
Definition: 2d_graphics_consts.h:175
2d_render_target_stroke_style_interface.h
Stroke style for graphics path drawing.
sdk::gfx::I2DRenderTarget::IsDrawInProgress
virtual SDKResult SDK_CALLTYPE IsDrawInProgress(bool &is_draw_in_progress) const =0
Returns the flag, which shows, if drawing in progress now or not i.e. appropriate call to StartDraw w...
sdk::gfx::I2DRenderTarget::CalcTextBounds
virtual SDKResult SDK_CALLTYPE CalcTextBounds(const SDKPointF2D &origin_point, const sdk::gfx::RenderTargetTextSP &text, SDKRectF2D &bounds) const =0
Calculates the text bounding rectangle Current measurement units and DPI will be used for calculation...
sdk::gfx::I2DRenderTarget::DrawPath
virtual SDKResult SDK_CALLTYPE DrawPath(const sdk::gfx::GraphicsPathSP &path, const sdk::gfx::RenderTargetBrushSP &brush, const float &line_width, const sdk::gfx::RenderTargetStrokeStyleSP &stroke_style) const =0
Draws the specified graphics path by using stroke style and brush The size parameters like line_width...
sdk::gfx::I2DRenderTarget::FillBackground
virtual SDKResult SDK_CALLTYPE FillBackground(const SDKColorF &clr) const =0
Fills up the whole area (or clipped, if clipping is active) with color.
sdk::gfx::I2DRenderTarget::CreateSolidColorBrush
virtual SDKResult SDK_CALLTYPE CreateSolidColorBrush(const SDKColorF &clr, sdk::gfx::RenderTargetBrushSP &brush) const =0
Creates a new solid color brush.
sdk::gfx::I2DRenderTarget::GetTextFontMetrics
virtual SDKResult SDK_CALLTYPE GetTextFontMetrics(const sdk::gfx::RenderTargetTextSP &text, sdk::gfx::FontMetrics &text_font_metrics) const =0
Returns the appropriate text font metrics for given text Current measurement units and DPI will be us...
sdk::gfx::I2DRenderTarget::GetAntiAliasingMode
virtual SDKResult SDK_CALLTYPE GetAntiAliasingMode(sdk::gfx::AntiAliasingMode &mode) const =0
Returns current anti-aliasing mode.
sdk::gfx::I2DRenderTarget::FillPath
virtual SDKResult SDK_CALLTYPE FillPath(const sdk::gfx::GraphicsPathSP &path, const sdk::gfx::RenderTargetBrushSP &brush) const =0
Fills the specified graphics path by specified brush.
2d_render_target_bitmap_interface.h
Bitmap object for render target.
sdk::gfx::FontWeight
FontWeight
Possible font weights.
Definition: 2d_graphics_consts.h:158
sdk::gfx::I2DRenderTarget::StartDraw
virtual SDKResult SDK_CALLTYPE StartDraw()=0
Starts draw process. This method should be called first before any call to drawing methods (All of me...
sdk::gfx::RenderTarget2D_Direct2D_HWND
@ RenderTarget2D_Direct2D_HWND
Render target, based on Direct2D, which renders directly to Windows HWND.
Definition: 2d_render_target_interface.h:41
sdk::gfx::I2DRenderTarget::PushTransformationMatrix
virtual SDKResult SDK_CALLTYPE PushTransformationMatrix(const SDKMatrix3X2 &transformation_matrix)=0
Adds new transformation matrix to transformation matrixes stack.
sdk::gfx::RenderTarget2D_SKIA_Software_Texture
@ RenderTarget2D_SKIA_Software_Texture
Render target, based on SKIA, which renders by using software renderer to ITexture object.
Definition: 2d_render_target_interface.h:59
SDKSize
SizeUI.
Definition: geometry_base_types.h:1235
2d_render_target_brush_interface.h
Brush for drawing graphics path by using render target.
sdk::gfx::I2DRenderTarget::FlushBuffers
virtual SDKResult SDK_CALLTYPE FlushBuffers()=0
Forces to flush the internal buffers.
sdk::gfx::I2DRenderTarget::PushClippingPath
virtual SDKResult SDK_CALLTYPE PushClippingPath(const sdk::gfx::GraphicsPathSP &clip_path)=0
Adds new clipping path to clipping stack.