Flutter Impeller
typography_context.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_IMPELLER_TOOLKIT_INTEROP_TYPOGRAPHY_CONTEXT_H_
6 #define FLUTTER_IMPELLER_TOOLKIT_INTEROP_TYPOGRAPHY_CONTEXT_H_
7 
8 #include <memory>
9 
10 #include "flutter/third_party/txt/src/txt/font_collection.h"
13 
14 namespace impeller::interop {
15 
16 class TypographyContext final
17  : public Object<TypographyContext,
18  IMPELLER_INTERNAL_HANDLE_NAME(ImpellerTypographyContext)> {
19  public:
21 
22  ~TypographyContext() override;
23 
24  TypographyContext(const TypographyContext&) = delete;
25 
27 
28  bool IsValid() const;
29 
30  const std::shared_ptr<txt::FontCollection>& GetFontCollection() const;
31 
32  private:
33  std::shared_ptr<txt::FontCollection> collection_;
34 };
35 
36 } // namespace impeller::interop
37 
38 #endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_TYPOGRAPHY_CONTEXT_H_
impeller::interop::TypographyContext::~TypographyContext
~TypographyContext() override
impeller.h
impeller::interop::Object
Definition: object.h:56
impeller::interop::TypographyContext::IsValid
bool IsValid() const
Definition: typography_context.cc:27
impeller::interop
Definition: color_filter.cc:7
impeller::interop::TypographyContext
Definition: typography_context.h:16
impeller::interop::TypographyContext::operator=
TypographyContext & operator=(const TypographyContext &)=delete
impeller::interop::TypographyContext::TypographyContext
TypographyContext()
Definition: typography_context.cc:14
impeller::interop::TypographyContext::GetFontCollection
const std::shared_ptr< txt::FontCollection > & GetFontCollection() const
Definition: typography_context.cc:32
object.h