1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Improve top-level crate docs, and sort features is Cargo.toml

This commit is contained in:
Emil Ernerfeldt
2023-09-27 11:40:28 +02:00
parent 8ef443948f
commit f138131bc8
7 changed files with 43 additions and 38 deletions

View File

@@ -47,6 +47,7 @@ impl PlotPoint {
// ----------------------------------------------------------------------------
/// Solid, dotted, dashed, etc.
#[derive(Debug, PartialEq, Clone, Copy)]
pub enum LineStyle {
Solid,
@@ -319,6 +320,7 @@ impl PlotPoints {
// ----------------------------------------------------------------------------
/// Circle, Diamond, Square, Cross, …
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub enum MarkerShape {
Circle,

View File

@@ -1,4 +1,4 @@
//! Simple plotting library.
//! Simple plotting library for [`egui`](https://github.com/emilk/egui).
//!
//! ## Feature flags
#![cfg_attr(feature = "document-features", doc = document_features::document_features!())]
@@ -77,6 +77,7 @@ impl Default for CoordinatesFormatter {
const MIN_LINE_SPACING_IN_POINTS: f64 = 6.0; // TODO(emilk): large enough for a wide label
/// Two bools, one for each axis (X and Y).
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct AxisBools {