Home
last modified time | relevance | path

Searched refs:Canvas (Results 1 – 11 of 11) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgCanvas.cpp32 Canvas::Canvas(RenderMethod *pRenderer):pImpl(new Impl(pRenderer)) in Canvas() function in Canvas
37 Canvas::~Canvas() in ~Canvas()
43 Result Canvas::reserve(TVG_UNUSED uint32_t n) noexcept in reserve()
49 list<Paint*>& Canvas::paints() noexcept in paints()
55 Result Canvas::push(unique_ptr<Paint> paint) noexcept in push()
61 Result Canvas::clear(bool free) noexcept in clear()
67 Result Canvas::draw() noexcept in draw()
77 Result Canvas::update(Paint* paint) noexcept in update()
87 Result Canvas::viewport(int32_t x, int32_t y, int32_t w, int32_t h) noexcept in viewport()
93 Result Canvas::sync() noexcept in sync()
DtvgWgCanvas.cpp46 WgCanvas::WgCanvas() : Canvas(WgRenderer::gen()), pImpl(nullptr) in WgCanvas()
48 WgCanvas::WgCanvas() : Canvas(nullptr), pImpl(nullptr) in WgCanvas()
57 auto renderer = static_cast<WgRenderer*>(Canvas::pImpl->renderer); in ~WgCanvas()
66 if (Canvas::pImpl->status != Status::Damaged && Canvas::pImpl->status != Status::Synced) { in target()
73 auto renderer = static_cast<WgRenderer*>(Canvas::pImpl->renderer); in target()
77 Canvas::pImpl->vport = {0, 0, (int32_t)w, (int32_t)h}; in target()
78 renderer->viewport(Canvas::pImpl->vport); in target()
81 Canvas::pImpl->status = Status::Damaged; in target()
DtvgSwCanvas.cpp52 SwCanvas::SwCanvas() : Canvas(SwRenderer::gen()), pImpl(nullptr) in SwCanvas()
54 SwCanvas::SwCanvas() : Canvas(nullptr), pImpl(nullptr) in SwCanvas()
70 auto renderer = static_cast<SwRenderer*>(Canvas::pImpl->renderer); in mempool()
74 if (!Canvas::pImpl->paints.empty()) return Result::InsufficientCondition; in mempool()
88 if (Canvas::pImpl->status != Status::Damaged && Canvas::pImpl->status != Status::Synced) { in target()
93 auto renderer = static_cast<SwRenderer*>(Canvas::pImpl->renderer); in target()
97 Canvas::pImpl->vport = {0, 0, (int32_t)w, (int32_t)h}; in target()
98 renderer->viewport(Canvas::pImpl->vport); in target()
104 Canvas::pImpl->status = Status::Damaged; in target()
DtvgGlCanvas.cpp51 GlCanvas::GlCanvas() : Canvas(GlRenderer::gen()), pImpl(nullptr) in GlCanvas()
53 GlCanvas::GlCanvas() : Canvas(nullptr), pImpl(nullptr) in GlCanvas()
68 if (Canvas::pImpl->status != Status::Damaged && Canvas::pImpl->status != Status::Synced) { in target()
73 auto renderer = static_cast<GlRenderer*>(Canvas::pImpl->renderer); in target()
77 Canvas::pImpl->vport = {0, 0, (int32_t)w, (int32_t)h}; in target()
78 renderer->viewport(Canvas::pImpl->vport); in target()
81 Canvas::pImpl->status = Status::Damaged; in target()
Dthorvg.h601 class TVG_API Canvas
604 Canvas(RenderMethod*);
605 virtual ~Canvas();
706 _TVG_DECLARE_PRIVATE(Canvas);
1642 class TVG_API SwCanvas final : public Canvas
1732 class TVG_API GlCanvas final : public Canvas
1780 class TVG_API WgCanvas final : public Canvas
DtvgCapi.cpp77 delete(reinterpret_cast<Canvas*>(canvas)); in tvg_canvas_destroy()
99 return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->push(unique_ptr<Paint>((Paint*)paint)); in tvg_canvas_push()
112 return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->clear(free); in tvg_canvas_clear()
119 return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->update(nullptr); in tvg_canvas_update()
126 return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->update((Paint*) paint); in tvg_canvas_update_paint()
133 return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->draw(); in tvg_canvas_draw()
140 return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->sync(); in tvg_canvas_sync()
147 return (Tvg_Result) reinterpret_cast<Canvas*>(canvas)->viewport(x, y, w, h); in tvg_canvas_set_viewport()
DtvgCanvas.h34 struct Canvas::Impl
/lvgl-latest/docs/details/widgets/
Dcanvas.rst4 Canvas (lv_canvas)
11 A Canvas inherits from :ref:`Image <lv_image>` and extends it, enabling the user to draw
33 The Canvas needs a buffer in which to store the drawn image. To assign a
34 buffer to a Canvas, use
37 the image of the Canvas. For example for a 100x50 ARGB8888 buffer:
43 Canvas supports all the color formats like
62 To set an individual pixel's color on the Canvas, use
68 Canvas to blue with 50% opacity. Note that if the current color format
73 An array of pixels can be copied to the Canvas with
75 color format of the buffer and Canvas need to match.
[all …]
/lvgl-latest/examples/widgets/canvas/
Dindex.rst2 Drawing on the Canvas and rotate
8 Transparent Canvas with chroma keying
/lvgl-latest/docs/details/main-components/
Dimage.rst154 run-time is to use the :ref:`Canvas <lv_canvas>` Widget.
/lvgl-latest/
DKconfig1068 bool "Canvas. Requires: lv_image"