diff options
author | Thomas White <taw@physics.org> | 2019-07-02 23:44:02 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-07-02 23:44:02 +0200 |
commit | f5bbe15d3c39a8f6fe891c4d6be23071e142a7ec (patch) | |
tree | 13e55f3297eba0272d8cfef6d38e870e703d9cb0 /src/lightctx.c | |
parent | d4179a12792269f2af090d27a4307c6a570ef8a2 (diff) |
Attribute bar at bottom of screen
Diffstat (limited to 'src/lightctx.c')
-rw-r--r-- | src/lightctx.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lightctx.c b/src/lightctx.c index cbd5c24..cfa140f 100644 --- a/src/lightctx.c +++ b/src/lightctx.c @@ -159,3 +159,14 @@ void attr_movey(struct lightctx *nl, signed int d, int fine) } } + + +int any_selected_fixture_has(struct lightctx *nl, int attr) +{ + int i; + for ( i=0; i<nl->n_sel; i++ ) { + struct fixture *fix = &nl->fixtures[nl->selection[i]]; + if ( fix->cls->attributes & attr ) return 1; + } + return 0; +} |