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

Add Context::set_debug_on_hover and egui::trace!(ui)

This commit is contained in:
Emil Ernerfeldt
2021-05-27 19:30:08 +02:00
parent 8623909d82
commit 3b807e1ad6
13 changed files with 117 additions and 41 deletions

View File

@@ -49,6 +49,8 @@ impl Color32 {
pub const LIGHT_BLUE: Color32 = Color32::from_rgb(140, 160, 255);
pub const GOLD: Color32 = Color32::from_rgb(255, 215, 0);
pub const DEBUG_COLOR: Color32 = Color32::from_rgba_premultiplied(0, 200, 0, 128);
#[inline(always)]
pub const fn from_rgb(r: u8, g: u8, b: u8) -> Self {
Self([r, g, b, 255])

View File

@@ -229,7 +229,7 @@ pub enum PathType {
use self::PathType::{Closed, Open};
/// Tessellation quality options
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "persistence", derive(serde::Deserialize, serde::Serialize))]
#[cfg_attr(feature = "persistence", serde(default))]
pub struct TessellationOptions {