Layer Predicates


Synopsis

(std-layer-visible-p <layname>) ; if ON and not FROZEN

(std-layer-on-p <layname>) ; if ON

(std-layer-frozen-p <layname>) ; if FROZEN

Description

These three predicates are used for the ON and FROZEN status of a given layer:

STD-LAYER-VISIBLE-P is a predicate if the given layer is visible or not, if it's ON and not frozen.

STD-LAYER-ON-P is a predicate if the given layer is ON, not OFF.

STD-LAYER-FROZEN-P is a predicate if the given layer is frozen, not thawed.

See also STD-LAYER-MAKE.

Examples

(if (not (std-layer-visible-p lay))
  (command "'_LAYER" "_ON" lay "_TH" lay ""))

(if (std-layer-on-p lay)
  (command "'_LAYER" "_OFF" lay ""))

(if (not (std-layer-frozen-p lay))
  (command "'_LAYER" "_FR" lay ""))

Arguments

layname: a string, a valid layer name

Return Values

T or Nil.

Side Effects

None

Module

(std-require 'STDTBL)

Defined in STDTBL