XPLMMapLabelDrawingCallback_f

Type Alias XPLMMapLabelDrawingCallback_f 

Source
pub type XPLMMapLabelDrawingCallback_f = Option<unsafe extern "C" fn(inLayer: XPLMMapLayerID, inMapBoundsLeftTopRightBottom: *const f32, zoomRatio: f32, mapUnitsPerUserInterfaceUnit: f32, mapStyle: XPLMMapStyle, projection: XPLMMapProjectionID, inRefcon: *mut c_void)>;
Expand description

XPLMMapLabelDrawingCallback_f

This is the label drawing callback that enables plugin-created map layers to draw text labels using X-Plane’s built-in labeling functionality. You can request an arbitrary number of text labels to be drawn via XPLMDrawMapLabel() from within this callback, but you may not perform any OpenGL drawing here.

Labels enqueued by this function will appear above all OpenGL drawing (performed by your optional XPLMMapDrawingCallback_f), and above all built-in map icons and labels of the same layer type (“fill” or “markings,” as determined by the XPLMMapLayerType in your XPLMCreateMapLayer_t). Note, however, that the relative ordering between the drawing callbacks of different plugins is not guaranteed.

Aliased Type§

pub enum XPLMMapLabelDrawingCallback_f {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *const f32, f32, f32, i32, *mut c_void, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *const f32, f32, f32, i32, *mut c_void, *mut c_void))

Some value of type T.