Canvas Toolkit
← Class index

CFrame

Widgets · extends CWidget

Implements the frame widget.

import { CFrame } from "canvas-toolkit-lib";

Declared members

constructor(parent?: CWidget | null);

Creates a new instance.

frameShape(): CFrameShape;

Provides frame shape behavior.

setFrameShape(shape: CFrameShape): void;

Sets the frame shape.

frameShadow(): CFrameShadow;

Provides frame shadow behavior.

setFrameShadow(shadow: CFrameShadow): void;

Sets the frame shadow.

lineWidth(): number;

Provides line width behavior.

setLineWidth(width: number): void;

Sets the line width.

midLineWidth(): number;

Provides mid line width behavior.

setMidLineWidth(width: number): void;

Sets the mid line width.

frameWidth(): number;

Provides frame width behavior.

frameRect(): CRect;

Provides frame rect behavior.

contentsRect(): CRect;

Returns the widget's contents rectangle.

protected paintEvent(painter: CPainter): void;

Handles the paint event.

protected frameChanged(): void;

Handles frame changed behavior.