Skip to content

Add allow_resizing and allow_moving settings to GeneralLayoutSettings #904

@CryZe

Description

@CryZe

Summary

Port LiveSplit/LiveSplit#2672 to livesplit-core.

Changes Required

Add two new boolean fields to GeneralLayoutSettings:

  • allow_resizing - when false, the host application should prevent the user from resizing the window via window handles. Defaults to true.
  • allow_moving - when false, the host application should prevent the user from moving the window by dragging. Defaults to true.

Details

These fields need to be:

  1. Added to the GeneralLayoutSettings struct (with default values of true).
  2. Serialised and deserialised in the layout XML format (allow_resizing / allow_moving elements, defaulting to true when absent for backwards compatibility).
  3. Exposed via the C API.

The actual window behaviour is enforced by the host (e.g. LiveSplit), but livesplit-core is responsible for storing and persisting the settings.

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn improvement for livesplit-core.featureA new user visible feature for livesplit-core.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions