PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/Source Code/ExperimentalProjection/GDI/GdiProjectlet.vb

#
Visual Basic | 34 lines | 24 code | 10 blank | 0 comment | 0 complexity | fb1225eb547c4722761e117bcdb0cccf MD5 | raw file
  1. Friend NotInheritable Class GdiProjectlet
  2. Inherits BaseProjectlet
  3. Friend Property Area As RectangleF = Nothing
  4. Friend Property Bitmap As Bitmap = Nothing
  5. Friend Property Opacity As Integer = 255
  6. Friend Property VisibleWhenNotFading As Boolean = True
  7. Private _Animations As New List(Of GdiProjectletAnimation)
  8. Friend Sub AddAnimation(ByVal animation As GdiProjectletAnimation)
  9. _Animations.Add(animation)
  10. End Sub
  11. Friend Function PeekNextAnimation() As GdiProjectletAnimation
  12. If _Animations.Count = 0 Then Return Nothing
  13. Return _Animations(0)
  14. End Function
  15. Friend Sub RemoveNextAnimation()
  16. If _Animations.Count > 0 Then _Animations.RemoveAt(0)
  17. End Sub
  18. Friend Sub ClearAnimations()
  19. _Animations.Clear()
  20. End Sub
  21. Friend Sub New(ByVal name As String, Optional ByVal detailsUsedToCreateProjectlet As ProjectletDetails = Nothing)
  22. MyBase.New(name, detailsUsedToCreateProjectlet)
  23. End Sub
  24. End Class