Line data Source code
1 : /* File: gui_sketch_style.inl; Copyright and License: see below */ 2 : 3 : #include "u8/u8_log.h" 4 : #include <assert.h> 5 : 6 : static const char *const GUI_SKETCH_STYLE_FONT_FAMILY = "Sans"; 7 : 8 4 : static inline void gui_sketch_style_init( gui_sketch_style_t *this_ ) 9 : { 10 4 : pencil_size_init_empty( &((*this_).pencil_size) ); 11 4 : } 12 : 13 4 : static inline void gui_sketch_style_destroy( gui_sketch_style_t *this_ ) 14 : { 15 4 : pencil_size_destroy( &((*this_).pencil_size) ); 16 4 : } 17 : 18 : static inline double gui_sketch_style_get_footnote_font_size( const gui_sketch_style_t *this_ ) 19 : { 20 : return pencil_size_get_footnote_font_size( &((*this_).pencil_size) ); 21 : } 22 : 23 : static inline const PangoFontDescription *gui_sketch_style_get_footnote_font_description( const gui_sketch_style_t *this_ ) 24 : { 25 : return pencil_size_get_footnote_font_description( &((*this_).pencil_size) ); 26 : } 27 : 28 : static inline double gui_sketch_style_get_standard_font_size( const gui_sketch_style_t *this_ ) 29 : { 30 : return pencil_size_get_standard_font_size( &((*this_).pencil_size) ); 31 : } 32 : 33 4 : static inline const PangoFontDescription *gui_sketch_style_get_standard_font_description( const gui_sketch_style_t *this_ ) 34 : { 35 4 : return pencil_size_get_standard_font_description( &((*this_).pencil_size) ); 36 : } 37 : 38 : static inline double gui_sketch_style_get_title_font_size( const gui_sketch_style_t *this_ ) 39 : { 40 : return pencil_size_get_title_font_size( &((*this_).pencil_size) ); 41 : } 42 : 43 : static inline const PangoFontDescription *gui_sketch_style_get_title_font_description( const gui_sketch_style_t *this_ ) 44 : { 45 : return pencil_size_get_title_font_description( &((*this_).pencil_size) ); 46 : } 47 : 48 : static inline double gui_sketch_style_get_font_tab_size( const gui_sketch_style_t *this_ ) 49 : { 50 : return pencil_size_get_font_tab_size( &((*this_).pencil_size) ); 51 : } 52 : 53 : static inline double gui_sketch_style_get_font_line_gap( const gui_sketch_style_t *this_ ) 54 : { 55 : return pencil_size_get_font_line_gap( &((*this_).pencil_size) ); 56 : } 57 : 58 : static inline double gui_sketch_style_get_standard_line_width( const gui_sketch_style_t *this_ ) 59 : { 60 : return pencil_size_get_standard_line_width( &((*this_).pencil_size) ); 61 : } 62 : 63 : static inline double gui_sketch_style_get_bold_line_width( const gui_sketch_style_t *this_ ) 64 : { 65 : return pencil_size_get_bold_line_width( &((*this_).pencil_size) ); 66 : } 67 : 68 : static inline double gui_sketch_style_get_standard_object_border( const gui_sketch_style_t *this_ ) 69 : { 70 : return pencil_size_get_standard_object_border( &((*this_).pencil_size) ); 71 : } 72 : 73 : static inline double gui_sketch_style_get_preferred_object_distance( const gui_sketch_style_t *this_ ) 74 : { 75 : return pencil_size_get_preferred_object_distance( &((*this_).pencil_size) ); 76 : } 77 : 78 0 : static inline GdkRGBA gui_sketch_style_get_standard_color( const gui_sketch_style_t *this_ ) 79 : { 80 0 : return pencil_size_get_standard_color( &((*this_).pencil_size) ); 81 : } 82 : 83 : static inline GdkRGBA gui_sketch_style_get_select_color( const gui_sketch_style_t *this_ ) 84 : { 85 : return pencil_size_get_select_color( &((*this_).pencil_size) ); 86 : } 87 : 88 0 : static inline GdkRGBA gui_sketch_style_get_highlight_color( const gui_sketch_style_t *this_ ) 89 : { 90 0 : return pencil_size_get_highlight_color( &((*this_).pencil_size) ); 91 : } 92 : 93 : static inline GdkRGBA gui_sketch_style_get_focus_color( const gui_sketch_style_t *this_ ) 94 : { 95 : return pencil_size_get_focus_color( &((*this_).pencil_size) ); 96 : } 97 : 98 : static inline GdkRGBA gui_sketch_style_get_emphasized_bgcolor( const gui_sketch_style_t *this_ ) 99 : { 100 : return pencil_size_get_emphasized_bgcolor( &((*this_).pencil_size) ); 101 : } 102 : 103 : static inline GdkRGBA gui_sketch_style_get_gray_out_color( const gui_sketch_style_t *this_ ) 104 : { 105 : return pencil_size_get_gray_out_color( &((*this_).pencil_size) ); 106 : } 107 : 108 : 109 : /* 110 : Copyright 2021-2024 Andreas Warnke 111 : 112 : Licensed under the Apache License, Version 2.0 (the "License"); 113 : you may not use this file except in compliance with the License. 114 : You may obtain a copy of the License at 115 : 116 : http://www.apache.org/licenses/LICENSE-2.0 117 : 118 : Unless required by applicable law or agreed to in writing, software 119 : distributed under the License is distributed on an "AS IS" BASIS, 120 : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 121 : See the License for the specific language governing permissions and 122 : limitations under the License. 123 : */