mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
...to share common code with minimize_sub_views() Also, fix a bug in the move-to-back functions to move the window hierarchy in the right order. Helped-by: @Consolatis
30 lines
864 B
C
30 lines
864 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_VIEW_IMPL_COMMON_H
|
|
#define LABWC_VIEW_IMPL_COMMON_H
|
|
/*
|
|
* Common code for view->impl functions
|
|
*
|
|
* Please note: only xdg-shell-toplevel-view and xwayland-view view_impl
|
|
* functions should call these functions.
|
|
*/
|
|
|
|
enum z_direction {
|
|
LAB_TO_FRONT,
|
|
LAB_TO_BACK,
|
|
};
|
|
|
|
struct view;
|
|
|
|
void view_impl_move_to_front(struct view *view);
|
|
void view_impl_move_to_back(struct view *view);
|
|
void view_impl_move_sub_views(struct view *parent, enum z_direction z_direction);
|
|
void view_impl_map(struct view *view);
|
|
|
|
/*
|
|
* Updates view geometry at commit based on current position/size,
|
|
* pending move/resize, and committed surface size. The computed
|
|
* position may not match pending.x/y exactly in some cases.
|
|
*/
|
|
void view_impl_apply_geometry(struct view *view, int w, int h);
|
|
|
|
#endif /* LABWC_VIEW_IMPL_COMMON_H */
|