OpenTTD Source  20241108-master-g80f628063a
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: