OpenTTD Source: PixelColour Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions | Data Fields
PixelColour Struct Reference

Colour for pixel/line drawing. More...

`#include <gfx_type.h>`

## Public Member Functions
constexpr | PixelColour (uint8_t p)
constexpr TextColour | ToTextColour () const

## Data Fields
uint8_t | p
| Palette index.

## Detailed Description

Colour for pixel/line drawing.

Definition at line 405 of file gfx_type.h.

## Constructor & Destructor Documentation

## ◆ PixelColour() [1/2]

constexpr PixelColour::PixelColour | ( |  | ) |
| inlineconstexpr

Definition at line 408 of file gfx_type.h.

## ◆ PixelColour() [2/2]

constexpr PixelColour::PixelColour | ( | uint8_t | p | ) |
| inlineexplicitconstexpr

Definition at line 409 of file gfx_type.h.

## Member Function Documentation

## ◆ ToTextColour()

constexpr TextColour PixelColour::ToTextColour | ( |  | ) | const
| inlineconstexpr

Definition at line 411 of file gfx_type.h.

## Field Documentation

## ◆ p

uint8_t PixelColour::p

Palette index.

Definition at line 406 of file gfx_type.h.

Referenced by Blitter_32bppAnim::DrawLine(), Blitter_32bppBase::DrawLine(), Blitter_40bppAnim::DrawLine(), Blitter_8bppBase::DrawLine(), Blitter_32bppAnim::DrawRect(), Blitter_32bppBase::DrawRect(), Blitter_40bppAnim::DrawRect(), Blitter_8bppBase::DrawRect(), GetContrastColour(), SmallMapWindow::GetTileColours(), SetColourRemap(), Blitter_32bppAnim::SetPixel(), Blitter_32bppBase::SetPixel(), Blitter_40bppAnim::SetPixel(), and Blitter_8bppBase::SetPixel().

The documentation for this struct was generated from the following file:

- src/gfx_type.h