C# Class SIL.FieldWorks.SharpViews.LayoutCallbacks

This class handles some callbacks which a view may need to make during layout and similar operations, including expanding a lazy box. It stands as a proxy for the root site, and forwards all the messages to it when disposed. During its lifetime, the root box cannot be painted; an attempt to do so will add to the rectangles to be invalidated when the LCB is disposed.
Inheritance: IDisposable
显示文件 Open project: sillsdev/FieldWorks Class Usage Examples

Public Properties

Property Type Description
RectsInvalidated List
RectsInvalidatedInRoot List

Public Methods

Method Description
Dispose ( ) : void
Invalidate ( Rectangle rect ) : void

On Dispose, call invalidate on the root's site.

InvalidateInRoot ( Rectangle rect ) : void

On Dispose, call invalidateInRoot on the root's site.

LayoutCallbacks ( RootBox root ) : System

Private Methods

Method Description
RaiseLazyExpanded ( int top, int bottom, int delta ) : void

On Dispose, raise the SizeChanged event on the root box.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Invalidate() public method

On Dispose, call invalidate on the root's site.
public Invalidate ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

InvalidateInRoot() public method

On Dispose, call invalidateInRoot on the root's site.
public InvalidateInRoot ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

LayoutCallbacks() public method

public LayoutCallbacks ( RootBox root ) : System
root RootBox
return System

Property Details

RectsInvalidated public_oe property

public List RectsInvalidated
return List

RectsInvalidatedInRoot public_oe property

public List RectsInvalidatedInRoot
return List