gnome-shell/src/shell-window-preview-layout.h
Florian Müllner 01824a6d4e shell: Add getter/setters for all properties
Traditionally, getter/setter functions have been considered a
C convenience, and we therefore didn't bother to add them for
many properties that are only consumed from JS.

However now that gjs optimizes property accesses by calling the
appropriate getter/setter instead, it makes sense to add them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3620>
2025-02-12 13:11:11 +00:00

33 lines
1.1 KiB
C

#pragma once
G_BEGIN_DECLS
#include <clutter/clutter.h>
#define SHELL_TYPE_WINDOW_PREVIEW_LAYOUT (shell_window_preview_layout_get_type ())
G_DECLARE_FINAL_TYPE (ShellWindowPreviewLayout, shell_window_preview_layout,
SHELL, WINDOW_PREVIEW_LAYOUT, ClutterLayoutManager)
typedef struct _ShellWindowPreviewLayout ShellWindowPreviewLayout;
typedef struct _ShellWindowPreviewLayoutPrivate ShellWindowPreviewLayoutPrivate;
struct _ShellWindowPreviewLayout
{
/*< private >*/
ClutterLayoutManager parent;
ShellWindowPreviewLayoutPrivate *priv;
};
ClutterActorBox * shell_window_preview_layout_get_bounding_box (ShellWindowPreviewLayout *self);
ClutterActor * shell_window_preview_layout_add_window (ShellWindowPreviewLayout *self,
MetaWindow *window);
void shell_window_preview_layout_remove_window (ShellWindowPreviewLayout *self,
MetaWindow *window);
GList * shell_window_preview_layout_get_windows (ShellWindowPreviewLayout *self);
G_END_DECLS