CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
path.cppm
Go to the documentation of this file.
1
// Copyright (c) 2024, Víctor Castillo Agüero.
2
// SPDX-License-Identifier: GPL-3.0-or-later
3
4
module
;
5
#include <cairomm-1.16/cairomm/cairomm.h>
6
#include <tracy/Tracy.hpp>
7
8
export
module
cydui.graphics.vector.elements.path
;
9
10
import
std;
11
12
export
import
cydui.dimensions
;
13
export
import
cydui.graphics.vector.element
;
14
15
export
namespace
vg
{
16
struct
path
:
17
element_t
,
18
attrs_core
<path>,
19
attrs_fill
<path>,
20
attrs_stroke
<path>,
21
attr_path_str
<path> {
22
path
() {
23
//TracyAllocN(this, sizeof(decltype(*this)), "fragment_elements");
24
}
25
~path
()
override
{
26
//TracyFreeN(this, "fragment_elements");
27
}
28
void
apply_to
(
pixelmap_editor_t
&editor)
const override
{
29
apply_stroke
(editor);
30
apply_fill
(editor);
31
}
32
33
footprint
get_footprint
()
const override
{
34
return
{};
35
}
36
};
37
}
pixelmap_editor_t
Definition
pixelmap_editor.cppm:14
cydui.dimensions
cydui.graphics.vector.element
cydui.graphics.vector.elements.path
vg
Definition
attributes.cppm:14
vg::attr_path_str
d - path str
Definition
attributes.cppm:362
vg::attrs_core
Definition
attributes.cppm:529
vg::attrs_fill
Definition
attributes.cppm:494
vg::attrs_fill< path >::apply_fill
void apply_fill(pixelmap_editor_t &editor) const
Definition
attributes.cppm:496
vg::attrs_stroke
Definition
attributes.cppm:473
vg::attrs_stroke< path >::apply_stroke
void apply_stroke(pixelmap_editor_t &editor) const
Definition
attributes.cppm:475
vg::element_t::footprint
Definition
element.cppm:31
vg::element_t
Definition
element.cppm:19
vg::path::get_footprint
footprint get_footprint() const override
Definition
path.cppm:33
vg::path::path
path()
Definition
path.cppm:22
vg::path::~path
~path() override
Definition
path.cppm:25
vg::path::apply_to
void apply_to(pixelmap_editor_t &editor) const override
Definition
path.cppm:28
include
cyd_ui
graphics
vector
elements
path.cppm
Generated by
1.13.2