class
FMiriGraphicsPlayerStacks
One screen stack per local player (split screen). Player 0 is the host's own stack, passed in; the others are owned here. Each stack has its own screens, focus, router and (optionally) input action system, and each overlay is laid out inside that player's pane, so safe zone and scale are per pane too.
- Module
- MiriGraphics
- Header
#include "MiriGraphics/FMiriGraphicsPlayerStacks.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
using FStackSetup = std::function<void(CMiriGraphicsScreenStack& stack, int32_t playerIndex)> |
Constructors
| Signature | Name | Description |
|---|---|---|
FMiriGraphicsPlayerStacks() | FMiriGraphicsPlayerStacks | |
~FMiriGraphicsPlayerStacks() | ~FMiriGraphicsPlayerStacks | |
FMiriGraphicsPlayerStacks(const FMiriGraphicsPlayerStacks&) = delete | FMiriGraphicsPlayerStacks |
Public functions
| Returns | Name | Description |
|---|---|---|
FMiriGraphicsPlayerStacks& | operator= | |
void | Configure | Builds the extra stacks (calling setup on each so the host installs its resolvers) and the host widget that panes them. |
void | Clear | |
int32_t | Count | |
bool | IsSplit | |
CMiriGraphicsScreenStack* | Get | |
Miri::TSharedPtr<Miri::MWidget> | GetHost | |
void | SetPaneRects | Normalized pane per player. |
FMiriGraphicsPaneRect | GetPaneRect | |
void | AssignGamepad | Pad slot -> player; -1 clears. |
int32_t | PlayerForGamepad | |
bool | FeedGamepadButton | |
bool | FeedGamepadAxis | |
void | SetSafeInsetsAll | |
void | TickExtras | Ticks the extra stacks; the host ticks player 0 itself. |
Function details
FMiriGraphicsPlayerStacks
C++
FMiriGraphicsPlayerStacks()~FMiriGraphicsPlayerStacks
C++
~FMiriGraphicsPlayerStacks()FMiriGraphicsPlayerStacks
C++
FMiriGraphicsPlayerStacks(const FMiriGraphicsPlayerStacks&) = deleteoperator=
C++
FMiriGraphicsPlayerStacks& operator=(const FMiriGraphicsPlayerStacks&) = deleteConfigure
C++
void Configure(CMiriGraphicsScreenStack* primary, int32_t playerCount, const FStackSetup& setup)Builds the extra stacks (calling setup on each so the host installs its resolvers) and the host widget that panes them. count <= 1 is a no-op.
Clear
C++
void Clear()Count
C++
int32_t Count() constIsSplit
C++
bool IsSplit() constGet
C++
CMiriGraphicsScreenStack* Get(int32_t playerIndex) constGetHost
C++
Miri::TSharedPtr<Miri::MWidget> GetHost() constSetPaneRects
C++
void SetPaneRects(const std::vector<FMiriGraphicsPaneRect>& rects)Normalized pane per player. Rebuilds the layout only when one changed.
GetPaneRect
C++
FMiriGraphicsPaneRect GetPaneRect(int32_t playerIndex) constAssignGamepad
C++
void AssignGamepad(int32_t playerIndex, int32_t gamepadSlot, InputActionSystem* actions)Pad slot -> player; -1 clears. A player with a slot also uses actions (its own InputActionSystem) for UI.* actions.
PlayerForGamepad
C++
int32_t PlayerForGamepad(int32_t gamepadSlot) constFeedGamepadButton
C++
bool FeedGamepadButton(int32_t gamepadSlot, uint8_t sdlButton, bool down)FeedGamepadAxis
C++
bool FeedGamepadAxis(int32_t gamepadSlot, uint8_t sdlAxis, int16_t value)SetSafeInsetsAll
C++
void SetSafeInsetsAll(const FMiriGraphicsSafeInsets& insets)TickExtras
C++
void TickExtras(float deltaSeconds)Ticks the extra stacks; the host ticks player 0 itself.
Generated from MiriGraphics/FMiriGraphicsPlayerStacks.h via mirigraphics.json · Dec 5, 2026Version 1.1.0