mikroSDK Reference Manual
gl_shapes.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** Copyright (C) 2024 MikroElektronika d.o.o.
4** Contact: https://www.mikroe.com/contact
5**
6** This file is part of the mikroSDK package
7**
8** Commercial License Usage
9**
10** Licensees holding valid commercial NECTO compilers AI licenses may use this
11** file in accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The MikroElektronika Company.
14** For licensing terms and conditions see
15** https://www.mikroe.com/legal/software-license-agreement.
16** For further information use the contact form at
17** https://www.mikroe.com/contact.
18**
19**
20** GNU Lesser General Public License Usage
21**
22** Alternatively, this file may be used for
23** non-commercial projects under the terms of the GNU Lesser
24** General Public License version 3 as published by the Free Software
25** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html.
26**
27** The above copyright notice and this permission notice shall be
28** included in all copies or substantial portions of the Software.
29**
30** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
32** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
34** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
35** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
36** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37**
38****************************************************************************/
39
44#ifndef _GL_SHAPES_H_
45#define _GL_SHAPES_H_
46
47#include "gl_types.h"
48
60#ifdef __cplusplus
61extern "C"{
62#endif
63
79void gl_draw_rect(gl_coord_t top_left_x, gl_coord_t top_left_y, gl_uint_t width, gl_uint_t height);
80
97void gl_draw_rect_rounded(gl_coord_t top_left_x, gl_coord_t top_left_y, gl_uint_t width, gl_uint_t height, gl_uint_t radius);
98
99
114
131
147
164
183
184#ifdef __cplusplus
185} // extern "C"
186#endif
187
188 // glgroup
189 // apigroup
190
191#endif // _GL_SHAPES_H_
192// ------------------------------------------------------------------------- END
Declaration of types for Graphic Library.
int16_t gl_coord_t
Definition gl_types.h:104
uint16_t gl_uint_t
Definition gl_types.h:93
uint16_t gl_angle_t
Definition gl_types.h:97
void gl_draw_ellipse(gl_coord_t x0, gl_coord_t y0, gl_uint_t half_a, gl_uint_t half_b)
Draw ellipse to the display driver using previously set pen and brush.
void gl_draw_point(gl_coord_t x, gl_coord_t y)
Draw point to display driver using previously set pen.
void gl_draw_rect_rounded(gl_coord_t top_left_x, gl_coord_t top_left_y, gl_uint_t width, gl_uint_t height, gl_uint_t radius)
Draw rounded rectangle to diplsay driver using previously set pen and brush.
void gl_draw_line(gl_coord_t x1, gl_coord_t y1, gl_coord_t x2, gl_coord_t y2)
Draw line AB to display driver using previously set pen.
void gl_draw_circle(gl_coord_t x0, gl_coord_t y0, gl_uint_t radius)
Draw circleto display driver using previously set pen and brush.
void gl_draw_arc(gl_coord_t x, gl_coord_t y, gl_uint_t radius, gl_angle_t start, gl_angle_t end)
Draw arc with center in given x and y coordinates and radius size. The start (end) of the arc is dete...
void gl_draw_rect(gl_coord_t top_left_x, gl_coord_t top_left_y, gl_uint_t width, gl_uint_t height)
Draws rectangle to displey driver with top left corner positioned at top_left_x and top_left_y coordi...