Aperture.Camera¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Aperture.Camera(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- do_flash_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to execute upon completion
Activates the flash associated with this camera. When this is done, callback will be called.
The flash will be turned off automatically, usually after a few hundred milliseconds (depending on the model of the flash device). The callback is called while the flash is still on.
New in version 0.1.
- do_flash_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
provided to callback- Raises:
- Returns:
- Return type:
Gets the result of an operation started by
Aperture.Camera.do_flash_async
(). You should call this in your callback if you want to know whether the operation succeeded; if you don’t care, there is no need to call this function.New in version 0.1.
- set_torch(state)¶
-
Turns the torch associated with this camera on or off.
Typically, flash bulbs have two modes: flash and torch. Flash is brighter, but only lasts for a few hundred milliseconds. Torch is not as bright but can be left on indefinitely.
New in version 0.1.