Table Of Contents

Previous topic

DotGrid

Next topic

Ellipse

This Page

phoenix_title DrawObject

This is the base class for all the objects that can be drawn.

One must subclass from this (and an assortment of Mixins) to create a new DrawObject.

ote This class contain a series of static dictionaries:

  • BrushList
  • PenList
  • FillStyleList
  • LineStyleList

Is this still necessary?


class_hierarchy Inheritance Diagram

Inheritance diagram for class DrawObject

Inheritance diagram of DrawObject


method_summary Methods Summary

__init__ ! param InForeground (bool)
Bind  
Hide ! rief Make an object hidden.
PutInBackground  
PutInForeground  
SetBrush  
SetColor  
SetFillColor  
SetFillStyle  
SetHitBrush  
SetHitPen  
SetLineColor  
SetLineStyle  
SetLineWidth  
SetPen  
Show ! rief Make an object visible on the canvas.
UnBindAll  

api Class API



class DrawObject

This is the base class for all the objects that can be drawn.

One must subclass from this (and an assortment of Mixins) to create a new DrawObject.

ote This class contain a series of static dictionaries:

  • BrushList
  • PenList
  • FillStyleList
  • LineStyleList

Is this still necessary?


Methods



__init__(self, InForeground = False, IsVisible = True)

! param InForeground (bool) param IsVisible (Bool)



Bind(self, Event, CallBackFun)


Hide(self)

! rief Make an object hidden.



PutInBackground(self)


PutInForeground(self)


SetBrush(self, FillColor, FillStyle)


SetColor(self, Color)


SetFillColor(self, FillColor)


SetFillStyle(self, FillStyle)


SetHitBrush(self, HitColor)


SetHitPen(self, HitColor, LineWidth)


SetLineColor(self, LineColor)


SetLineStyle(self, LineStyle)


SetLineWidth(self, LineWidth)


SetPen(self, LineColor, LineStyle, LineWidth)


Show(self)

! rief Make an object visible on the canvas.



UnBindAll(self)