Free Electron
FontI.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __window_FontI_h__
8 #define __window_FontI_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief General interface to a window
17 
18  @ingroup window
19 *//***************************************************************************/
20 class FE_DL_EXPORT FontI:
21  virtual public Component,
22  public CastableAs<FontI>
23 {
24  public:
25 
26 virtual I32 fontHeight(I32* a_pAscent,I32* a_pDescent) =0;
27 virtual I32 pixelWidth(String a_string) =0;
28 virtual void drawAlignedText(sp<Component> a_spDrawComponent,
29  const SpatialVector& a_location,
30  const String a_text,const Color &color) =0;
31 };
32 
33 } /* namespace ext */
34 } /* namespace fe */
35 
36 #endif /* __window_FontI_h__ */
kernel
Definition: namespace.dox:3
General interface to a window.
Definition: FontI.h:20
Special vector for color (RGBA)
Definition: Color.h:21
Automatically reference-counted string container.
Definition: String.h:128
Base for all interfacable components.
Definition: Component.h:20
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192