31#ifndef Pt_Forms_Style_h
32#define Pt_Forms_Style_h
34#include <Pt/Forms/Api.h>
35#include <Pt/Forms/Alignment.h>
36#include <Pt/Forms/Direction.h>
37#include <Pt/Forms/Spacing.h>
38#include <Pt/Forms/StyleOptions.h>
39#include <Pt/Forms/PaintSurface.h>
40#include <Pt/Gfx/Color.h>
41#include <Pt/Gfx/Brush.h>
42#include <Pt/Gfx/Pen.h>
43#include <Pt/Gfx/Rect.h>
44#include <Pt/Gfx/Font.h>
45#include <Pt/Gfx/FontMetrics.h>
46#include <Pt/Gfx/TextMetrics.h>
47#include <Pt/TypeInfo.h>
48#include <Pt/NonCopyable.h>
49#include <Pt/SmartPtr.h>
105 if( 0 == _facet->unref() )
119 if( 0 == _facet->unref() )
139 if( 0 == _facet->unref() )
161 {
return _facet == 0; }
165 operator bool ()
const
166 {
return _facet != 0; }
215 explicit Facet(
const std::type_info& ti, std::size_t refs = 0)
266 const std::type_info* _typeId;
313 template <
typename FacetT>
316 Facet* facet = find(
typeid(FacetT) );
317 return static_cast<FacetT*
>(facet);
321 Facet* find(
const std::type_info& ti)
const;
324 typedef std::map<TypeInfo, Facet*> FacetMap;
326 std::size_t _generation;
Active painting session on a Forms paint surface.
Definition PaintContext.h:51
Represents wrapped text as positioned lines.
Definition TextBlock.h:148
NonCopyable()
Default constructor.
Definition NonCopyable.h:63
Core module.
Definition Allocator.h:33