NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
2d_render_target_stroke_style_interface.h
Go to the documentation of this file.
1 #ifndef SDK_2D_RENDER_TARGET_STROKE_STYLE_INTERFACE_H_
11 #define SDK_2D_RENDER_TARGET_STROKE_STYLE_INTERFACE_H_
12 
13 #include <base/inc/platform.h>
15 #include "2d_graphics_consts.h"
16 #include "2d_graphics_objects.h"
17 
18 namespace sdk {
19 namespace gfx {
20 
23 class I2DRenderTargetStrokeStyle : public sdk::ISDKComponent
24 {
25  public:
27  virtual SDKResult SDK_CALLTYPE GetParent(sdk::gfx::RenderTargetSP& parent) const throw() = 0;
28 
30  virtual SDKResult SDK_CALLTYPE GetInitialOptions(
31  sdk::gfx::StrokeStyleOptions& style_options) const throw() = 0;
32 
34  virtual SDKResult SDK_CALLTYPE GetUserDefinedPattern(const SDKUInt32& array_size,
35  float* user_defined_pattern) const throw() = 0;
37  virtual SDKResult SDK_CALLTYPE GetUserDefinedPatternSize(
38  SDKUInt32& user_defined_pattern_size) const throw() = 0;
39 
41  SDK_IMPLEMENT_IID(I2DRenderTargetStrokeStyle)
42  SDK_END_INTERFACE(I2DRenderTargetStrokeStyle)
43 };
44 SDK_DECLARE_IID(I2DRenderTargetStrokeStyle)
45 } // namespace gfx
46 } // namespace sdk
47 
48 #endif // SDK_2D_RENDER_TARGET_STROKE_STYLE_INTERFACE_H_
sdk::gfx::I2DRenderTargetStrokeStyle
Stroke style for graphics path drawing.
Definition: 2d_render_target_stroke_style_interface.h:23
sdk::gfx::I2DRenderTargetStrokeStyle::GetParent
virtual SDKResult SDK_CALLTYPE GetParent(sdk::gfx::RenderTargetSP &parent) const =0
Returns the parent render target instance, which created the given instance.
sdk::gfx::StrokeStyleOptions
Set of parameters for stroke style definition.
Definition: 2d_graphics_consts.h:233
sdk::gfx::I2DRenderTargetStrokeStyle::GetInitialOptions
virtual SDKResult SDK_CALLTYPE GetInitialOptions(sdk::gfx::StrokeStyleOptions &style_options) const =0
Returns initial stroke style options.
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_component_interface.h
Common base SDK interfaces.
platform.h
Describes the platform constants.
sdk::gfx::I2DRenderTargetStrokeStyle::GetUserDefinedPattern
virtual SDKResult SDK_CALLTYPE GetUserDefinedPattern(const SDKUInt32 &array_size, float *user_defined_pattern) const =0
Returns user-defined stroke style pattern, if it exists.
sdk::gfx::I2DRenderTargetStrokeStyle::GetUserDefinedPatternSize
virtual SDKResult SDK_CALLTYPE GetUserDefinedPatternSize(SDKUInt32 &user_defined_pattern_size) const =0
Returns user-defined stroke style pattern size, if it exists.