phoenix_title wx.lib.ogl.basic.ControlPoint

The wx.ControlPoint class.


class_hierarchy Class Hierarchy

Inheritance diagram for class ControlPoint:

method_summary Methods Summary

__init__

Default class constructor

GetAttachmentPosition

Get the attachment position.

GetNumberOfAttachments

Get the number of attachments.

OnBeginDragLeft

The begin drag left handler.

OnDragLeft

The drag left handler.

OnDraw

The draw handler.

OnDrawContents

not implemented???

OnEndDragLeft

The end drag left handler.

OnErase

The erase handler.

SetEraseObject

Set the erase object ???


api Class API

class ControlPoint(RectangleShape)

The wx.ControlPoint class.


Methods

__init__(self, theCanvas, object, size, the_xoffset, the_yoffset, the_type)

Default class constructor

Parameters
  • theCanvas – a Canvas

  • object – the shape, instance of Shape

  • size (float) – the size

  • the_xoffset (float) – the x position

  • the_yoffset (float) – the y position

  • the_type (int) – one of the following types ???

    Control point type

    Description

    CONTROL_POINT_VERTICAL

    Vertical

    CONTROL_POINT_HORIZONTAL

    Horizontal

    CONTROL_POINT_DIAGONAL

    Diagonal



GetAttachmentPosition(self, attachment, nth = 0, no_arcs = 1, line = None)

Get the attachment position.

Parameters
  • attachment – the attachment ???

  • nth – get nth attachment ???

  • no_arcs – ???

  • line – ???



GetNumberOfAttachments(self)

Get the number of attachments.



OnBeginDragLeft(self, x, y, keys = 0, attachment = 0)

The begin drag left handler.



OnDragLeft(self, draw, x, y, keys = 0, attachment = 0)

The drag left handler.



OnDraw(self, dc)

The draw handler.



OnDrawContents(self, dc)

not implemented???



OnEndDragLeft(self, x, y, keys = 0, attachment = 0)

The end drag left handler.



OnErase(self, dc)

The erase handler.



SetEraseObject(self, er)

Set the erase object ???

Parameters

er – the object