# window_customize_draw_option

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L648
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_draw_option/

```c
static void window_customize_draw_option(struct window_customize_modedata *data, struct window_customize_itemdata *item, struct screen_write_ctx *ctx, u_int sx, u_int sy)
```

## Parameters

- `data` (`struct window_customize_modedata *`)
- `item` (`struct window_customize_itemdata *`)
- `ctx` (`struct screen_write_ctx *`)
- `sx` (`u_int`)
- `sy` (`u_int`)

## Called by

- [`window_customize_draw`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L850)

## Calls

- [`format_create_from_state`](/en/tmux/3.2a/reference/c-function-format_create_from_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L681)
- [`format_expand`](/en/tmux/3.2a/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L740)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L834)
- [`options_default_to_string`](/en/tmux/3.2a/reference/c-function-options_default_to_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L730)
- [`options_get`](/en/tmux/3.2a/reference/c-function-options_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L672)
- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L765)
- [`options_get_only`](/en/tmux/3.2a/reference/c-function-options_get_only/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L810)
- [`options_get_parent`](/en/tmux/3.2a/reference/c-function-options_get_parent/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L795)
- [`options_to_string`](/en/tmux/3.2a/reference/c-function-options_to_string/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L728)
- [`screen_write_cursormove`](/en/tmux/3.2a/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L692)
- [`screen_write_text`](/en/tmux/3.2a/reference/c-function-screen_write_text/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L689)
- [`style_apply`](/en/tmux/3.2a/reference/c-function-style_apply/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L774)
- [`window_customize_check_item`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_check_item/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L667)

## Other function references

- [`options_owner`](/en/tmux/3.2a/reference/c-function-options_owner/) (function)

## Referenced declarations

- [`options_table_entry.choices`](/en/tmux/3.2a/reference/c-struct-options_table_entry-choices/) (attribute)
- [`screen.cx`](/en/tmux/3.2a/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.2a/reference/c-struct-screen-cy/) (attribute)
- [`grid_cell.fg`](/en/tmux/3.2a/reference/c-struct-grid_cell-fg/) (attribute)
- [`options_table_entry.flags`](/en/tmux/3.2a/reference/c-struct-options_table_entry-flags/) (attribute)
- [`grid_default_cell`](/en/tmux/3.2a/reference/c-variable-grid_default_cell/) (attribute)
- [`winlink.idx`](/en/tmux/3.2a/reference/c-struct-winlink-idx/) (attribute)
- [`format_tree.item`](/en/tmux/3.2a/reference/c-struct-format_tree-item/) (attribute)
- [`cmdq_item.name`](/en/tmux/3.2a/reference/c-struct-cmdq_item-name/) (attribute)
- [`OPTIONS_TABLE_CHOICE`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_choice/) (constant)
- [`OPTIONS_TABLE_COLOUR`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_colour/) (constant)
- [`OPTIONS_TABLE_IS_ARRAY`](/en/tmux/3.2a/reference/c-define-tmux-h-options_table_is_array/) (constant)
- [`OPTIONS_TABLE_IS_STYLE`](/en/tmux/3.2a/reference/c-define-tmux-h-options_table_is_style/) (constant)
- [`OPTIONS_TABLE_PANE`](/en/tmux/3.2a/reference/c-define-tmux-h-options_table_pane/) (constant)
- [`OPTIONS_TABLE_SESSION`](/en/tmux/3.2a/reference/c-define-tmux-h-options_table_session/) (constant)
- [`OPTIONS_TABLE_STRING`](/en/tmux/3.2a/reference/c-enum-options_table_type-options_table_string/) (constant)
- [`OPTIONS_TABLE_WINDOW`](/en/tmux/3.2a/reference/c-define-tmux-h-options_table_window/) (constant)
- [`format_tree.s`](/en/tmux/3.2a/reference/c-struct-format_tree-s/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`options_table_entry.scope`](/en/tmux/3.2a/reference/c-struct-options_table_entry-scope/) (attribute)
- [`screen_write_ctx`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx/) (struct)
- [`options_table_entry.text`](/en/tmux/3.2a/reference/c-struct-options_table_entry-text/) (attribute)
- [`options_table_entry.type`](/en/tmux/3.2a/reference/c-struct-options_table_entry-type/) (attribute)
- [`options_table_entry.unit`](/en/tmux/3.2a/reference/c-struct-options_table_entry-unit/) (attribute)
- [`window_customize_itemdata`](/en/tmux/3.2a/reference/c-struct-window_customize_itemdata/) (struct)
- [`window_customize_modedata`](/en/tmux/3.2a/reference/c-struct-window_customize_modedata/) (struct)
- [`WINDOW_CUSTOMIZE_PANE`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_pane/) (constant)
- [`WINDOW_CUSTOMIZE_SESSION`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_session/) (constant)
- [`WINDOW_CUSTOMIZE_WINDOW`](/en/tmux/3.2a/reference/c-enum-window_customize_scope-window_customize_window/) (constant)
- [`cmd_find_state.wl`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-wl/) (attribute)
