void DrawIcon( Rect rect )

robot_2Generated
code_blocksInput

Description

The DrawIcon method is a member of the Editor.DirectoryEntry class. It is responsible for rendering an icon within a specified rectangular area on the user interface. This method is particularly useful for displaying directory or file icons in a graphical editor environment.

Usage

To use the DrawIcon method, you need to have an instance of the Editor.DirectoryEntry class. You will also need to provide a Sandbox.Rect object that defines the area where the icon should be drawn.

Example usage:

Editor.DirectoryEntry entry = new Editor.DirectoryEntry();
Sandbox.Rect iconRect = new Sandbox.Rect(10, 10, 32, 32);
entry.DrawIcon(iconRect);

Ensure that the Sandbox.Rect object accurately represents the desired position and size for the icon to be rendered correctly.

Example

Editor.DirectoryEntry entry = new Editor.DirectoryEntry();
Sandbox.Rect iconRect = new Sandbox.Rect(10, 10, 32, 32);
entry.DrawIcon(iconRect);