get_foreground_surface


Description:

public weak DockSurface? get_foreground_surface (DrawItemFunc? draw_func = null)

Returns the foreground surface for this item.

The draw_func may pass through the given previously computed surface or change it as needed. This surface will be buffered internally.

Passing null as draw_func will destroy the internal foreground buffer.

Parameters:

draw_func

function which creates/changes the foreground surface

Returns:

the background surface of this item which may not be changed