---
name: "PatternCmd"
section: "3"
platform: "linux"
package: "ivtools-dev"
version: "1.1.3-4"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/PatternCmd"
---

# PatternCmd(3)

command for setting components' pattern attribute

## NAME

PatternCmd - command for setting components' pattern attribute

## SYNOPSIS

**#include \<Unidraw/Commands/patcmd.h\>**

## DESCRIPTION

PatternCmd is a purely interpretive command for setting the pattern attribute of selected components.

## PUBLIC OPERATIONS

- **PatternCmd(ControlInfo\*, PSPattern\* = nil)**

  - **PatternCmd(Editor\* = nil, PSPattern\* = nil)**

  Create a PatternCmd, optionally specifying the PSPattern that components should adopt.

- **virtual void Execute()**

  PatternCmd extends Execute to set the value of the affected editor's PatternVar instance, if it defines one.

- **PSPattern\* GetPattern()**

  Return the PSPattern supplied in the constructor.

## SEE ALSO

Command(3U), pspaint(3U), statevars(3U)
