|
11.
|
|
|
A Drag can be moved around inside is parent. Generally, its parent should be either a :func:`Fixed` or :class:`DragGroup`.
|
|
|
|
Um Drag pode ser movido dentro de seu pai. Geralmente, seu pai deve ser um: func: `Fixed` ou: class:` DragGroup`.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:9
|
|
12.
|
|
|
A Drag has one child. The child's state reflects the status of the drag and drop operation:
|
|
|
|
Um Drag tem um filho. O estado da criança reflete o status da operação de arrastar e soltar:
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:12
|
|
13.
|
|
|
``selected_hover`` - when it is being dragged.
|
|
|
|
`` selected_hover`` - quando está sendo arrastado.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:15
|
|
14.
|
|
|
``selected_idle`` - when it can be dropped on.
|
|
|
|
`` selected_idle`` - quando pode ser descartado.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:16
|
|
15.
|
|
|
``hover`` - when the draggable will be dragged when the mouse is clicked.
|
|
|
|
`` hover`` - quando o objeto arrastável será arrastado quando o mouse for clicado.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:17
|
|
16.
|
|
|
``idle`` - otherwise.
|
|
|
|
`` idle`` - caso contrário.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:19
|
|
17.
|
|
|
The drag handle is a rectangle inside the child. The mouse must be over a non-transparent pixel inside the drag handle for dragging or clicking to occur.
|
|
|
|
A alça de arrastar é um retângulo dentro da criança. O mouse deve estar sobre um pixel não transparente dentro da alça para arrastar ou clicar.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:21
|
|
18.
|
|
|
A newly-created draggable is added to the default DragGroup. A draggable can only be in a single DragGroup - if it's added to a second group, it's removed from the first.
|
|
|
|
Um draggable recém-criado é adicionado ao DragGroup padrão. Um arrastável só pode estar em um único DragGroup - se for adicionado a um segundo grupo, será removido do primeiro.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:25
|
|
19.
|
|
|
When a Drag is first rendered, if it's position cannot be determined from the DragGroup it is in, the position of its upper-left corner is computed using the standard layout algorithm. Once that position
|
|
|
|
Quando um Drag é renderizado pela primeira vez, se sua posição não pode ser determinada a partir do DragGroup em que está, a posição de seu canto superior esquerdo é calculada usando o algoritmo de layout padrão. Uma vez que a posição
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:29
|
|
20.
|
|
|
`d`
|
|
|
|
`d`
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/inc/drag_drop:36
|