 |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
|
1 #ifndef SDK_2D_CUSTOM_FONT_REGISTRAR_INTERFACE_H_
11 #define SDK_2D_CUSTOM_FONT_REGISTRAR_INTERFACE_H_
17 #include "2d_graphics_objects.h"
31 virtual SDKResult SDK_CALLTYPE
Next(SDKString& font_family_name)
throw() = 0;
45 virtual SDKResult SDK_CALLTYPE
GetParent(sdk::gfx::RenderTargetFactorySP& parent)
const throw() = 0;
56 RegisteredFontEnumeratorSP& enumerator)
const throw() = 0;
62 SDK_DECLARE_IID(I2DCustomFontRegistrar)
67 #endif // SDK_2D_CUSTOM_FONT_REGISTRAR_INTERFACE_H_
virtual SDKResult SDK_CALLTYPE UnregisterFont(const SDKString &font_family_name)=0
Removes previously registered font from custom font collection.
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
Generic data stream interface.
A smart pointer class for managing SDK components interface pointers.
Definition: sdk_ref_ptr.h:23
virtual SDKResult SDK_CALLTYPE Reset()=0
Resets the iterator position to start.
Common base SDK interfaces.
virtual SDKResult SDK_CALLTYPE GetParent(sdk::gfx::RenderTargetFactorySP &parent) const =0
Returns the parent factory instance, which created the given instance.
virtual SDKResult SDK_CALLTYPE Next(SDKString &font_family_name)=0
Returns next registered custom font family name.
virtual SDKResult SDK_CALLTYPE GetRegisteredFontEnumerator(RegisteredFontEnumeratorSP &enumerator) const =0
Returns a registered font enumerator, which allows to enum all of registered custom font family names...
Allows to register/unregister custom font.
Definition: 2d_custom_font_registrar_interface.h:41
virtual SDKResult SDK_CALLTYPE RegisterFont(const SDKString &font_family_name, const sdk::base::SDKStreamSP &font_stream)=0
Registers new custom font in custom font collection.
Enumerates all of registered custom font IDs.
Definition: 2d_custom_font_registrar_interface.h:24