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