canvas bPath

Name

canvas bPath -- A canvas bezier curve item. (in gnoclCanvas)

Synopsis

canvasId create bPath [-option value...]

Options

-capStyle

type: ONEOF notLast, but, round, projecting

Defines the cap style.

-coords

type: list-of-floats

List of x and y coordiantes, must a be a multiple of 6 plus two elements (8, 14, 20 ...).

-fill

type: COLOR (default: black)

Color of the curve.

-joinStyle

type: ONEOF miter, round, bevel

Defines the join style.

-onButtonPress

type: string (default: "")

Tcl command which is executed if a mouse button is press inside the item. Before evaluation the following percent strings are substituated: TABLE %% | % %w | canvas name %i | item id %t | type of event: one of buttonPress, button2Press or button3Press %x | x coordinate %y | y coordinate %b | button number %s | state of the buttons and modifiers (bitmask) TABLE

-onButtonRelease

type: string (default: "")

Tcl command which is executed if a mouse button is released if it has been pressed inside the item. Before evaluation the following percent strings are substituated: TABLE %% | % %w | canvas name %i | item id %t | type of event: always buttonRelease %x | x coordinate %y | y coordinate %b | button number %s | state of the buttons and modifiers (bitmask) TABLE

-onEnter

type: string (default: "")

Tcl command which is executed if a mouse enters the item. Before evaluation the following percent strings are substituated: TABLE %% | % %w | canvas name %i | item id %x | x coordinate %y | y coordinate %s | state of the buttons and modifiers (bitmask) TABLE

-onLeave

type: string (default: "")

Tcl command which is executed if a mouse enters the item. Before evaluation the following percent strings are substituated: TABLE %% | % %w | canvas name %i | item id %x | x coordinate %y | y coordinate %s | state of the buttons and modifiers (bitmask) TABLE

-onMotion

type: string (default: "")

Tcl command which is executed if the mouse is moved inside the item. Before evaluation the following percent strings are substituated: TABLE %% | % %w | canvas name %i | item id %x | x coordinate %y | y coordinate %s | state of the buttons and modifiers (bitmask) TABLE

-outline

type: COLOR (default: black)

Outline color of the curve.

-pixelWidth

type: integer

Width of the line, does not change, if the line is scaled.

-tags

type: list (default: "")

List of tags to be associated with this item. A tag must not start with a digit and must not contain any of "|", "&", "!", "~", "(" and ")".

-width

type: float

Width of the line, changes, if the line is scaled.

Description

A bezier curve has a start and an end point an two points inbetween which determines its shape.

See also

canvas line, GnomeCanvasBPath