mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
view: Comment updates
This commit is contained in:
parent
331f62f662
commit
9f00087a82
2 changed files with 7 additions and 5 deletions
|
|
@ -147,6 +147,13 @@ void view_move(struct view *view, int x, int y);
|
||||||
void view_moved(struct view *view);
|
void view_moved(struct view *view);
|
||||||
void view_minimize(struct view *view, bool minimized);
|
void view_minimize(struct view *view, bool minimized);
|
||||||
void view_store_natural_geometry(struct view *view);
|
void view_store_natural_geometry(struct view *view);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* view_center - center view within some region
|
||||||
|
* @view: view to be centered
|
||||||
|
* @ref: optional reference region (in layout coordinates) to center
|
||||||
|
* within; if NULL, view is centered within usable area of its output
|
||||||
|
*/
|
||||||
void view_center(struct view *view, const struct wlr_box *ref);
|
void view_center(struct view *view, const struct wlr_box *ref);
|
||||||
void view_restore_to(struct view *view, struct wlr_box geometry);
|
void view_restore_to(struct view *view, struct wlr_box geometry);
|
||||||
void view_set_untiled(struct view *view);
|
void view_set_untiled(struct view *view);
|
||||||
|
|
|
||||||
|
|
@ -102,11 +102,6 @@ view_get_edge_snap_box(struct view *view, struct output *output,
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* At present, a view can only 'enter' one output at a time, although the view
|
|
||||||
* may span multiple outputs. Ideally we would handle multiple outputs, but
|
|
||||||
* this method is the simplest form of what we want.
|
|
||||||
*/
|
|
||||||
static void
|
static void
|
||||||
view_discover_output(struct view *view)
|
view_discover_output(struct view *view)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue