2014-03-19 13:26:17 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Red Hat
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* Written by:
|
|
|
|
* Jasper St. Pierre <jstpierre@mecheye.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_WINDOW_WAYLAND_H
|
|
|
|
#define META_WINDOW_WAYLAND_H
|
|
|
|
|
2016-02-01 10:46:11 +00:00
|
|
|
#include "core/window-private.h"
|
2018-07-10 08:36:24 +00:00
|
|
|
#include "meta/window.h"
|
2014-05-20 13:18:45 +00:00
|
|
|
#include "wayland/meta-wayland-types.h"
|
2014-03-19 13:26:17 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2019-07-05 16:22:51 +00:00
|
|
|
#define META_TYPE_WINDOW_WAYLAND (meta_window_wayland_get_type())
|
|
|
|
G_DECLARE_FINAL_TYPE (MetaWindowWayland, meta_window_wayland,
|
|
|
|
META, WINDOW_WAYLAND,
|
|
|
|
MetaWindow)
|
2014-03-19 13:26:17 +00:00
|
|
|
|
2014-05-20 13:18:45 +00:00
|
|
|
MetaWindow * meta_window_wayland_new (MetaDisplay *display,
|
|
|
|
MetaWaylandSurface *surface);
|
|
|
|
|
2019-07-05 16:10:14 +00:00
|
|
|
void meta_window_wayland_finish_move_resize (MetaWindow *window,
|
|
|
|
MetaRectangle new_geom,
|
|
|
|
MetaWaylandSurfaceState *pending);
|
|
|
|
|
2017-02-24 09:05:01 +00:00
|
|
|
int meta_window_wayland_get_geometry_scale (MetaWindow *window);
|
2014-04-28 21:44:45 +00:00
|
|
|
|
2015-03-25 06:39:30 +00:00
|
|
|
void meta_window_wayland_place_relative_to (MetaWindow *window,
|
|
|
|
MetaWindow *other,
|
|
|
|
int x,
|
|
|
|
int y);
|
|
|
|
|
2016-02-01 10:46:11 +00:00
|
|
|
void meta_window_place_with_placement_rule (MetaWindow *window,
|
|
|
|
MetaPlacementRule *placement_rule);
|
|
|
|
|
2020-02-14 09:41:38 +00:00
|
|
|
void meta_window_update_placement_rule (MetaWindow *window,
|
|
|
|
MetaPlacementRule *placement_rule);
|
|
|
|
|
2020-02-14 10:13:24 +00:00
|
|
|
MetaWaylandWindowConfiguration *
|
|
|
|
meta_window_wayland_peek_configuration (MetaWindowWayland *wl_window,
|
|
|
|
uint32_t serial);
|
|
|
|
|
2016-04-06 12:07:08 +00:00
|
|
|
void meta_window_wayland_set_min_size (MetaWindow *window,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
|
|
|
|
void meta_window_wayland_set_max_size (MetaWindow *window,
|
|
|
|
int width,
|
|
|
|
int height);
|
|
|
|
|
|
|
|
void meta_window_wayland_get_min_size (MetaWindow *window,
|
|
|
|
int *width,
|
|
|
|
int *height);
|
|
|
|
|
|
|
|
|
|
|
|
void meta_window_wayland_get_max_size (MetaWindow *window,
|
|
|
|
int *width,
|
|
|
|
int *height);
|
|
|
|
|
2014-03-19 13:26:17 +00:00
|
|
|
#endif
|