Debian Codegraph @

pencil/include/pencil_marker.h

raw
1 /* File: pencil_marker.h; Copyright and License: see below */
2
3 #ifndef PENCIL_MARKER_H
4 #define PENCIL_MARKER_H
5
6 /* public file for the doxygen documentation: */
7 /*!
8 * \file
9 * \brief Marks objects by colors and/or lines/ornaments
10 */
11
12 #include "geometry/geometry_rectangle.h"
13 #include "entity/data_diagram.h"
14 #include "set/data_small_set.h"
15 #include "entity/data_id.h"
16 #include "set/data_visible_set.h"
17 #include <cairo.h>
18 #include <stdint.h>
19
20 /*!
21 * \brief attributes of the marker
22 *
23 * \note This class is stateless.
24 * It may either be instantiated once and used many times or be instantiated per use.
25 */
26 struct pencil_marker_struct {
27 void *dummy;
28 };
29
30 typedef struct pencil_marker_struct pencil_marker_t;
31
32 /*!
33 * \brief initializes the marker
34 *
35 * \param this_ pointer to own object attributes
36 */
37 void pencil_marker_init( pencil_marker_t *this_ );
38
39 /*!
40 * \brief destroys the marker
41 *
42 * \param this_ pointer to own object attributes
43 */
44 void pencil_marker_destroy( pencil_marker_t *this_ );
45
46 /*!
47 * \brief draws markers around the destination area of the cairo drawing context
48 *
49 * \param this_ pointer to own object attributes
50 * \param rect the rectangle which to mark as focused. Drawings may be done outside.
51 * \param cr a cairo drawing context
52 */
53 void pencil_marker_mark_focused_rectangle ( const pencil_marker_t *this_, geometry_rectangle_t rect, cairo_t *cr );
54
55 /*!
56 * \brief draws markers around the destination area of the cairo drawing context
57 *
58 * \param this_ pointer to own object attributes
59 * \param rect the rectangle which to mark as selected. Drawings may be done outside.
60 * \param cr a cairo drawing context
61 */
62 void pencil_marker_mark_selected_rectangle ( const pencil_marker_t *this_, geometry_rectangle_t rect, cairo_t *cr );
63
64 #endif /* PENCIL_MARKER_H */
65
66
67 /*
68 Copyright 2016-2026 Andreas Warnke
69
70 Licensed under the Apache License, Version 2.0 (the "License");
71 you may not use this file except in compliance with the License.
72 You may obtain a copy of the License at
73
74 http://www.apache.org/licenses/LICENSE-2.0
75
76 Unless required by applicable law or agreed to in writing, software
77 distributed under the License is distributed on an "AS IS" BASIS,
78 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
79 See the License for the specific language governing permissions and
80 limitations under the License.
81 */