mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
Make work_area calculation funcs public and introspectible
https://bugzilla.gnome.org/show_bug.cgi?id=692679
This commit is contained in:
parent
ac49259fc7
commit
d8058138ab
@ -607,14 +607,6 @@ void meta_window_handle_mouse_grab_op_event (MetaWindow *window,
|
||||
|
||||
GList* meta_window_get_workspaces (MetaWindow *window);
|
||||
|
||||
void meta_window_get_work_area_current_monitor (MetaWindow *window,
|
||||
MetaRectangle *area);
|
||||
void meta_window_get_work_area_for_monitor (MetaWindow *window,
|
||||
int which_monitor,
|
||||
MetaRectangle *area);
|
||||
void meta_window_get_work_area_all_monitors (MetaWindow *window,
|
||||
MetaRectangle *area);
|
||||
|
||||
void meta_window_get_current_tile_area (MetaWindow *window,
|
||||
MetaRectangle *tile_area);
|
||||
|
||||
|
@ -9482,6 +9482,13 @@ get_work_area_monitor (MetaWindow *window,
|
||||
area->x, area->y, area->width, area->height);
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_window_get_work_area_current_monitor:
|
||||
* @window: a #MetaWindow
|
||||
* @area: (out): a location to store the work area
|
||||
*
|
||||
* Get the work area for the monitor @window is currently on.
|
||||
*/
|
||||
void
|
||||
meta_window_get_work_area_current_monitor (MetaWindow *window,
|
||||
MetaRectangle *area)
|
||||
@ -9495,6 +9502,15 @@ meta_window_get_work_area_current_monitor (MetaWindow *window,
|
||||
area);
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_window_get_work_area_for_monitor:
|
||||
* @window: a #MetaWindow
|
||||
* @which_monitor: a moniotr to get the work area for
|
||||
* @area: (out): a location to store the work area
|
||||
*
|
||||
* Get the work area for @window, given the monitor index
|
||||
* @which_monitor.
|
||||
*/
|
||||
void
|
||||
meta_window_get_work_area_for_monitor (MetaWindow *window,
|
||||
int which_monitor,
|
||||
@ -9507,6 +9523,13 @@ meta_window_get_work_area_for_monitor (MetaWindow *window,
|
||||
which_monitor);
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_window_get_work_area_all_monitors:
|
||||
* @window: a #MetaWindow
|
||||
* @area: (out): a location to store the work area
|
||||
*
|
||||
* Get the work area for all monitors for @window.
|
||||
*/
|
||||
void
|
||||
meta_window_get_work_area_all_monitors (MetaWindow *window,
|
||||
MetaRectangle *area)
|
||||
|
@ -86,10 +86,6 @@ void meta_workspace_relocate_windows (MetaWorkspace *workspace,
|
||||
|
||||
void meta_workspace_invalidate_work_area (MetaWorkspace *workspace);
|
||||
|
||||
|
||||
void meta_workspace_get_work_area_for_monitor (MetaWorkspace *workspace,
|
||||
int which_monitor,
|
||||
MetaRectangle *area);
|
||||
GList* meta_workspace_get_onscreen_region (MetaWorkspace *workspace);
|
||||
GList* meta_workspace_get_onmonitor_region (MetaWorkspace *workspace,
|
||||
int which_monitor);
|
||||
@ -101,7 +97,3 @@ void meta_workspace_focus_default_window (MetaWorkspace *workspace,
|
||||
const char* meta_workspace_get_name (MetaWorkspace *workspace);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1043,6 +1043,15 @@ meta_workspace_set_builtin_struts (MetaWorkspace *workspace,
|
||||
meta_workspace_invalidate_work_area (workspace);
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_workspace_get_work_area_for_monitor:
|
||||
* @workspace: a #MetaWorkspace
|
||||
* @which_monitor: a monitor index
|
||||
* @area: (out): location to store the work area
|
||||
*
|
||||
* Stores the work area for @which_monitor on @workspace
|
||||
* in @area.
|
||||
*/
|
||||
void
|
||||
meta_workspace_get_work_area_for_monitor (MetaWorkspace *workspace,
|
||||
int which_monitor,
|
||||
|
@ -197,6 +197,14 @@ void meta_window_focus (MetaWindow *window,
|
||||
void meta_window_check_alive (MetaWindow *window,
|
||||
guint32 timestamp);
|
||||
|
||||
void meta_window_get_work_area_current_monitor (MetaWindow *window,
|
||||
MetaRectangle *area);
|
||||
void meta_window_get_work_area_for_monitor (MetaWindow *window,
|
||||
int which_monitor,
|
||||
MetaRectangle *area);
|
||||
void meta_window_get_work_area_all_monitors (MetaWindow *window,
|
||||
MetaRectangle *area);
|
||||
|
||||
void meta_window_begin_grab_op (MetaWindow *window,
|
||||
MetaGrabOp op,
|
||||
gboolean frame_action,
|
||||
|
@ -52,6 +52,9 @@ GType meta_workspace_get_type (void);
|
||||
int meta_workspace_index (MetaWorkspace *workspace);
|
||||
MetaScreen *meta_workspace_get_screen (MetaWorkspace *workspace);
|
||||
GList* meta_workspace_list_windows (MetaWorkspace *workspace);
|
||||
void meta_workspace_get_work_area_for_monitor (MetaWorkspace *workspace,
|
||||
int which_monitor,
|
||||
MetaRectangle *area);
|
||||
void meta_workspace_get_work_area_all_monitors (MetaWorkspace *workspace,
|
||||
MetaRectangle *area);
|
||||
void meta_workspace_activate (MetaWorkspace *workspace, guint32 timestamp);
|
||||
|
Loading…
Reference in New Issue
Block a user