-
Notifications
You must be signed in to change notification settings - Fork 0
/
canvas__i_8h_source.html
128 lines (126 loc) · 13.5 KB
/
canvas__i_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FlipperZero Firmware: applications/services/gui/canvas_i.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">FlipperZero Firmware
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_a6e4fee11f07c3b70486e88fe92cbbdc.html">applications</a></li><li class="navelem"><a class="el" href="dir_1581ab0e1b6f5f52cf9e9cea60a8e5e8.html">services</a></li><li class="navelem"><a class="el" href="dir_7aa9847637b0c465bfb6fdb3cbf0b24a.html">gui</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">canvas_i.h</div></div>
</div><!--header-->
<div class="contents">
<a href="canvas__i_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include "<a class="code" href="canvas_8h.html">canvas.h</a>"</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include <u8g2.h></span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="struct_canvas.html"> 13</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_canvas.html">Canvas</a> {</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <a class="code hl_struct" href="structu8g2__struct.html">u8g2_t</a> fb;</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <a class="code hl_enumeration" href="canvas_8h.html#a8894c54499069d8c2a0387b4a7a0e269">CanvasOrientation</a> orientation;</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> uint8_t offset_x;</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> uint8_t offset_y;</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> uint8_t width;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> uint8_t height;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span>};</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><a class="code hl_struct" href="struct_canvas.html">Canvas</a>* <a class="code hl_function" href="canvas__i_8h.html#a6d1f0b36b7931e717eb1d00d8084c2b9">canvas_init</a>();</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keywordtype">void</span> <a class="code hl_function" href="canvas__i_8h.html#a7ada606dd0fc191727ebd18adcd67462">canvas_free</a>(<a class="code hl_struct" href="struct_canvas.html">Canvas</a>* canvas);</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keywordtype">void</span> <a class="code hl_function" href="canvas__i_8h.html#a918d4e9a079c0e8a5f167d1bc3a48285">canvas_reset</a>(<a class="code hl_struct" href="struct_canvas.html">Canvas</a>* canvas);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="keywordtype">void</span> <a class="code hl_function" href="canvas__i_8h.html#a8496522b8f7d26526af09c067a7023dc">canvas_commit</a>(<a class="code hl_struct" href="struct_canvas.html">Canvas</a>* canvas);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>uint8_t* <a class="code hl_function" href="canvas__i_8h.html#afc2d42827fcc0e42ac3192524b7bf6fa">canvas_get_buffer</a>(<a class="code hl_struct" href="struct_canvas.html">Canvas</a>* canvas);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="keywordtype">size_t</span> <a class="code hl_function" href="canvas__i_8h.html#aa12e742cf2ba7b1b5d29dd1a7235d5ab">canvas_get_buffer_size</a>(<a class="code hl_struct" href="struct_canvas.html">Canvas</a>* canvas);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><span class="keywordtype">void</span> <a class="code hl_function" href="canvas__i_8h.html#ac0f48a660a06ad7143b2a2f852c12392">canvas_frame_set</a>(</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_struct" href="struct_canvas.html">Canvas</a>* canvas,</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> uint8_t offset_x,</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> uint8_t offset_y,</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> uint8_t width,</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> uint8_t height);</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span><span class="keywordtype">void</span> <a class="code hl_function" href="canvas__i_8h.html#a6b113758cfc00412974940440a96a493">canvas_set_orientation</a>(<a class="code hl_struct" href="struct_canvas.html">Canvas</a>* canvas, <a class="code hl_enumeration" href="canvas_8h.html#a8894c54499069d8c2a0387b4a7a0e269">CanvasOrientation</a> orientation);</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><a class="code hl_enumeration" href="canvas_8h.html#a8894c54499069d8c2a0387b4a7a0e269">CanvasOrientation</a> <a class="code hl_function" href="canvas__i_8h.html#a8441d61406e318c65ebb5732fbb1d31d">canvas_get_orientation</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_canvas.html">Canvas</a>* canvas);</div>
<div class="ttc" id="acanvas_8h_html"><div class="ttname"><a href="canvas_8h.html">canvas.h</a></div><div class="ttdoc">GUI: Canvas API.</div></div>
<div class="ttc" id="acanvas_8h_html_a8894c54499069d8c2a0387b4a7a0e269"><div class="ttname"><a href="canvas_8h.html#a8894c54499069d8c2a0387b4a7a0e269">CanvasOrientation</a></div><div class="ttdeci">CanvasOrientation</div><div class="ttdoc">Canvas Orientation.</div><div class="ttdef"><b>Definition:</b> canvas.h:43</div></div>
<div class="ttc" id="acanvas__i_8h_html_a6b113758cfc00412974940440a96a493"><div class="ttname"><a href="canvas__i_8h.html#a6b113758cfc00412974940440a96a493">canvas_set_orientation</a></div><div class="ttdeci">void canvas_set_orientation(Canvas *canvas, CanvasOrientation orientation)</div><div class="ttdoc">Set canvas orientation.</div><div class="ttdef"><b>Definition:</b> canvas.c:371</div></div>
<div class="ttc" id="acanvas__i_8h_html_a6d1f0b36b7931e717eb1d00d8084c2b9"><div class="ttname"><a href="canvas__i_8h.html#a6d1f0b36b7931e717eb1d00d8084c2b9">canvas_init</a></div><div class="ttdeci">Canvas * canvas_init()</div><div class="ttdoc">Allocate memory and initialize canvas.</div><div class="ttdef"><b>Definition:</b> canvas.c:17</div></div>
<div class="ttc" id="acanvas__i_8h_html_a7ada606dd0fc191727ebd18adcd67462"><div class="ttname"><a href="canvas__i_8h.html#a7ada606dd0fc191727ebd18adcd67462">canvas_free</a></div><div class="ttdeci">void canvas_free(Canvas *canvas)</div><div class="ttdoc">Free canvas memory.</div><div class="ttdef"><b>Definition:</b> canvas.c:35</div></div>
<div class="ttc" id="acanvas__i_8h_html_a8441d61406e318c65ebb5732fbb1d31d"><div class="ttname"><a href="canvas__i_8h.html#a8441d61406e318c65ebb5732fbb1d31d">canvas_get_orientation</a></div><div class="ttdeci">CanvasOrientation canvas_get_orientation(const Canvas *canvas)</div><div class="ttdoc">Get canvas orientation.</div><div class="ttdef"><b>Definition:</b> canvas.c:410</div></div>
<div class="ttc" id="acanvas__i_8h_html_a8496522b8f7d26526af09c067a7023dc"><div class="ttname"><a href="canvas__i_8h.html#a8496522b8f7d26526af09c067a7023dc">canvas_commit</a></div><div class="ttdeci">void canvas_commit(Canvas *canvas)</div><div class="ttdoc">Commit canvas.</div><div class="ttdef"><b>Definition:</b> canvas.c:50</div></div>
<div class="ttc" id="acanvas__i_8h_html_a918d4e9a079c0e8a5f167d1bc3a48285"><div class="ttname"><a href="canvas__i_8h.html#a918d4e9a079c0e8a5f167d1bc3a48285">canvas_reset</a></div><div class="ttdeci">void canvas_reset(Canvas *canvas)</div><div class="ttdoc">Reset canvas drawing tools configuration.</div><div class="ttdef"><b>Definition:</b> canvas.c:40</div></div>
<div class="ttc" id="acanvas__i_8h_html_aa12e742cf2ba7b1b5d29dd1a7235d5ab"><div class="ttname"><a href="canvas__i_8h.html#aa12e742cf2ba7b1b5d29dd1a7235d5ab">canvas_get_buffer_size</a></div><div class="ttdeci">size_t canvas_get_buffer_size(Canvas *canvas)</div><div class="ttdoc">Get canvas buffer size.</div><div class="ttdef"><b>Definition:</b> canvas.c:60</div></div>
<div class="ttc" id="acanvas__i_8h_html_ac0f48a660a06ad7143b2a2f852c12392"><div class="ttname"><a href="canvas__i_8h.html#ac0f48a660a06ad7143b2a2f852c12392">canvas_frame_set</a></div><div class="ttdeci">void canvas_frame_set(Canvas *canvas, uint8_t offset_x, uint8_t offset_y, uint8_t width, uint8_t height)</div><div class="ttdoc">Set drawing region relative to real screen buffer.</div><div class="ttdef"><b>Definition:</b> canvas.c:65</div></div>
<div class="ttc" id="acanvas__i_8h_html_afc2d42827fcc0e42ac3192524b7bf6fa"><div class="ttname"><a href="canvas__i_8h.html#afc2d42827fcc0e42ac3192524b7bf6fa">canvas_get_buffer</a></div><div class="ttdeci">uint8_t * canvas_get_buffer(Canvas *canvas)</div><div class="ttdoc">Get canvas buffer.</div><div class="ttdef"><b>Definition:</b> canvas.c:55</div></div>
<div class="ttc" id="astruct_canvas_html"><div class="ttname"><a href="struct_canvas.html">Canvas</a></div><div class="ttdoc">Canvas structure.</div><div class="ttdef"><b>Definition:</b> canvas_i.h:13</div></div>
<div class="ttc" id="astructu8g2__struct_html"><div class="ttname"><a href="structu8g2__struct.html">u8g2_struct</a></div><div class="ttdef"><b>Definition:</b> u8g2.h:274</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>