---
title: "QuartzUIPagePolicy: declaration reference"
description: "Quartz UI 0.57.0-dev: QuartzUIPagePolicy: declaration reference. Source-reviewed guidance, usage and limitations."
status: approved
visibility: public
sourceRevision: fe5b709ec900e282b50e58b819a25041945005f9
reviewedAt: 2026-09-24
---

# QuartzUIPagePolicy: declaration reference

> **0.57.0-dev · beta source documentation.** Native, Blueprint, Editor and rendering examples are source-reviewed, not executed in Unreal during this scan. See [validation and limits](https://betterbuilt.games/docs/quartz-ui/evidence).

Pinned source (source: `Source/QuartzUIRuntime/Public/QuartzUIPagePolicy.h`) · [integration recipe](https://betterbuilt.games/docs/quartz-ui/inventory#quartzuipagepolicy) · [practical guide](https://betterbuilt.games/docs/quartz-ui/rendering)

## FQuartzUIPagePolicy

**Internal type.** Builds browser-side behavior applied to every QuartzUI document after load.

**Prerequisites / integration:** Exact-player app/view and real supported RHI for rendering; project-owned HTML/materials. Use the [QuartzUIPagePolicy recipe](https://betterbuilt.games/docs/quartz-ui/inventory#quartzuipagepolicy) in the host module `QuartzUIRuntime`.

**Minimal example / lifecycle:** Use widget flags and data-quartzui-backdrop HTML marker. Applied to each completed document.

**Avoid:** Patching generated bootstrap strings as game UI code. This named helper is runtime-owned; inspect/use it through the owner above rather than constructing it in gameplay.

Exact source line (source: `Source/QuartzUIRuntime/Public/QuartzUIPagePolicy.h#L6`)

## Complete header

Source snapshot, not an additional example. Unreal annotations distinguish exposed Blueprint nodes from native-only/private methods.

```cpp
#pragma once

#include "CoreMinimal.h"

/** Builds browser-side behavior applied to every QuartzUI document after load. */
class QUARTZUIRUNTIME_API FQuartzUIPagePolicy final
{
public:
	/**
	 * Returns an idempotent script that installs the game-UI interaction policy.
	 * Normal document text is non-selectable by default; editable controls and
	 * elements marked data-quartzui-selectable remain selectable.
	 */
	static FString MakeInitializationScript(bool bAllowTextSelection);
};
```

Canonical HTML: https://betterbuilt.games/docs/quartz-ui/reference-quartzuipagepolicy
