The '''DesktopDisplayLayout''' component displays a list of display selection buttons for a user's monitor settup. It is used in the [[dash menu]] and only works in [[userspace]].
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|User|{{RootFieldType|UserRef}}|TypeAdv0=true|
|User|{{RootFieldType|UserRef}}|TypeAdv0=true| The user to get displays for.
|DisplayTemplate|Slot|
|DisplayTemplate|Slot| the template to use when generating display selection buttons.
|ItemGenerated|{{RootFieldType|SyncDelegate`1|[[#DisplayItemHandler|DesktopDisplayLayout.DisplayItemHandler]]}}|TypeAdv2=true| usually the OnDisplayItemGenerated() sync delegate from [[Component:DesktopControlDialog#Sync Delegates|DesktopControlDialog]].
}}
}}
== Behavior ==
== DisplayItemHandler ==
A Sync delegate of type [[Type:Delegate|Delegate]]<[[Type:Display|Display]] display, [[Type:Slot|Slot]] itemRoot>
[[Category:Components With Nested Types{{#translation:}}|Desktop Display Layout]]
[[Category:Components With Nested Types{{#translation:}}|Desktop Display Layout]]
[[Category:ComponentStubs]]
Latest revision as of 18:41, 14 April 2025
Component image
DesktopDisplayLayout component as seen in the Scene Inspector
The DesktopDisplayLayout component displays a list of display selection buttons for a user's monitor settup. It is used in the dash menu and only works in userspace.