debug.dart 1.21 KB
Newer Older
1 2 3 4
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5
import 'dart:ui' as ui;
6

Adam Barth's avatar
Adam Barth committed
7
/// Causes each RenderBox to paint a box around its bounds.
8
bool debugPaintSizeEnabled = false;
Adam Barth's avatar
Adam Barth committed
9 10

/// The color to use when painting RenderObject bounds.
11
ui.Color debugPaintSizeColor = const ui.Color(0xFF00FFFF);
12

Adam Barth's avatar
Adam Barth committed
13
/// Causes each RenderBox to paint a line at each of its baselines.
14
bool debugPaintBaselinesEnabled = false;
Adam Barth's avatar
Adam Barth committed
15 16

/// The color to use when painting alphabetic baselines.
17
ui.Color debugPaintAlphabeticBaselineColor = const ui.Color(0xFF00FF00);
Adam Barth's avatar
Adam Barth committed
18 19

/// The color ot use when painting ideographic baselines.
20
ui.Color debugPaintIdeographicBaselineColor = const ui.Color(0xFFFFD000);
21

Adam Barth's avatar
Adam Barth committed
22
/// Causes each Layer to paint a box around its bounds.
23
bool debugPaintLayerBordersEnabled = false;
Adam Barth's avatar
Adam Barth committed
24 25

/// The color to use when painting Layer borders.
26
ui.Color debugPaintLayerBordersColor = const ui.Color(0xFFFF9800);
27

Adam Barth's avatar
Adam Barth committed
28
/// Causes RenderObjects to paint warnings when painting outside their bounds.
29
bool debugPaintBoundsEnabled = false;
30 31

/// The color to use when painting RenderError boxes in checked mode.
32
ui.Color debugErrorBoxColor = const ui.Color(0xFFFF0000);