19#ifndef MIR_CLIENT_WINDOW_SPEC_H
20#define MIR_CLIENT_WINDOW_SPEC_H
194 template<
typename Context>
214 std::shared_ptr<MirWindowSpec> self;
Handle class for MirWindow - provides automatic reference counting.
Definition: window.h:32
Handle class for MirWindowSpec - provides automatic reference counting, method chaining.
Definition: window_spec.h:37
static auto for_input_method(MirConnection *connection, int width, int height, MirWindow *parent)
Definition: window_spec.h:84
auto set_type(MirWindowType type) -> WindowSpec &
Definition: window_spec.h:106
auto add_surface(MirRenderSurface *surface, int width, int height, int displacement_x, int displacement_y) -> WindowSpec &
Definition: window_spec.h:187
auto set_size(int width, int height) -> WindowSpec &
Definition: window_spec.h:139
static auto for_dialog(MirConnection *connection, int width, int height, MirWindow *parent) -> WindowSpec
Definition: window_spec.h:76
static auto for_menu(MirConnection *connection, int width, int height, MirWindow *parent, MirRectangle *rect, MirEdgeAttachment edge) -> WindowSpec
Definition: window_spec.h:46
auto set_placement(const MirRectangle *rect, MirPlacementGravity rect_gravity, MirPlacementGravity surface_gravity, MirPlacementHints placement_hints, int offset_dx, int offset_dy) -> WindowSpec &
Definition: window_spec.h:164
static auto for_changes(MirConnection *connection) -> WindowSpec
Definition: window_spec.h:101
void create_window(void(*callback)(MirWindow *, Context *), Context *context) const
Definition: window_spec.h:195
auto set_parent(MirWindow *parent) -> WindowSpec &
Definition: window_spec.h:175
static auto for_satellite(MirConnection *connection, int width, int height, MirWindow *parent)
Definition: window_spec.h:91
auto set_fullscreen_on_output(uint32_t output_id) -> WindowSpec &
Definition: window_spec.h:158
auto set_max_size(int max_width, int max_height) -> WindowSpec &
Definition: window_spec.h:125
auto set_size_inc(int width_inc, int height_inc) -> WindowSpec &
Definition: window_spec.h:132
static auto for_tip(MirConnection *connection, int width, int height, MirWindow *parent, MirRectangle *rect, MirEdgeAttachment edge) -> WindowSpec
Definition: window_spec.h:57
auto create_window() const -> Window
Definition: window_spec.h:200
static auto for_gloss(MirConnection *connection, int width, int height)
Definition: window_spec.h:96
static auto for_dialog(MirConnection *connection, int width, int height) -> WindowSpec
Definition: window_spec.h:68
WindowSpec(MirWindowSpec *spec)
Definition: window_spec.h:39
auto set_name(char const *name) -> WindowSpec &
Definition: window_spec.h:146
auto set_min_size(int min_width, int min_height) -> WindowSpec &
Definition: window_spec.h:118
auto set_state(MirWindowState state) -> WindowSpec &
Definition: window_spec.h:181
void apply_to(MirWindow *window) const
Definition: window_spec.h:205
auto set_event_handler(MirWindowEventCallback callback, void *context) -> WindowSpec &
Definition: window_spec.h:152
static auto for_normal_window(MirConnection *connection, int width, int height) -> WindowSpec
Definition: window_spec.h:41
auto set_shell_chrome(MirShellChrome chrome) -> WindowSpec &
Definition: window_spec.h:112
int width
Definition: client_types.h:1
uint32_t output_id
The id of the output to place the surface in.
Definition: client_types.h:17
char const * name
Definition: client_types.h:0
int height
Definition: client_types.h:2
void mir_surface_spec_release(WindowSpec const &spec)=delete
void mir_window_spec_release(WindowSpec const &spec)=delete
Definition: splash_session.h:24
Definition: client_types.h:399