C# Class ImageGlass.ImageListView.ImageListViewRenderers.NoirRenderer

A renderer with a dark theme. This renderer cannot be themed.
Inheritance: ImageListView.ImageListViewRenderer
Mostrar archivo Open project: d2phap/ImageGlass

Public Methods

Method Description
DrawBackground ( Graphics g, Rectangle bounds ) : void

Draws the background of the control.

DrawCheckBox ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, Rectangle bounds ) : void

Draws the checkbox icon for the specified item on the given graphics.

DrawColumnExtender ( Graphics g, Rectangle bounds ) : void

Draws the extender after the last column.

DrawColumnHeader ( Graphics g, ImageListView column, ColumnState state, Rectangle bounds ) : void

Draws the column headers.

DrawFileIcon ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, Rectangle bounds ) : void

Draws the file icon for the specified item on the given graphics.

DrawGalleryImage ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, Image image, Rectangle bounds ) : void

Draws the large preview image of the focused item in Gallery mode.

DrawGroupHeader ( Graphics g, string name, Rectangle bounds ) : void

Draws the group headers.

DrawInsertionCaret ( Graphics g, Rectangle bounds ) : void

Draws the insertion caret for drag and drop operations.

DrawItem ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, ItemState state, Rectangle bounds ) : void

Draws the specified item on the given graphics.

DrawPane ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, Image image, Rectangle bounds ) : void

Draws the left pane in Pane view mode.

DrawSelectionRectangle ( Graphics g, Rectangle selection ) : void

Draws the selection rectangle.

MeasureItem ( View view ) : Size

Returns item size for the given view mode.

NoirRenderer ( ) : System

Initializes a new instance of the NoirRenderer class.

NoirRenderer ( int reflectionSize ) : System

Initializes a new instance of the NoirRenderer class.

Private Methods

Method Description
DrawImageWithReflection ( Graphics g, Image img, Rectangle bounds, int reflection ) : void

Draws an image with a reflection effect at the bottom.

DrawImageWithReflection ( Graphics g, Image img, int x, int y, int width, int height, int reflection ) : void

Draws an image with a reflection effect at the bottom.

Method Details

DrawBackground() public method

Draws the background of the control.
public DrawBackground ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
bounds System.Drawing.Rectangle The client coordinates of the item area.
return void

DrawCheckBox() public method

Draws the checkbox icon for the specified item on the given graphics.
public DrawCheckBox ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
item ImageGlass.ImageListView.ImageListViewItem The ImageListViewItem to draw.
bounds System.Drawing.Rectangle The bounding rectangle of the checkbox in client coordinates.
return void

DrawColumnExtender() public method

Draws the extender after the last column.
public DrawColumnExtender ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
bounds System.Drawing.Rectangle The bounding rectangle of extender column in client coordinates.
return void

DrawColumnHeader() public method

Draws the column headers.
public DrawColumnHeader ( Graphics g, ImageListView column, ColumnState state, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
column ImageListView The ImageListViewColumnHeader to draw.
state ColumnState The current view state of column.
bounds System.Drawing.Rectangle The bounding rectangle of column in client coordinates.
return void

DrawFileIcon() public method

Draws the file icon for the specified item on the given graphics.
public DrawFileIcon ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
item ImageGlass.ImageListView.ImageListViewItem The ImageListViewItem to draw.
bounds System.Drawing.Rectangle The bounding rectangle of the file icon in client coordinates.
return void

DrawGalleryImage() public method

Draws the large preview image of the focused item in Gallery mode.
public DrawGalleryImage ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, Image image, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
item ImageGlass.ImageListView.ImageListViewItem The ImageListViewItem to draw.
image Image The image to draw.
bounds System.Drawing.Rectangle The bounding rectangle of the preview area.
return void

DrawGroupHeader() public method

Draws the group headers.
public DrawGroupHeader ( Graphics g, string name, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
name string The name of the group to draw.
bounds System.Drawing.Rectangle The bounding rectangle of group in client coordinates.
return void

DrawInsertionCaret() public method

Draws the insertion caret for drag and drop operations.
public DrawInsertionCaret ( Graphics g, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
bounds System.Drawing.Rectangle The bounding rectangle of the insertion caret.
return void

DrawItem() public method

Draws the specified item on the given graphics.
public DrawItem ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, ItemState state, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
item ImageGlass.ImageListView.ImageListViewItem The ImageListViewItem to draw.
state ItemState The current view state of item.
bounds System.Drawing.Rectangle The bounding rectangle of item in client coordinates.
return void

DrawPane() public method

Draws the left pane in Pane view mode.
public DrawPane ( Graphics g, ImageGlass.ImageListView.ImageListViewItem item, Image image, Rectangle bounds ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
item ImageGlass.ImageListView.ImageListViewItem The ImageListViewItem to draw.
image Image The image to draw.
bounds System.Drawing.Rectangle The bounding rectangle of the pane.
return void

DrawSelectionRectangle() public method

Draws the selection rectangle.
public DrawSelectionRectangle ( Graphics g, Rectangle selection ) : void
g System.Drawing.Graphics The System.Drawing.Graphics to draw on.
selection System.Drawing.Rectangle The client coordinates of the selection rectangle.
return void

MeasureItem() public method

Returns item size for the given view mode.
public MeasureItem ( View view ) : Size
view View The view mode for which the measurement should be made.
return System.Drawing.Size

NoirRenderer() public method

Initializes a new instance of the NoirRenderer class.
public NoirRenderer ( ) : System
return System

NoirRenderer() public method

Initializes a new instance of the NoirRenderer class.
public NoirRenderer ( int reflectionSize ) : System
reflectionSize int Size of image reflections.
return System