MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / marker_flags

Function marker_flags

src/point.rs:24–26  ·  view source on GitHub ↗
(size_mode: u32, pickable: bool)

Source from the content-addressed store, hash-verified

22pub(crate) const MARKER_PICKABLE_BIT: u32 = 0b10;
23
24pub(crate) fn marker_flags(size_mode: u32, pickable: bool) -> u32 {
25 (size_mode & MARKER_SIZE_MODE_MASK) | if pickable { MARKER_PICKABLE_BIT } else { 0 }
26}
27
28#[repr(C)]
29#[derive(Copy, Clone, Debug)]

Callers 2

rebuild_markersMethod · 0.85
rebuild_highlightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected