Skip to main content

GaugeCirclePointer

A filled circle placed at anchor_radius from the center of the gauge, with an optional outline.

With the default anchor_radius of 0, it sits at the center of the gauge, where it can be used as a cap over the pivot of a GaugeNeedlePointer listed before it.

Inherits: GaugePointer

Properties

  • anchor_radius - The distance from the center of the gauge to the center of the circle, in logical pixels.
  • color - The fill color of the circle.
  • radius - The radius of the circle, in logical pixels.
  • stroke_color - The color of the outline drawn around the circle.
  • stroke_width - The width of the outline drawn around the circle.

Properties​

anchor_radiusclass-attributeinstance-attribute​

anchor_radius: Number = 0.0

The distance from the center of the gauge to the center of the circle, in logical pixels.

Raises:

  • ValueError - If it is not greater than or equal to 0.

colorclass-attributeinstance-attribute​

color: ColorValue | None = None

The fill color of the circle.

Defaults to ColorScheme.on_surface.

radiusclass-attributeinstance-attribute​

radius: Number = 6.0

The radius of the circle, in logical pixels.

Raises:

  • ValueError - If it is not strictly greater than 0.

stroke_colorclass-attributeinstance-attribute​

stroke_color: ColorValue | None = None

The color of the outline drawn around the circle.

Defaults to ColorScheme.on_surface.

stroke_widthclass-attributeinstance-attribute​

stroke_width: Number = 0.0

The width of the outline drawn around the circle.

If 0, no outline is drawn.

Raises:

  • ValueError - If it is not greater than or equal to 0.