MCPcopy Create free account
hub / github.com/PistonDevelopers/conrod / socket_rectangle

Function socket_rectangle

conrod_core/src/widget/graph/node.rs:294–317  ·  view source on GitHub ↗

Produce the `Rect` for a socket from the raw params required.

(
    index: usize,
    n_sockets: usize,
    node_rect: Rect,
    border: Scalar,
    layout: SocketLayout,
    socket_length: Scalar,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

socket_rectFunction · 0.85
nextMethod · 0.85

Calls 5

side_axis_and_scalarFunction · 0.85
socket_step_and_startFunction · 0.85
socket_positionFunction · 0.85
socket_rect_dimFunction · 0.85
padMethod · 0.45

Tested by

no test coverage detected