Aspose.Tasks for C++
FontResolveEventArgs.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="FontResolveEventArgs.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/string.h>
9 #include <system/eventargs.h>
10 
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 namespace Visualization
18 {
19 class FontManager;
20 } // namespace Visualization
21 } // namespace Tasks
22 } // namespace Aspose
23 
24 namespace Aspose {
25 
26 namespace Tasks {
27 
28 /// <summary>
29 /// Provides arguments for the callback that is invoked when font is resolved.
30 /// </summary>
31 class ASPOSE_TASKS_SHARED_CLASS FontResolveEventArgs final : public System::EventArgs
32 {
34  typedef System::EventArgs BaseType;
35 
36  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
38 
39  friend class Aspose::Tasks::Visualization::FontManager;
40 
41 public:
42 
43  /// <summary>
44  /// Gets the name of requested font.
45  /// </summary>
46  ASPOSE_TASKS_SHARED_API System::String get_RequestedFontName() const;
47  /// <summary>
48  /// Gets the name of resolved font. Can be set to control fonts used to render a view.
49  /// </summary>
50  /// <returns>Name of the requested font if font is found
51  /// or
52  /// name of fallback font
53  /// or
54  /// null if font cannot be found.</returns>
55  ASPOSE_TASKS_SHARED_API System::String get_ResolvedFontName() const;
56  /// <summary>
57  /// Sets the name of resolved font. Can be set to control fonts used to render a view.
58  /// </summary>
59  /// <returns>Name of the requested font if font is found
60  /// or
61  /// name of fallback font
62  /// or
63  /// null if font cannot be found.</returns>
64  ASPOSE_TASKS_SHARED_API void set_ResolvedFontName(const System::String& value);
65 
66 protected:
67 
68  ASPOSE_TASKS_SHARED_API bool get_Changed() const;
69 
70  ASPOSE_TASKS_SHARED_API FontResolveEventArgs(const System::String& requestedFontName, const System::String& resolvedFontName);
71 
72  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(FontResolveEventArgs, CODEPORTING_ARGS(const System::String& requestedFontName, const System::String& resolvedFontName));
73 
74 private:
75 
76  System::String resolvedFontName;
77  System::String pr_RequestedFontName;
78 
79  /// <summary>
80  /// Gets the name of requested font.
81  /// </summary>
82  ASPOSE_TASKS_SHARED_API void set_RequestedFontName(const System::String& value);
83 
84  bool pr_Changed;
85 
86  ASPOSE_TASKS_SHARED_API void set_Changed(bool value);
87 
88 };
89 
90 } // namespace Tasks
91 } // namespace Aspose
92 
93 
Provides arguments for the callback that is invoked when font is resolved.
Definition: FontResolveEventArgs.h:32
System::String get_RequestedFontName() const
Gets the name of requested font.
System::String get_ResolvedFontName() const
Gets the name of resolved font. Can be set to control fonts used to render a view.
void set_ResolvedFontName(const System::String &value)
Sets the name of resolved font. Can be set to control fonts used to render a view.
Definition: Asn.h:13