OpenTTD Source  20241120-master-g6d3adc6169
RectPadding Struct Reference

Padding dimensions to apply to each side of a Rect. More...

#include <geometry_type.hpp>

Inheritance diagram for RectPadding:
NWidgetPartPaddings

Public Member Functions

constexpr uint Horizontal () const
 Get total horizontal padding of RectPadding. More...
 
constexpr uint Vertical () const
 Get total vertical padding of RectPadding. More...
 

Data Fields

uint8_t left
 
uint8_t top
 
uint8_t right
 
uint8_t bottom
 

Static Public Attributes

static const RectPadding zero {}
 

Detailed Description

Padding dimensions to apply to each side of a Rect.

Definition at line 51 of file geometry_type.hpp.

Member Function Documentation

◆ Horizontal()

◆ Vertical()


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