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