Debian Codegraph @

pencil/include/draw/draw_diagram_ornaments.h

raw symbols SCIP
1 /* File: draw_diagram_ornaments.h; Copyright and License: see below */
2
3 #ifndef DRAW_DIAGRAM_ORNAMENTS_H
4 #define DRAW_DIAGRAM_ORNAMENTS_H
5
6 /* public file for the doxygen documentation: */
7 /*!
8 * \file
9 * \brief Draws simple geometric objects like a scale for x axis
10 */
11
12 #include "pencil_size.h"
13 #include "geometry/geometry_rectangle.h"
14 #include "entity/data_diagram_type.h"
15 #include "entity/data_diagram.h"
16 #include <cairo.h>
17 #include <stdint.h>
18
19 /*!
20 * \brief attributes of the draw geometry functions
21 *
22 * \note This class is stateless.
23 * It may either be instantiated once and used many times or be instantiated per use.
24 */
25 struct draw_diagram_ornaments_struct {
26 int dummy; /*!< This object is a collection of stateless drawing functions */
27 };
28
29 typedef struct draw_diagram_ornaments_struct draw_diagram_ornaments_t;
30
31 /*!
32 * \brief initializes the draw_diagram_ornaments_t
33 *
34 * \param this_ pointer to own object attributes
35 */
36 void draw_diagram_ornaments_init( draw_diagram_ornaments_t *this_ );
37
38 /*!
39 * \brief destroys the draw_diagram_ornaments_t
40 *
41 * \param this_ pointer to own object attributes
42 */
43 void draw_diagram_ornaments_destroy( draw_diagram_ornaments_t *this_ );
44
45 /*!
46 * \brief draws a rounded-corner-rectangle shape into the outer bounds rect
47 *
48 * \param this_ pointer to own object attributes
49 * \param bounds bounding rectangle of the x axis scale
50 * \param pencil_size set of sizes and colors for drawing lines and text
51 * \param cr a cairo drawing context
52 */
53 void draw_diagram_ornaments_draw_scale ( const draw_diagram_ornaments_t *this_,
54 const geometry_rectangle_t *bounds,
55 const pencil_size_t *pencil_size,
56 cairo_t *cr
57 );
58
59 #endif /* DRAW_DIAGRAM_ORNAMENTS_H */
60
61
62 /*
63 Copyright 2026-2026 Andreas Warnke
64
65 Licensed under the Apache License, Version 2.0 (the "License");
66 you may not use this file except in compliance with the License.
67 You may obtain a copy of the License at
68
69 http://www.apache.org/licenses/LICENSE-2.0
70
71 Unless required by applicable law or agreed to in writing, software
72 distributed under the License is distributed on an "AS IS" BASIS,
73 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
74 See the License for the specific language governing permissions and
75 limitations under the License.
76 */