comparison Framework/Scene2D/CairoCompositor.h @ 889:6e79e8c9021c am-dev

integration mainline->am-dev
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jul 2019 12:05:02 +0200
parents 80829436ce0c 6e888cf6a48b
children 64e5f3ff6360
comparison
equal deleted inserted replaced
887:6176917ef890 889:6e79e8c9021c
52 unsigned int canvasWidth, 52 unsigned int canvasWidth,
53 unsigned int canvasHeight); 53 unsigned int canvasHeight);
54 54
55 ~CairoCompositor(); 55 ~CairoCompositor();
56 56
57 virtual unsigned int GetWidth() const 57 const CairoSurface& GetCanvas() const
58 {
59 return canvas_;
60 }
61
62 virtual unsigned int GetCanvasWidth() const
58 { 63 {
59 return canvas_.GetWidth(); 64 return canvas_.GetWidth();
60 } 65 }
61 66
62 virtual unsigned int GetHeight() const 67 virtual unsigned int GetCanvasHeight() const
63 { 68 {
64 return canvas_.GetHeight(); 69 return canvas_.GetHeight();
65 }
66
67 const CairoSurface& GetCanvas() const
68 {
69 return canvas_;
70 } 70 }
71 71
72 void SetFont(size_t index, 72 void SetFont(size_t index,
73 GlyphBitmapAlphabet* dict); // Takes ownership 73 GlyphBitmapAlphabet* dict); // Takes ownership
74 74