(self, c_handle: Optional[MaaImageListBufferHandle] = None)
| 412 | _own: bool |
| 413 | |
| 414 | def __init__(self, c_handle: Optional[MaaImageListBufferHandle] = None): |
| 415 | self._set_api_properties() |
| 416 | |
| 417 | if c_handle: |
| 418 | self._handle = c_handle |
| 419 | self._own = False |
| 420 | else: |
| 421 | self._handle = Library.framework().MaaImageListBufferCreate() |
| 422 | self._own = True |
| 423 | |
| 424 | if not self._handle: |
| 425 | raise RuntimeError("Failed to create image list buffer.") |
| 426 | |
| 427 | def __del__(self): |
| 428 | if self._handle and self._own: |
nothing calls this directly
no test coverage detected