| 1 |
/* File: pencil_layouter.inl; Copyright and License: see below */ |
| 2 |
|
| 3 |
#include "u8/u8_log.h" |
| 4 |
#include "geometry/geometry_non_linear_scale.h" |
| 5 |
#include <assert.h> |
| 6 |
|
| 7 |
static inline void pencil_layouter_prepare ( pencil_layouter_t *this_ ) |
| 8 |
{ |
| 9 |
layout_visible_set_resync( &((*this_).layout_data) ); |
| 10 |
pencil_feature_layouter_reset( &((*this_).feature_layouter) ); |
| 11 |
} |
| 12 |
|
| 13 |
static inline const geometry_grid_t *pencil_layouter_get_grid_const ( const pencil_layouter_t *this_ ) |
| 14 |
{ |
| 15 |
return &((*this_).grid); |
| 16 |
} |
| 17 |
|
| 18 |
static inline layout_visible_set_t *pencil_layouter_get_layout_data_ptr ( pencil_layouter_t *this_ ) |
| 19 |
{ |
| 20 |
return &((*this_).layout_data); |
| 21 |
} |
| 22 |
|
| 23 |
static inline const layout_visible_set_t *pencil_layouter_get_layout_data_const ( const pencil_layouter_t *this_ ) |
| 24 |
{ |
| 25 |
return &((*this_).layout_data); |
| 26 |
} |
| 27 |
|
| 28 |
static inline const pencil_size_t *pencil_layouter_get_pencil_size_const ( pencil_layouter_t *this_ ) |
| 29 |
{ |
| 30 |
return &((*this_).pencil_size); |
| 31 |
} |
| 32 |
|
| 33 |
|
| 34 |
/* |
| 35 |
Copyright 2017-2026 Andreas Warnke |
| 36 |
|
| 37 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 38 |
you may not use this file except in compliance with the License. |
| 39 |
You may obtain a copy of the License at |
| 40 |
|
| 41 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 42 |
|
| 43 |
Unless required by applicable law or agreed to in writing, software |
| 44 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 45 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 46 |
See the License for the specific language governing permissions and |
| 47 |
limitations under the License. |
| 48 |
*/ |