Plank.Items.DockItem.get_foreground_surface – plank – Vala Binding Reference

Plank.Items.DockItem.get_foreground_surface – plank Reference Manual

# get_foreground_surface

## Description:

public DockSurface? get_foreground_surface (int width, int height, DockSurface model, DrawDataFunc<DockItem>? draw_data_func)

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_data_func | function which creates/changes the foreground surface

## Returns:

the background surface of this item which may not be changed