Struct Monitor

Inheritance Relationships

Base Type

Struct Documentation

struct Monitor : public CE::Platform::Dimensions<int>

Value snapshot of monitor video-mode dimensions with a display-defined ID.

Copying it does not refresh dimensions or retain a native monitor handle. Native lookup remains subject to the originating display’s inventory lifetime.

Public Functions

Monitor(std::uint64_t id, int width, int height)

Copy a display-defined identity and video-mode dimensions.

See also

Detailed guide

Parameters:
  • id – Identity understood by the originating display inventory, not an OS handle.

  • width – Snapshot video-mode width.

  • height – Snapshot video-mode height. No native monitor ownership or future refresh is acquired.

Monitor(const Monitor&) = default

Copy identity and dimensions without retaining the display or refreshing native state.

See also

Detailed guide

inline std::uint64_t id() const

Declaration: [[nodiscard]]

Read the copied inventory identity.

See also

Detailed guide

Returns:

Display-defined value; meaningful for lookup only within its original inventory lifetime.