Class Magnifier

Class Documentation

class Magnifier

Renders a magnified region of the scene at the cursor position. By default, the magnifier captures a 300x300 region centred on the cursor and displays it at 1.5x, producing a 450x450 visual area. Changing the magnification preserves the visual area and adjusts the captured region.

Remark

Since MirAL 5.5

Public Functions

Magnifier()
explicit Magnifier(live_config::Store &config_store)

Construct a Magnifier instance with access to a live config store.

Available options:

  • {magnifier, enable}: Whether the magnifier is enabled.

  • {magnifier, magnification}: The magnification scale.

  • {magnifier, capture_size, width}: The width of the rectangular region that will be magnified.

  • {magnifier, capture_size, height}: The height of the rectangular region that will be magnified.

Magnifier &enable(bool enabled)
Magnifier &magnification(float magnification)
Magnifier &capture_size(mir::geometry::Size const &size)
void operator()(mir::Server &server)