Esempio n. 1
0
    def Update(self, x, y):

        self.x = x
        self.y = y

        if True == self.isAttached():
            if 0 != self.AttachedIconHandle:
                grpImage.SetDiffuseColor(self.AttachedIconHandle, 1.0, 1.0,
                                         1.0, 0.5)
                grpImage.SetPosition(self.AttachedIconHandle,
                                     self.x - self.AttachedIconHalfWidth,
                                     self.y - self.AttachedIconHalfHeight)
                self.countNumberLine.SetPosition(
                    self.x, self.y - self.AttachedIconHalfHeight - 3)

        if self.IsSoftwareCursor:
            if 0 != self.curCursorImage:
                self.curCursorImage.SetPosition(self.x + self.cursorPosX,
                                                self.y + self.cursorPosY)
Esempio n. 2
0
 def SetPosition(self, x, y):
     if self.handle:
         grpImage.SetPosition(self.handle, x, y)