Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/ghost/intern/GHOST_WindowWayland.h')
-rw-r--r--intern/ghost/intern/GHOST_WindowWayland.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWayland.h b/intern/ghost/intern/GHOST_WindowWayland.h
index 89354c54c0f..c754e4cd9e7 100644
--- a/intern/ghost/intern/GHOST_WindowWayland.h
+++ b/intern/ghost/intern/GHOST_WindowWayland.h
@@ -36,10 +36,10 @@ class GHOST_WindowWayland : public GHOST_Window {
~GHOST_WindowWayland() override;
- uint16_t getDPIHint() override;
-
/* Ghost API */
+ uint16_t getDPIHint() override;
+
GHOST_TSuccess setWindowCursorGrab(GHOST_TGrabCursorMode mode) override;
GHOST_TSuccess setWindowCursorShape(GHOST_TStandardCursor shape) override;
@@ -93,29 +93,26 @@ class GHOST_WindowWayland : public GHOST_Window {
void setOpaque() const;
#endif
- /* WAYLAND utility functions. */
+ /* WAYLAND direct-data access. */
- GHOST_TSuccess close();
+ uint16_t dpi() const;
+ int scale() const;
+ struct wl_surface *surface() const;
+ const std::vector<output_t *> &outputs();
- GHOST_TSuccess activate();
+ /* WAYLAND window-level functions. */
+ GHOST_TSuccess close();
+ GHOST_TSuccess activate();
GHOST_TSuccess deactivate();
-
GHOST_TSuccess notify_size();
- struct wl_surface *surface() const;
-
- output_t *output_find_by_wl(struct wl_output *output);
-
- const std::vector<output_t *> &outputs();
+ /* WAYLAND utility functions. */
bool outputs_enter(output_t *reg_output);
bool outputs_leave(output_t *reg_output);
- bool outputs_changed_update_scale();
- uint16_t dpi();
-
- int scale();
+ bool outputs_changed_update_scale();
private:
GHOST_SystemWayland *m_system;