ColorBook.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 #include "DgnPlatform.h"
10 
13 
15 
17 
20 
21 
22 //=======================================================================================
25 //=======================================================================================
26 struct ColorBook : public RefCountedBase
27 {
28 private:
29 private:
30  virtual void MakeClassAbstract() = 0;
31 public:
32 public:
34  DGNPLATFORM_EXPORT static StatusInt LoadFromDgn (ColorBookPtr& loadedColorBook, WCharCP bookName, DgnFileP dgnFile, bool searchDgnLibs, DgnHostR);
35 
37  DGNPLATFORM_EXPORT void AddEntry (WCharCP colorName, int red, int green, int blue);
38 
40  DGNPLATFORM_EXPORT StatusInt FindColorByName (RgbColorDefP color, WCharCP colorName);
41 
43  DGNPLATFORM_EXPORT StatusInt GetEntry (RgbColorDefP, WCharP name, UInt index);
44 
46  DGNPLATFORM_EXPORT UInt GetEntryCount ();
47 };
48 
51 
Definition: ColorBook.h:26
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
wchar_t * WCharP
Definition: Bentley.h:225
unsigned int UInt
Definition: Bentley.r.h:140
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
A DgnFile is an in-memory representation of a physical file, regardless of its format.
Definition: DgnFile.h:308
wchar_t const * WCharCP
Definition: Bentley.h:224
Definition: DgnHost.h:19
#define DGNPLATFORM_TYPEDEFS(_name_)
Definition: DgnPlatform.h:73
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
#define BENTLEY_TYPEDEFS(_name_)
Definition: Bentley.h:152
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
int StatusInt
Definition: Bentley.h:222
Concrete class that can be used to implement the reference-counting pattern.
Definition: RefCounted.h:109
Definition: DgnPlatform.r.h:339

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.