Crate endgame_egui

Crate endgame_egui 

Source

Structs§

CellStyle
CellStyle provides styling information for rendering a grid cell.
HollowArrowStyle
HollowArrowStyle provides styling information for rendering arrows. Currently, hollow arrows must have a head.
LabelStyle
LabelStyle provides styling information for rendering text labels.
SolidArrowStyle
SolidArrowStyle provides styling information for rendering arrows. If no heads are specified it is the degenerate case of a line segment with the possibility of a label.a

Enums§

CellBorderStyle
CellBorderStyle provides styling information for rendering the border of a grid cell. It can either be a primitive style applied to the entire border, or a different style for each edge of the cell.
CellPrimitiveBorderStyle
CellPrimitiveBorderStyle provides styling information for rendering the border of a grid cell.
Theme
A Theme provides some predefined styling for grid cells.

Functions§

alter_segment_length
Helper to adjust the length of a line segment by moving its endpoints, maintaining its orientation but altering where it starts and ends. The segment must not be zero length, and it cannot be shortened to a length of zero or less.
coord_to_egui_pos2
Given a grid coordinate as dynamic::Coord, convert it to a screen position as egui::Pos2 using the provided dynamic::SizedGrid.
egui_pos2_to_coord
Given a screen coordinate as egui::Pos2, convert it to a grid coord using the provided dynamic::SizedGrid.
egui_pos2_to_glam_vec2
Helper to convert a egui::Pos2 into a glam::Vec2.
glam_vec2_to_egui_pos2
Helper to convert a glam::Vec2 into a egui::Pos2.
render_arrow
render_arrow_arc
render_coord_cell
render_disallowed
Draw a 🚫.
render_grid_rect
render_hollow_arrow
render_hollow_arrow_coords
render_hollow_self_arrow
render_label
Helper for drawing a styled label.
render_shape