|
wlmtk_workspace_t * | wlmtk_workspace_create (wlmtk_env_t *env_ptr, struct wlr_scene_tree *wlr_scene_tree_ptr) |
|
void | wlmtk_workspace_destroy (wlmtk_workspace_t *workspace_ptr) |
|
void | wlmtk_workspace_set_signals (wlmtk_workspace_t *workspace_ptr, struct wl_signal *mapped_event_ptr, struct wl_signal *unmapped_event_ptr) |
|
void | wlmtk_workspace_set_extents (wlmtk_workspace_t *workspace_ptr, const struct wlr_box *extents_ptr) |
|
struct wlr_box | wlmtk_workspace_get_maximize_extents (wlmtk_workspace_t *workspace_ptr) |
|
struct wlr_box | wlmtk_workspace_get_fullscreen_extents (wlmtk_workspace_t *workspace_ptr) |
|
void | wlmtk_workspace_map_window (wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr) |
|
void | wlmtk_workspace_unmap_window (wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr) |
|
bs_dllist_t * | wlmtk_workspace_get_windows_dllist (wlmtk_workspace_t *workspace_ptr) |
|
void | wlmtk_workspace_window_to_fullscreen (wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr, bool fullscreen) |
|
bool | wlmtk_workspace_motion (wlmtk_workspace_t *workspace_ptr, double x, double y, uint32_t time_msec) |
|
bool | wlmtk_workspace_button (wlmtk_workspace_t *workspace_ptr, const struct wlr_pointer_button_event *event_ptr) |
|
bool | wlmtk_workspace_axis (wlmtk_workspace_t *workspace_ptr, struct wlr_pointer_axis_event *wlr_pointer_axis_event_ptr) |
|
void | wlmtk_workspace_begin_window_move (wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr) |
|
void | wlmtk_workspace_begin_window_resize (wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr, uint32_t edges) |
|
void | wlmtk_workspace_activate_window (wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr) |
|
wlmtk_window_t * | wlmtk_workspace_get_activated_window (wlmtk_workspace_t *workspace_ptr) |
|
void | wlmtk_workspace_activate_previous_window (wlmtk_workspace_t *workspace_ptr) |
|
void | wlmtk_workspace_activate_next_window (wlmtk_workspace_t *workspace_ptr) |
|
void | wlmtk_workspace_raise_window (wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr) |
|
wlmtk_fake_workspace_t * | wlmtk_fake_workspace_create (int width, int height) |
|
void | wlmtk_fake_workspace_destroy (wlmtk_fake_workspace_t *fake_workspace_ptr) |
|
- Copyright
- Copyright 2023 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
bool wlmtk_workspace_button |
( |
wlmtk_workspace_t * | workspace_ptr, |
|
|
const struct wlr_pointer_button_event * | event_ptr ) |
Handles a button event: Translates to button down/up/click/dblclick events.
Each button activity (button pressed or released) will directly trigger a corresponding BUTTON_DOWN or BUTTON_UP event. Depending on timing and motion, a "released" event may also triccer a CLICK, DOUBLE_CLICK or DRAG event. These events will be forwarded to the event currently having pointer focus.
TODO(kaese.nosp@m.r@gu.nosp@m.bbe.c.nosp@m.h): Implement DOUBLE_CLICK and DRAG events. Also, move this code into the server and make it well tested.
- Parameters
-
- Returns
- Whether the button was consumed.