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

# BrushCmd(3)

command for setting components' brush attribute

## NAME

BrushCmd - command for setting components' brush attribute

## SYNOPSIS

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

## DESCRIPTION

BrushCmd is a purely interpretive command for setting the brush attribute of selected components.

## PUBLIC OPERATIONS

- **BrushCmd(ControlInfo\*, PSBrush\* = nil)**

  - **BrushCmd(Editor\* = nil, PSBrush\* = nil)**

  Create a BrushCmd, optionally specifying the PSBrush that components should adopt.

- **virtual void Execute()**

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

- **PSBrush\* GetBrush()**

  Return the PSBrush supplied in the constructor.

## SEE ALSO

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