LCOV - code coverage report
Current view: top level - gui/include/pos - pos_nav_tree_gap.inl (source / functions) Hit Total Coverage
Test: crystal-facet-uml_v1.61.0_covts Lines: 17 17 100.0 %
Date: 2024-10-26 21:44:38 Functions: 6 6 100.0 %

          Line data    Source code
       1             : /* File: pos_nav_tree_gap.inl; Copyright and License: see below */
       2             : 
       3             : #include <assert.h>
       4             : 
       5          14 : static inline void pos_nav_tree_gap_init ( pos_nav_tree_gap_t *this_,
       6             :                                            data_id_t parent_id,
       7             :                                            int32_t list_order )
       8             : {
       9          14 :     shape_int_rectangle_init_empty( &((*this_).gap_box) );
      10          14 :     (*this_).parent_id = parent_id;
      11          14 :     (*this_).list_order = list_order;
      12          14 : }
      13             : 
      14          14 : static inline void pos_nav_tree_gap_destroy ( pos_nav_tree_gap_t *this_ )
      15             : {
      16          14 :     shape_int_rectangle_destroy( &((*this_).gap_box) );
      17          14 : }
      18             : 
      19         109 : static inline const shape_int_rectangle_t *pos_nav_tree_gap_get_gap_box_const ( const pos_nav_tree_gap_t *this_ )
      20             : {
      21         109 :     return &((*this_).gap_box);
      22             : }
      23             : 
      24             : static inline void pos_nav_tree_gap_set_gap_box ( pos_nav_tree_gap_t *this_, const shape_int_rectangle_t *gap_box )
      25             : {
      26             :     shape_int_rectangle_replace( &((*this_).gap_box), gap_box );
      27             : }
      28             : 
      29          14 : static inline void pos_nav_tree_gap_set_gap_box_coords ( pos_nav_tree_gap_t *this_,
      30             :                                                          int32_t left,
      31             :                                                          int32_t top,
      32             :                                                          uint32_t width,
      33             :                                                          uint32_t height )
      34             : {
      35          14 :     shape_int_rectangle_reinit( &((*this_).gap_box), left, top, width, height );
      36          14 : }
      37             : 
      38          17 : static inline data_id_t pos_nav_tree_gap_get_parent_id ( const pos_nav_tree_gap_t *this_ )
      39             : {
      40          17 :     return (*this_).parent_id;
      41             : }
      42             : 
      43          17 : static inline int32_t pos_nav_tree_gap_get_list_order ( const pos_nav_tree_gap_t *this_ )
      44             : {
      45          17 :     return (*this_).list_order;
      46             : }
      47             : 
      48             : 
      49             : /*
      50             : Copyright 2021-2024 Andreas Warnke
      51             : 
      52             : Licensed under the Apache License, Version 2.0 (the "License");
      53             : you may not use this file except in compliance with the License.
      54             : You may obtain a copy of the License at
      55             : 
      56             :     http://www.apache.org/licenses/LICENSE-2.0
      57             : 
      58             : Unless required by applicable law or agreed to in writing, software
      59             : distributed under the License is distributed on an "AS IS" BASIS,
      60             : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      61             : See the License for the specific language governing permissions and
      62             : limitations under the License.
      63             : */

Generated by: LCOV version 1.16