view: expose view_apply_natural_geometry()

Co-authored-by: tokyo4j <hrak1529@gmail.com>
This commit is contained in:
Jens Peters 2024-09-21 15:51:37 +02:00 committed by Hiroaki Yamamoto
parent f1141c62d4
commit 4fd7a8075c
2 changed files with 7 additions and 1 deletions

View file

@ -462,6 +462,12 @@ bool view_compute_centered_position(struct view *view,
void view_set_fallback_natural_geometry(struct view *view); void view_set_fallback_natural_geometry(struct view *view);
void view_store_natural_geometry(struct view *view); void view_store_natural_geometry(struct view *view);
/**
* view_apply_natural_geometry - adjust view->natural_geometry if it doesn't
* intersect with view->output and then apply it
*/
void view_apply_natural_geometry(struct view *view);
/** /**
* view_effective_height - effective height of view, with respect to shaded state * view_effective_height - effective height of view, with respect to shaded state
* @view: view for which effective height is desired * @view: view for which effective height is desired

View file

@ -1036,7 +1036,7 @@ view_constrain_size_to_that_of_usable_area(struct view *view)
view_move_resize(view, box); view_move_resize(view, box);
} }
static void void
view_apply_natural_geometry(struct view *view) view_apply_natural_geometry(struct view *view)
{ {
assert(view); assert(view);