> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Layout

> Layout

# Layout

游戏的完整触控布局的表示。

## 属性

`content` - *object*。定义布局实际内容的 [Content](https://docs.xbox.com/zh-CN/reference/system/touchadaptationkit/layout/game-streaming-touch-layout-content.md) 对象。

`styles` - *object*，*可选*。包含可在整个布局中引用以用于样式设置目的的可重用样式集合的 [Styles](https://docs.xbox.com/zh-CN/reference/system/touchadaptationkit/layout/game-streaming-touch-layout-styles.md) 对象。

`definitions` - *object*，*可选*。可用于包含触控布局的可重用组件和值的部分。

## 要求

布局的版本由布局 json 文件中的 `$schema` 属性指定。这指定了布局中可用的特定控件和功能集。

此处描述的属性适用于布局版本 4.0 及更高版本。

## 另请参阅

[Touch Adaptation Kit 参考](https://docs.xbox.com/zh-CN/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)\
[示例布局入门](https://docs.xbox.com/zh-CN/build/core-features/common/game-streaming/building-touch-layouts/samples/game-streaming-touch-getting-started-with-sample-layouts.md)


## Related topics

- [XGameStreamingShowTouchControlLayout](https://docs.xbox.com/zh-CN/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayout.md)
- [D3D12_INPUT_LAYOUT_DESC](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/structs/d3d12_input_layout_desc_public.md)
- [XGameStreamingShowTouchControlLayoutOnClient](https://docs.xbox.com/zh-CN/reference/system/xgamestreaming/functions/xgamestreamingshowtouchcontrollayoutonclient.md)
- [IGameInput::RegisterKeyboardLayoutCallback](https://docs.xbox.com/zh-CN/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerkeyboardlayoutcallback.md)
- [D3D12_ELEMENTS_LAYOUT (XBOX Series 主机)](https://docs.xbox.com/zh-CN/reference/graphics/d3d12/enums/d3d12_elements_layout_public.md)
