NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
gl2d_fonts_storage_interface.h
Go to the documentation of this file.
1 #ifndef SDK_GL2D_FONTS_STORAGE_INTERFACE_H_
12 #define SDK_GL2D_FONTS_STORAGE_INTERFACE_H_
13 #pragma once
14 
15 #include <base/inc/platform.h>
16 #include <base/inc/base_types.h>
17 #include <base/inc/sdk_component_base.h>
19 #include <visualizationlayer/inc/vis_const.h>
20 
21 #include "gl2d_font_interface.h"
22 
23 SDK_GL2D_BEGIN_NAMESPACE
24 
26 
30 {
31 };
32 
36 class IGL2DFontsStorage : public ISDKProperties
37 {
38  public:
40  virtual void SDK_CALLTYPE Dump() const throw() = 0;
41 
48  virtual SDKResult SDK_CALLTYPE RegisterFont(const SDKString& path,
49  const SDKString& file_name, const SDKUInt32& face_index,
50  GL2DFontID& font_id) throw() = 0;
52  virtual SDKResult SDK_CALLTYPE UnregisterFont(
53  const GL2DFontID& font_id) throw() = 0;
54 
56  virtual IGL2DFontSP SDK_CALLTYPE GetFont(
57  const GL2DFontID& font_id) const throw() = 0;
58 
61  virtual bool SDK_CALLTYPE IsValidStringForFont(const GL2DFontID& font_id,
62  const SDKString& string_to_check) const throw() = 0;
63 
64  SDK_IMPLEMENT_IID(IGL2DFontsStorage)
65  SDK_END_INTERFACE(IGL2DFontsStorage)
66 };
67 SDK_DECLARE_IID(IGL2DFontsStorage)
68 
69 SDK_GL2D_END_NAMESPACE
70 
71 #endif // SDK_GL2D_FONTS_STORAGE_INTERFACE_H_
base_types.h
SDK base types.
gl2d_font_interface.h
Provides with information about single registered font from GL2D fonts storage.
IGL2DFontsStorage::RegisterFont
virtual SDKResult SDK_CALLTYPE RegisterFont(const SDKString &path, const SDKString &file_name, const SDKUInt32 &face_index, GL2DFontID &font_id)=0
Registers given font in storage path - Path to folder, which contains given font file,...
IGL2DFontsStorage::GetFont
virtual IGL2DFontSP SDK_CALLTYPE GetFont(const GL2DFontID &font_id) const =0
Returns appropriate Font entry by it's ID.
properties_interface.h
Object generic properties interface.
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
platform.h
Describes the platform constants.
GL2DFontID
SDKUInt32 GL2DFontID
Font ID.
Definition: gl2d_font_interface.h:29
IGL2DFontsStorage::IsValidStringForFont
virtual bool SDK_CALLTYPE IsValidStringForFont(const GL2DFontID &font_id, const SDKString &string_to_check) const =0
Checks, if given string can be rendered by given font (means given font contains appropriate glyph fo...
IGL2DFontsStorage
GL2D fonts storage, which allows to register/unregister/manage fonts collection. Only registered font...
Definition: gl2d_fonts_storage_interface.h:36
IGL2DFontsStorage::Dump
virtual void SDK_CALLTYPE Dump() const =0
Dumps given object.
GL2DFontsStoragePropertyIDs
GL2DFontsStoragePropertyIDs
Generic GL2D Fonts Storage properties.
Definition: gl2d_fonts_storage_interface.h:29
IGL2DFontsStorage::UnregisterFont
virtual SDKResult SDK_CALLTYPE UnregisterFont(const GL2DFontID &font_id)=0
Unregisters given font from storage.
FWD_DECL_INTERFACE
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.