# window_customize_build_option

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L271
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_build_option/

```c
static void window_customize_build_option(struct window_customize_modedata *data, struct mode_tree_item *top, enum window_customize_scope scope, struct options_entry *o, struct format_tree *ft, const char *filter, struct cmd_find_state *fs)
```

## Parameters

- `data` (`struct window_customize_modedata *`)
- `top` (`struct mode_tree_item *`)
- `scope` (`enum window_customize_scope`)
- `o` (`struct options_entry *`)
- `ft` (`struct format_tree *`)
- `filter` (`const char *`)
- `fs` (`struct cmd_find_state *`)

## Called by

- [`window_customize_build_options`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_build_options/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L413)

## Calls

- [`format_add`](/en/tmux/3.7c/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L296)
- [`format_expand`](/en/tmux/3.7c/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L316)
- [`format_true`](/en/tmux/3.7c/reference/c-function-format_true/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L317)
- [`mode_tree_add`](/en/tmux/3.7c/reference/c-function-mode_tree_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L334)
- [`options_name`](/en/tmux/3.7c/reference/c-function-options_name/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L278)
- [`options_owner`](/en/tmux/3.7c/reference/c-function-options_owner/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L277)
- [`options_to_string`](/en/tmux/3.7c/reference/c-function-options_to_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L310)
- [`window_customize_add_item`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_add_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L323)
- [`window_customize_build_array`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_build_array/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L338)
- [`window_customize_get_tag`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_get_tag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L333)
- [`window_customize_scope_text`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_scope_text/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L300)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L326)

## Referenced declarations

- [`cmd_find_state`](/en/tmux/3.7c/reference/c-struct-cmd_find_state/) (struct)
- [`window_customize_itemdata.data`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-data/) (attribute)
- [`window_customize_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata-data/) (attribute)
- [`options_table_entry.flags`](/en/tmux/3.7c/reference/c-struct-options_table_entry-flags/) (attribute)
- [`window_customize_modedata.format`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata-format/) (attribute)
- [`format_tree`](/en/tmux/3.7c/reference/c-struct-format_tree/) (struct)
- [`window_customize_modedata.hide_global`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata-hide_global/) (attribute)
- [`window_customize_itemdata.idx`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-idx/) (attribute)
- [`mode_tree_item`](/en/tmux/3.7c/reference/c-struct-mode_tree_item/) (struct)
- [`window_customize_itemdata.name`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-name/) (attribute)
- [`window_customize_itemdata.oo`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-oo/) (attribute)
- [`options_entry`](/en/tmux/3.7c/reference/c-struct-options_entry/) (struct)
- [`OPTIONS_TABLE_IS_ARRAY`](/en/tmux/3.7c/reference/c-define-tmux-h-options_table_is_array/) (constant)
- [`OPTIONS_TABLE_IS_HOOK`](/en/tmux/3.7c/reference/c-define-tmux-h-options_table_is_hook/) (constant)
- [`window_customize_itemdata.scope`](/en/tmux/3.7c/reference/c-struct-window_customize_itemdata-scope/) (attribute)
- [`options_table_entry.unit`](/en/tmux/3.7c/reference/c-struct-options_table_entry-unit/) (attribute)
- [`WINDOW_CUSTOMIZE_GLOBAL_SESSION`](/en/tmux/3.7c/reference/c-enum-window_customize_scope-window_customize_global_session/) (constant)
- [`WINDOW_CUSTOMIZE_GLOBAL_WINDOW`](/en/tmux/3.7c/reference/c-enum-window_customize_scope-window_customize_global_window/) (constant)
- [`window_customize_modedata`](/en/tmux/3.7c/reference/c-struct-window_customize_modedata/) (struct)
- [`window_customize_scope`](/en/tmux/3.7c/reference/c-enum-window_customize_scope/) (enum)
- [`WINDOW_CUSTOMIZE_SERVER`](/en/tmux/3.7c/reference/c-enum-window_customize_scope-window_customize_server/) (constant)
