Skip to content

tWebDrawingEventData

See Also: tWebDrawingResizetData, tWebPoint, tWebSize, Declaring Variables, Struct, Float, Integer, String

Purpose

tWebDrawingEventData is a structured type that is used to represent information about an event in the cWebDrawing class.

Type Declaration

Struct tWebDrawingEventData
    Integer eMouseButtons
    tWebPoint tMousePosition
    tWebPoint tPosition
    Float fRotation
    tWebSize tScaling
    String sStrokeColor
    Float fStrokeWidth
    Integer iStrokeCap
    Integer iStrokeJoin
    Float fDashOffset
    String sFillColor
    String sShadowColor
    Float fShadowBlur
    tWebPoint tShadowOffset
    String sTextContent
    String sFontFamily
    Float fFontSize
    Integer eJustification
    String sFontWeight
End_Struct

Struct Members

  • eMouseButtons: The mouse buttons being clicked.
  • tMousePosition: The mouse position.
  • tPosition: The item position.
  • fRotation: The item rotation.
  • tScaling: The item scaling.
  • sStrokeColor: The stroke color.
  • fStrokeWidth: The stroke width.
  • iStrokeCap: The stroke cap type.
  • iStrokeJoin: The stroke join type.
  • fDashOffset: The dash offset.
  • sFillColor: The shape fill color.
  • sShadowColor: The shadow color.
  • fShadowBlur: The shadow blur.
  • tShadowOffset: The shadow offset.
  • sTextContent: The text content.
  • sFontFamily: The font family.
  • fFontSize: The font size.
  • eJustification: The text justification.
  • sFontWeight: The font weight.

Syntax

Use cWebDrawing.pkg

tWebDrawingEventData {variableName}

Declaring Variables

To declare tWebDrawingEventData variables, use the name of the type (tWebDrawingEventData) followed by the variable name.

tWebDrawingEventData MyEvent

See struct variables for more details on instantiating struct types.