Commit e691057f authored by José Expósito's avatar José Expósito
Browse files

meta/window: Make window tile API public

Part-of: <!1805>
parent 986ae69f
Pipeline #275031 passed with stages
in 23 minutes and 8 seconds
......@@ -72,14 +72,6 @@ typedef enum
*/
#define N_IGNORED_CROSSING_SERIALS 10
typedef enum
{
META_TILE_NONE,
META_TILE_LEFT,
META_TILE_RIGHT,
META_TILE_MAXIMIZED
} MetaTileMode;
typedef enum
{
/* Normal interaction where you're interacting with windows.
......
......@@ -659,13 +659,6 @@ void meta_window_unmanage (MetaWindow *window,
void meta_window_unmanage_on_idle (MetaWindow *window);
void meta_window_queue (MetaWindow *window,
guint queuebits);
META_EXPORT_TEST
void meta_window_untile (MetaWindow *window);
META_EXPORT_TEST
void meta_window_tile (MetaWindow *window,
MetaTileMode mode);
MetaTileMode meta_window_get_tile_mode (MetaWindow *window);
void meta_window_restore_tile (MetaWindow *window,
MetaTileMode mode,
int width,
......
......@@ -81,6 +81,21 @@ typedef enum
META_MAXIMIZE_BOTH = (1 << 0 | 1 << 1),
} MetaMaximizeFlags;
/**
* MetaTileMode:
* @META_TILE_NONE: Not tiled
* @META_TILE_LEFT: Tiled left
* @META_TILE_RIGHT: Tiled right
* @META_TILE_MAXIMIZED: Tiled maximized
*/
typedef enum
{
META_TILE_NONE,
META_TILE_LEFT,
META_TILE_RIGHT,
META_TILE_MAXIMIZED
} MetaTileMode;
/**
* MetaWindowClientType:
* @META_WINDOW_CLIENT_TYPE_WAYLAND: A Wayland based window
......@@ -348,6 +363,16 @@ MetaFrameType meta_window_get_frame_type (MetaWindow *window);
META_EXPORT
cairo_region_t *meta_window_get_frame_bounds (MetaWindow *window);
META_EXPORT
void meta_window_tile (MetaWindow *window,
MetaTileMode mode);
META_EXPORT
void meta_window_untile (MetaWindow *window);
META_EXPORT
MetaTileMode meta_window_get_tile_mode (MetaWindow *window);
META_EXPORT
MetaWindow *meta_window_get_tile_match (MetaWindow *window);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment