Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
shell_view.h File Reference

Declares the shell view renderer and layout helpers. More...

#include <cstddef>
#include <string>
#include <vector>
#include "src/app/client_state.h"
#include "src/logging/logger.h"
Include dependency graph for shell_view.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ui::ShellActionRow
 Render-ready vertical action row used by menus and modals. More...
 
struct  ui::ShellAppTile
 Render-ready app tile for the per-host apps page. More...
 
struct  ui::ShellFooterAction
 Render-ready footer chip pairing a button icon with an action label. More...
 
struct  ui::ShellFrameView
 Shell-wide frame metadata shared across all render paths. More...
 
struct  ui::ShellHostTile
 Render-ready host tile for the Moonlight-style hosts page. More...
 
struct  ui::ShellKeypadModalView
 Add-host keypad modal view rendered above the split add-host screen. More...
 
struct  ui::ShellLogViewerView
 Embedded log viewer state surfaced by the log-file modal. More...
 
struct  ui::ShellModalButton
 Render-ready button in the keypad modal. More...
 
struct  ui::ShellModalView
 Modal dialog view rendered on top of the current shell page. More...
 
struct  ui::ShellNotification
 Render-ready bottom-right notification shown above the shell content. More...
 
struct  ui::ShellNotificationView
 Transient notification view rendered above the main shell content. More...
 
struct  ui::ShellOverlayView
 Diagnostics overlay view rendered above the shell content. More...
 
struct  ui::ShellPageContentView
 Main page content shown behind overlays and modals. More...
 
struct  ui::ShellToolbarButton
 Render-ready button shown in the hosts toolbar. More...
 
struct  ui::ShellViewModel
 Render-ready shell state derived from the app model. More...
 

Functions

ShellViewModel ui::build_shell_view_model (const app::ClientState &state, const std::vector< logging::LogEntry > &logEntries, const std::vector< std::string > &statsLines={})
 Build a render-ready shell view from app state and diagnostics.
 

Detailed Description

Declares the shell view renderer and layout helpers.

Function Documentation

◆ build_shell_view_model()

ShellViewModel ui::build_shell_view_model ( const app::ClientState & state,
const std::vector< logging::LogEntry > & logEntries,
const std::vector< std::string > & statsLines = {} )

Build a render-ready shell view from app state and diagnostics.

Parameters
stateCurrent app shell state.
logEntriesRecent log entries for the optional overlay.
statsLinesOptional streaming statistics overlay lines.
Returns
A render-ready shell view model.