LCOV - code coverage report
Current view: top level - gui/include - gui_type_resource.inl (source / functions) Hit Total Coverage
Test: crystal-facet-uml_v1.61.0_covts Lines: 0 33 0.0 %
Date: 2024-10-26 21:44:38 Functions: 0 9 0.0 %

          Line data    Source code
       1             : /* File: gui_type_resource.inl; Copyright and License: see below */
       2             : 
       3           0 : static inline void gui_type_resource_init_diagram ( gui_type_resource_t *this_,
       4             :                                                     data_diagram_type_t type,
       5             :                                                     const char * name,
       6             :                                                     GdkTexture * icon )
       7             : {
       8           0 :     data_type_init_diagram( &((*this_).type_id), type );
       9           0 :     (*this_).name = name;
      10           0 :     (*this_).icon = icon;
      11           0 : }
      12             : 
      13           0 : static inline void gui_type_resource_init_classifier ( gui_type_resource_t *this_,
      14             :                                                        data_classifier_type_t type,
      15             :                                                        const char * name,
      16             :                                                        GdkTexture * icon )
      17             : {
      18           0 :     data_type_init_classifier( &((*this_).type_id), type );
      19           0 :     (*this_).name = name;
      20           0 :     (*this_).icon = icon;
      21           0 : }
      22             : 
      23           0 : static inline void gui_type_resource_init_feature ( gui_type_resource_t *this_,
      24             :                                                     data_feature_type_t type,
      25             :                                                     const char * name,
      26             :                                                     GdkTexture * icon )
      27             : {
      28           0 :     data_type_init_feature( &((*this_).type_id), type );
      29           0 :     (*this_).name = name;
      30           0 :     (*this_).icon = icon;
      31           0 : }
      32             : 
      33           0 : static inline void gui_type_resource_init_relationship ( gui_type_resource_t *this_,
      34             :                                                          data_relationship_type_t type,
      35             :                                                          const char * name,
      36             :                                                          GdkTexture * icon )
      37             : {
      38           0 :     data_type_init_relationship( &((*this_).type_id), type );
      39           0 :     (*this_).name = name;
      40           0 :     (*this_).icon = icon;
      41           0 : }
      42             : 
      43           0 : static inline void gui_type_resource_replace ( gui_type_resource_t *this_, const gui_type_resource_t *original )
      44             : {
      45           0 :     (*this_).type_id = (*original).type_id;
      46           0 :     (*this_).name = (*original).name;
      47           0 :     (*this_).icon = (*original).icon;
      48           0 : }
      49             : 
      50           0 : static inline void gui_type_resource_destroy ( gui_type_resource_t *this_ )
      51             : {
      52           0 : }
      53             : 
      54           0 : static inline const data_type_t * gui_type_resource_get_type_id ( const gui_type_resource_t *this_ )
      55             : {
      56           0 :     return ( &((*this_).type_id) );
      57             : }
      58             : 
      59           0 : static inline const char * gui_type_resource_get_name ( const gui_type_resource_t *this_ )
      60             : {
      61           0 :     return ( (*this_).name );
      62             : }
      63             : 
      64           0 : static inline GdkTexture * gui_type_resource_get_icon ( const gui_type_resource_t *this_ )
      65             : {
      66           0 :     return ( (*this_).icon );
      67             : }
      68             : 
      69             : 
      70             : /*
      71             : Copyright 2020-2024 Andreas Warnke
      72             : 
      73             : Licensed under the Apache License, Version 2.0 (the "License");
      74             : you may not use this file except in compliance with the License.
      75             : You may obtain a copy of the License at
      76             : 
      77             :     http://www.apache.org/licenses/LICENSE-2.0
      78             : 
      79             : Unless required by applicable law or agreed to in writing, software
      80             : distributed under the License is distributed on an "AS IS" BASIS,
      81             : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      82             : See the License for the specific language governing permissions and
      83             : limitations under the License.
      84             : */

Generated by: LCOV version 1.16