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.
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.
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.
// 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);