Debian Codegraph @

src/Gui/Selection/SelectionObject.pyi

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 from Base.Metadata import export
4 from Base.BaseClass import BaseClass
5 from typing import Any, Final, Tuple
6
7 @export(
8 Include="Gui/Selection/SelectionObject.h",
9 Delete=True,
10 )
11 class SelectionObject(BaseClass):
12 """
13 This class represents selections made by the user. It holds information about the object, document and sub-element of the selection.
14
15 Author: Juergen Riegel ([email protected])
16 Licence: LGPL
17 """
18
19 def remove(self) -> None:
20 """
21 Remove this selection item from the selection.
22 remove() -> None
23 --
24 This object becomes invalid.
25 """
26 ...
27
28 def isObjectTypeOf(self, type: Any) -> bool:
29 """
30 Test for a certain father class.
31 isObjectTypeOf(type) -> Bool
32 """
33 ...
34 ObjectName: Final[str] = ""
35 """Name of the selected object"""
36
37 SubElementNames: Final[Tuple[str, ...]] = ()
38 """Name of the selected sub-element if any"""
39
40 FullName: Final[str] = ""
41 """Name of the selected object"""
42
43 TypeName: Final[str] = ""
44 """Type name of the selected object"""
45
46 DocumentName: Final[str] = ""
47 """Name of the document of the selected object"""
48
49 Document: Final[Any] = ...
50 """Document of the selected object"""
51
52 Object: Final[Any] = ...
53 """Selected object"""
54
55 SubObjects: Final[Tuple[Any, ...]] = ()
56 """Selected sub-element, if any"""
57
58 PickedPoints: Final[Tuple[Any, ...]] = ()
59 """Picked points for selection"""
60
61 HasSubObjects: Final[bool] = False
62 """Selected sub-element, if any"""