19 #ifndef MIR_CLIENT_WINDOW_SPEC_H 20 #define MIR_CLIENT_WINDOW_SPEC_H 93 #if MIR_CLIENT_API_VERSION >= MIR_VERSION_NUMBER(0, 27, 0) 98 .set_size(width, height)
110 #if MIR_CLIENT_API_VERSION >= MIR_VERSION_NUMBER(0, 27, 0) 115 .set_size(width, height)
213 #if MIR_CLIENT_API_VERSION < MIR_VERSION_NUMBER(0, 27, 0) 214 #pragma GCC diagnostic push 215 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 218 #if MIR_CLIENT_API_VERSION < MIR_VERSION_NUMBER(0, 27, 0) 219 #pragma GCC diagnostic pop 224 template<
typename Context>
227 mir_create_window(*
this, reinterpret_cast<MirWindowCallback>(callback), context);
244 std::shared_ptr<MirWindowSpec>
self;
253 #endif //MIRAL_TOOLKIT_WINDOW_SPEC_H_H AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: blob.h:26
static auto for_input_method(MirConnection *connection, int width, int height, MirWindow *parent)
Definition: window_spec.h:84
static auto for_satellite(MirConnection *connection, int width, int height, MirWindow *parent)
Definition: window_spec.h:91
static auto for_dialog(MirConnection *connection, int width, int height, MirWindow *parent) -> WindowSpec
Definition: window_spec.h:76
auto set_state(MirWindowState state) -> WindowSpec &
Definition: window_spec.h:204
auto set_type(MirWindowType type) -> WindowSpec &
Definition: window_spec.h:129
void create_window(void(*callback)(MirWindow *, Context *), Context *context) const
Definition: window_spec.h:225
int height
Definition: client_types.h:179
auto set_max_size(int max_width, int max_height) -> WindowSpec &
Definition: window_spec.h:148
auto set_event_handler(MirWindowEventCallback callback, void *context) -> WindowSpec &
Definition: window_spec.h:175
auto set_min_size(int min_width, int min_height) -> WindowSpec &
Definition: window_spec.h:141
static auto for_changes(MirConnection *connection) -> WindowSpec
Definition: window_spec.h:124
Handle class for MirWindow - provides automatic reference counting.
Definition: window.h:31
auto set_parent(MirWindow *parent) -> WindowSpec &
Definition: window_spec.h:198
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:187
static auto for_tip(MirConnection *connection, int width, int height, MirWindow *parent, MirRectangle *rect, MirEdgeAttachment edge) -> WindowSpec
Definition: window_spec.h:57
auto set_shell_chrome(MirShellChrome chrome) -> WindowSpec &
Definition: window_spec.h:135
auto add_surface(MirRenderSurface *surface, int width, int height, int displacement_x, int displacement_y) -> WindowSpec &
Definition: window_spec.h:210
static auto for_menu(MirConnection *connection, int width, int height, MirWindow *parent, MirRectangle *rect, MirEdgeAttachment edge) -> WindowSpec
Definition: window_spec.h:46
auto set_size(int width, int height) -> WindowSpec &
Definition: window_spec.h:162
auto set_name(char const *name) -> WindowSpec &
Definition: window_spec.h:169
Handle class for MirWindowSpec - provides automatic reference counting, method chaining.
Definition: window_spec.h:36
void mir_window_spec_release(WindowSpec const &spec)=delete
void apply_to(MirWindow *window) const
Definition: window_spec.h:235
auto create_window() const -> Window
Definition: window_spec.h:230
static auto for_normal_window(MirConnection *connection, int width, int height) -> WindowSpec
Definition: window_spec.h:41
mir_buffer_usage_hardware
Definition: client_types.h:177
char const * name
Definition: client_types.h:177
WindowSpec(MirWindowSpec *spec)
Definition: window_spec.h:39
Definition: client_types.h:398
uint32_t output_id
The id of the output to place the surface in.
Definition: client_types.h:194
void mir_surface_spec_release(WindowSpec const &spec)=delete
static auto for_dialog(MirConnection *connection, int width, int height) -> WindowSpec
Definition: window_spec.h:68
int width
Definition: client_types.h:178
auto set_fullscreen_on_output(uint32_t output_id) -> WindowSpec &
Definition: window_spec.h:181
auto set_size_inc(int width_inc, int height_inc) -> WindowSpec &
Definition: window_spec.h:155
static auto for_gloss(MirConnection *connection, int width, int height)
Definition: window_spec.h:108