aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-26 17:14:56 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-26 17:14:56 +0200
commit03f92948d1504c32049da065c0e73e01f96d8033 (patch)
treee519616846f5e8079ba8d75aeadc3f516817311b /common
parentdb7edbf0b3bbbf96d46dc082d5c82dd5ebbf460f (diff)
downloadnextpnr-03f92948d1504c32049da065c0e73e01f96d8033.tar.gz
nextpnr-03f92948d1504c32049da065c0e73e01f96d8033.tar.bz2
nextpnr-03f92948d1504c32049da065c0e73e01f96d8033.zip
clangformat and GraphicElement::style comments
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common')
-rw-r--r--common/nextpnr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index 1cce21c0..e9e491f4 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -155,10 +155,10 @@ struct GraphicElement
enum style_t
{
- G_FRAME,
- G_HIDDEN,
- G_INACTIVE,
- G_ACTIVE,
+ G_FRAME, // Static "frame". Contrast between G_INACTIVE and G_ACTIVE
+ G_HIDDEN, // Only display when object is selected or highlighted
+ G_INACTIVE, // Render using low-contrast color
+ G_ACTIVE, // Render using high-contast color
} style = G_FRAME;
float x1 = 0, y1 = 0, x2 = 0, y2 = 0, z = 0;