mirror of
https://github.com/labwc/labwc.git
synced 2026-03-18 05:33:53 -04:00
view: factor out view_compute_position_by_policy()
This commit is contained in:
parent
6a9e6dcae1
commit
5238dcaa08
2 changed files with 27 additions and 20 deletions
|
|
@ -514,6 +514,14 @@ int view_effective_height(struct view *view, bool use_pending);
|
|||
*/
|
||||
void view_center(struct view *view, const struct wlr_box *ref);
|
||||
|
||||
/*
|
||||
* Like view_place_by_policy() but doesn't actually move the view.
|
||||
* Returns false if position could not be computed (for example, if no
|
||||
* outputs are connected). In that case, @geom is not modified.
|
||||
*/
|
||||
bool view_compute_position_by_policy(struct view *view, struct wlr_box *geom,
|
||||
bool allow_cursor, enum lab_placement_policy policy);
|
||||
|
||||
/**
|
||||
* view_place_by_policy - apply placement strategy to view
|
||||
* @view: view to be placed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue