Skip to content

Cannot construct WindowEvent::ScaleFactorChanged for tests #4326

@jdisanti

Description

@jdisanti

The WindowEvent::ScaleFactorChanged event has an inner_size_writer member that must be set, but there is no way to construct InnerSizeWriter from outside of winit because its new function is pub(crate).

For the purposes of my test, I don't really want to construct InnerSizeWriter since I have no use for it, so it'd be awesome if it could be defaulted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions