mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
view: expose view_apply_natural_geometry()
Co-authored-by: tokyo4j <hrak1529@gmail.com>
This commit is contained in:
parent
f1141c62d4
commit
4fd7a8075c
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue