MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / resize_view_controller_t

Method resize_view_controller_t

plugins/tile/tree-controller.cpp:144–156  ·  view source on GitHub ↗

----------------------- resize tile controller --------------------------- */

Source from the content-addressed store, hash-verified

142
143/* ----------------------- resize tile controller --------------------------- */
144resize_view_controller_t::resize_view_controller_t(wf::workspace_set_t *wset, wayfire_toplevel_view)
145{
146 this->last_point = get_global_input_coordinates(wset->get_attached_output());
147 this->grabbed_view = find_view_at(get_root(wset, wset->get_current_workspace()), last_point);
148 this->output = wset->get_attached_output();
149
150 if (this->grabbed_view)
151 {
152 this->resizing_edges = calculate_resizing_edges(last_point);
153 horizontal_pair = this->find_resizing_pair(true);
154 vertical_pair = this->find_resizing_pair(false);
155 }
156}
157
158resize_view_controller_t::~resize_view_controller_t()
159{}

Callers

nothing calls this directly

Calls 6

find_resizing_pairMethod · 0.95
find_view_atFunction · 0.85
get_rootFunction · 0.85
get_attached_outputMethod · 0.80
get_current_workspaceMethod · 0.45

Tested by

no test coverage detected