Knob Pointer Style

Overview

Available Settings

Full XML List:

XML Syntax
Plain code
01 <knob_pointer_style name="" parent="" color="" hatch_type="">
02   <knob_background radius="" gear_height="" />
03   <cap enabled="" radius="">
04     <inner_stroke />
05     <outer_stroke />
06     <background />
07     <effects />
08   </cap>
09   <needle radius="" base_radius="" thickness="" point_thickness="" point_radius="">
10     <fill />
11     <hatch_fill />
12     <border />
13     <effects />
14   </needle>
15   <marker shape="" width="" height="" align="" padding="">
16     <fill />
17     <hatch_fill />
18     <border />
19     <effects />
20   </marker>
21   <states>
22     <normal />
23     <hover />
24     <pushed />
25     <selected_normal />
26     <selected_hover />
27   </states>
28 </knob_pointer_style>

Description

Knob pointer is like a needle pointer but it has a cap of larger radius that imitates a gear and may use a custom marker as a needle. With the help of knob pointer you can imitate a massive gear or a volume control. The attributes of the knob_pointer_style itself are simple. color and hatch_color define its visual look, name is a unique name of each pointer and parent points on element you want to inherit properties from.

Knob_pointer_style has a number of subnodes. Knob_backgroundis responsible for the effect of the gear itself. Radius is its size and gear_height defines a size of a single jag. Cap is a round gizmo that is drawn in the center of your circular gauge. Inside it has only two attributes:enabled and radius.

Cap may have effects and its visual appearance are set by background subnode and subnodes describing 2 borders: inner_stroke and outer_stroke.

Needle. Radius is a total length of a pointer. Point_radius is length of the pointer's ending and base_radius - length of pointer's base part. Sometimes it is useful to set a negative value for base_radius to make your pointer be displayed on both sides of your pointer basement. And, finally, thickness and point_thickness are responsible for thickness of the pointer at its base and at its end respectively.

Marker has a number of attributes defining its shape and position (shape, width, height, align, padding) and subnodes defining visual appearance (fill, hatch_fill, border, effects).

to top

States Supported

This style supports the following states: normal, hover, pushed, selected_normal, selected_hover.

to top