39 offset_ = (
x_direction > 0 ? y0_ : raw_width - 1 - y0_) +
40 (
y_direction > 0 ? x0_ : raw_height - 1 - x0_) * raw_width;
44 offset_ = (
x_direction > 0 ? x0_ : raw_width - 1 - x0_) +
45 (
y_direction > 0 ? y0_ : raw_height - 1 - y0_) * raw_width;
57 extents.
xMin() + ((extents.
width() + 7) & ~7) - 1, extents.
yMax());
BitMaskOffscreen(int16_t width, int16_t height, roo::byte *buffer)
Axis-aligned integer rectangle.
int16_t width() const
Width in pixels (inclusive coordinates).
int16_t xMin() const
Minimum x (inclusive).
int16_t yMax() const
Maximum y (inclusive).
int16_t yMin() const
Minimum y (inclusive).
ARGB8888 color stored as a 32-bit unsigned integer.
Offscreen rasterizable that writes into a pixel buffer.
void set_extents(const Box &extents)
Box extents() const override
Represents the orientation of a display device.
bool isLeftToRight() const
Return whether horizontal direction is left-to-right.
bool isTopToBottom() const
Return whether vertical direction is top-to-bottom.
bool isXYswapped() const
Return whether x maps to the vertical direction.
void setAddress(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, int16_t raw_width, int16_t raw_height, Orientation orientation)
Orientation orientation() const
Defines 140 opaque HTML named colors.