Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Member Functions
Silverstone.Manticore.Toolkit.StripBar Class Reference

Summary description for StripBar. More...

Collaboration diagram for Silverstone.Manticore.Toolkit.StripBar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StripBar ()
void AddBand (StripBand aBand)
void RemoveBand (StripBand aStripBand)

Public Attributes

ArrayList Rows = new ArrayList()
ArrayList Bands = new ArrayList()

Protected Member Functions

override void OnPaint (PaintEventArgs aPea)

Detailed Description

Summary description for StripBar.

Definition at line 53 of file StripBar.cs.


Constructor & Destructor Documentation

Definition at line 55 of file StripBar.cs.

              {
              }

Member Function Documentation

Definition at line 64 of file StripBar.cs.

    {
      Bands.Add(aBand);
      aBand.Bar = this;

      if (aBand.NewRow) 
      {
        StripRow row = new StripRow(this);
        Rows.Add(row);
        aBand.Row = row;

        row.Bands.Add(aBand);

        // TODO: Trigger Height-Changed Event
      }
      else 
      {
        StripRow row;
        if (Rows.Count >= 1) 
          row = Rows[Rows.Count-1] as StripRow;
        else 
        {
          row = new StripRow(this);
          Rows.Add(row);
        }
        row.Bands.Add(aBand);
        aBand.Row = row;

        // Invalidate Row
        Invalidate(row.Bounds);
      }
    }
override void Silverstone.Manticore.Toolkit.StripBar.OnPaint ( PaintEventArgs  aPea) [inline, protected]

Definition at line 104 of file StripBar.cs.

    {
      int rowCount = Rows.Count;
      for (int i = 0; i < rowCount; ++i) 
      {
        StripRow currRow = Rows[i] as StripRow;
        if (currRow.Bounds.IntersectsWith(aPea.ClipRectangle)) 
          currRow.PaintRow(aPea);

      }
    }

Here is the call graph for this function:

Definition at line 97 of file StripBar.cs.

    {

    }

Member Data Documentation

ArrayList Silverstone.Manticore.Toolkit.StripBar.Bands = new ArrayList()

Definition at line 60 of file StripBar.cs.

ArrayList Silverstone.Manticore.Toolkit.StripBar.Rows = new ArrayList()

Definition at line 59 of file StripBar.cs.


The documentation for this class was generated from the following file: