Line data Source code
1 : /* File: pos_scroll_page.inl; Copyright and License: see below */
2 :
3 : #include <u8/u8_trace.h>
4 : #include <assert.h>
5 :
6 0 : static inline const pos_scroll_page_t pos_scroll_page_new ( uint32_t anchor_index,
7 : bool backwards )
8 : {
9 0 : return (pos_scroll_page_t){ .anchor_index = anchor_index, .backwards = backwards };
10 : }
11 :
12 0 : static inline uint32_t pos_scroll_page_get_anchor_index ( const pos_scroll_page_t *this_ )
13 : {
14 0 : return (*this_).anchor_index;
15 : }
16 :
17 0 : static inline bool pos_scroll_page_get_backwards ( const pos_scroll_page_t *this_ )
18 : {
19 0 : return (*this_).backwards;
20 : }
21 :
22 0 : static inline void pos_scroll_page_trace ( const pos_scroll_page_t *this_ )
23 : {
24 0 : U8_TRACE_INFO_INT_INT( "pos_scroll_page_t: ", (*this_).anchor_index, (*this_).backwards );
25 0 : }
26 :
27 :
28 : /*
29 : Copyright 2025-2025 Andreas Warnke
30 :
31 : Licensed under the Apache License, Version 2.0 (the "License");
32 : you may not use this file except in compliance with the License.
33 : You may obtain a copy of the License at
34 :
35 : http://www.apache.org/licenses/LICENSE-2.0
36 :
37 : Unless required by applicable law or agreed to in writing, software
38 : distributed under the License is distributed on an "AS IS" BASIS,
39 : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40 : See the License for the specific language governing permissions and
41 : limitations under the License.
42 : */
|