Skip to main content

CanvasCoordinates

CanvasCoordinates

Strong types for different coordinate systems used in the media display. More…

#include <CoordinateTypes.hpp>

Public Functions

Name
CanvasCoordinates() =default
CanvasCoordinates(float x_coord, float y_coord)

Public Attributes

Name
float x
float y

Detailed Description

struct CanvasCoordinates;

Strong types for different coordinate systems used in the media display.

These types prevent confusion between canvas coordinates (display pixels), media coordinates (source image pixels), and other coordinate systems.

Represents a point in canvas coordinate space (display pixels)

Canvas coordinates are the pixel coordinates on the displayed canvas/widget. Origin (0,0) is typically at the top-left of the display.

Public Functions Documentation

function CanvasCoordinates

CanvasCoordinates() =default

function CanvasCoordinates

inline CanvasCoordinates(
    float x_coord,
    float y_coord
)

Public Attributes Documentation

variable x

float x {0.0f};

variable y

float y {0.0f};

Updated on 2026-11-13 at 20:25:39 +0000