# [−][src]Module piston_window::types

Contains type aliases used in this library

## Type Definitions

Area | The type used for area. |

Color | [red, green, blue, alpha] |

ColorComponent | The type used for color component. |

FontSize | The type used for font size. |

Line | [x1, y1, x2, y2] |

Matrix2d | The type used for matrices. |

Polygon | [p0, p1, ...] |

Polygons | A slice of polygons. |

Radius | The type used for radius. |

Ray | [x, y, dir_x, dir_y] |

Rectangle | Rectangle dimensions: [x, y, w, h] |

Resolution | The type used for resolution. |

Scalar | The type used for scalars. |

SourceRectangle | [x, y, w, h] |

Triangle | [x1, y1, x2, y2, x3, y3] |

Vec2d | The type used for 2D vectors. |

Width | The type used for width. |