# layout_search_by_border

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L143
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-layout_search_by_border/

```c
struct layout_cell * layout_search_by_border(struct layout_cell *lc, u_int x, u_int y)
```

## Parameters

- `lc` (`struct layout_cell *`)
- `x` (`u_int`)
- `y` (`u_int`)

## Called by

- [`cmd_resize_pane_mouse_update_tiled`](/en/tmux/3.7c/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_mouse_update_tiled/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-pane.c#L332)
- [`layout_search_by_border`](/en/tmux/3.7c/reference/c-function-layout_search_by_border/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L153)

## Calls

- [`layout_search_by_border`](/en/tmux/3.7c/reference/c-function-layout_search_by_border/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L153)

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/3.7c/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell.entry`](/en/tmux/3.7c/reference/c-struct-layout_cell-entry/) (attribute)
- [`layout_cell`](/en/tmux/3.7c/reference/c-struct-layout_cell/) (struct)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`LAYOUT_TOPBOTTOM`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_topbottom/) (constant)
- [`LAYOUT_WINDOWPANE`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_windowpane/) (constant)
- [`layout_cell.sx`](/en/tmux/3.7c/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/3.7c/reference/c-struct-layout_cell-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/3.7c/reference/c-struct-layout_cell-type/) (attribute)
- [`layout_cell.xoff`](/en/tmux/3.7c/reference/c-struct-layout_cell-xoff/) (attribute)
- [`layout_cell.yoff`](/en/tmux/3.7c/reference/c-struct-layout_cell-yoff/) (attribute)
