csharp
public readonly record struct MediaContextWhat a media query is asked about.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A surface rather than a screen. A game's UI can be a full window, a split-screen viewport or a world-space panel on the side of a crate, and all three want @media (max-width: …) to mean "this panel", never "the monitor". Nothing here can be asked about the display.
Fields and properties (4)
public float WidthThe surface width in logical pixels.
public float HeightThe surface height in logical pixels.
public float ResolutionDevice pixels per logical pixel.
public ColorSchemePreference ColorSchemeThe palette preference.
Methods (1)
public MediaContext(float Width, float Height, float Resolution = 1, ColorSchemePreference ColorScheme = NoPreference)What a media query is asked about.
Used by (9)
- CascadeFixtureVixen.Ui.Styling.Tests
- CascadeOrderTestsVixen.Ui.Styling.Tests
- MediaQueryVixen.Ui.Styling
- SheetVixen.Ui.Styling
- StyleEngineVixen.Ui.Styling
- StyleSheetLoaderVixen.Ui.Styling
- StyleSheetLoadingTestsVixen.Ui.Styling.Tests
- UtilityFixtureVixen.Ui.Styling.Utilities.Tests
- UtilityGenerationTestsVixen.Ui.Styling.Utilities.Tests