Color GetForegroundColor()

robot_2Generated
code_blocksInput

Description

Retrieves the foreground color of the VirtualWidget. This color is typically used for text or other elements that appear on top of the widget's background.

Usage

Call this method when you need to obtain the current foreground color of a VirtualWidget instance. This can be useful for rendering text or icons that need to contrast with the widget's background.

Example

// Assuming 'widget' is an instance of Editor.VirtualWidget
Color foregroundColor = widget.GetForegroundColor();

// Use the foreground color for rendering text or icons
DrawText("Sample Text", position, foregroundColor);