win_magnification._objects
Aug 11, 2023
WinMagnificationAPI
allowed- class MatrixWrapper(datasource: Optional[DataSource[LM]] = None)[source]
Bases:
Matrix
,WrappedField
[LM
],Generic
[LM
]Observable matrix wrapper
- class Vector2(datasource: Optional[DataSource[Tuple[float, float]]] = None)[source]
Bases:
WrappedField
[Tuple
[float
,float
]]Pair of horizontal and vertical components
- class TransformScale(datasource: Optional[DataSource[Tuple[float, float]]] = None)[source]
Bases:
Vector2
Magnifier window scale (horizontal, vertical)
- class TransformOffset(datasource: Optional[DataSource[Tuple[float, float]]] = None)[source]
Bases:
Vector2
Magnifier window target offset (x , y ) from upper-left corner of magnifier screen
- class FullscreenOffsetWrapper(datasource: Optional[DataSource[Tuple[int, int]]] = None)[source]
Bases:
WrappedField
[Tuple
[int
,int
]]Fullscreen magnification target offsetRelative to the upper-left corner of the primary monitor
- class RectangleWrapper(datasource: Optional[_utils.DataSource[types.Rectangle]] = None)[source]
Bases:
WrappedField
[types.Rectangle
]Pair of two points (start , end )
- class SourceRectangleWrapper(datasource: Optional[_utils.DataSource[types.Rectangle]] = None)[source]
Bases:
RectangleWrapper
Source area, to get origin pixels from
- class ColorMatrixWrapper(datasource: Optional[DataSource[LM]] = None)[source]
Bases:
MatrixWrapper
[types.ColorMatrix
]Use to apply color transformations
Default value
available for this field.Also all values of this field can bereset()
at once- property transition_power: float
- Applies color effect transitionUse
make_transition()
orfrom_transition()
to setup and apply transition from start to end with scale of value then you can change value with this method:value = 0 |=> startvalue = 1 |=> end0 <= value <= 1 |=> start moved towards endvalue > 1 |=> start moved towards end out of end boundvalue < 0 |=> end moved towards start out of start bound
- property transition: Optional[tools.Transition]
- Current
Transition
or None if not set yet
- make_transition(end: tools.Matrix.Any, start: Optional[tools.Matrix.Any] = None, initial_power: Optional[Union[float, int]] = None)[source]
- Setup and apply transition from start to end with scale of initial_power:initial_power = 0 |=> startinitial_power = 1 |=> end0 <= initial_power <= 1 |=> start moved towards endinitial_power > 1 |=> start moved towards end out of end boundinitial_power < 0 |=> end moved towards start out of start bound
- Parameters
start – Initial state (default: current color effect)
end – Final state
initial_power – Float scale of transition normally stays between 0 and 1 to get transition effect (default: last value used or 0)
- Raises
TypeError – If params conversion fails
- from_transition(transition: tools.Transition, initial_power: Optional[Union[float, int]] = None)[source]
Setup and apply transition from existing one
- Parameters
transition – one of
effects
or copy oflast used one
initial_power – Float start scale of transition normally stays between 0 and 1 to get transition effect (default: last value used or 0)
- class FiltersListWrapper(datasource: Optional[DataSource[T]] = None)[source]
Bases:
WrappedField
[tuple
]Window filtration list
Default value
available for this field.Also all values of this field can bereset()
at once
- class FullscreenTransformWrapper(datasource: Optional[_utils.DataSource[types.FullscreenTransform]] = None)[source]
Bases:
WrappedField
[types.FullscreenTransform
]Scale/offset fullscreen magnifier transformations
- offset: FullscreenOffsetWrapper
- class InputTransformWrapper(datasource: Optional[_utils.DataSource[types.InputTransform]] = None)[source]
Bases:
WrappedField
[types.InputTransform
]Input transformation for pen and touch input
- source: RectangleWrapper
- destination: RectangleWrapper
- class TransformationMatrixWrapper(datasource: Optional[_utils.DataSource[types.TransformationMatrix]] = None)[source]
Bases:
WrappedField
[types.TransformationMatrix
]Scale/offset magnifier transformations
- scale: TransformScale
- offset: TransformOffset
- property pair: types.SimpleTransform
- class FullscreenController[source]
Bases:
object
Gives access to fullscreen functions of Magnification API
- property transform: win_magnification._objects.FullscreenTransformWrapper
- property color_effect: win_magnification._objects.ColorMatrixWrapper
- property input_transform: win_magnification._objects.InputTransformWrapper
- class CustomWindowController[source]
Bases:
object
Gives access to window (custom magnifier controller) functions of Magnification API
- property transform: win_magnification._objects.TransformationMatrixWrapper
- property color_effect: win_magnification._objects.ColorMatrixWrapper
- property source: win_magnification._objects.SourceRectangleWrapper
- property filters: win_magnification._objects.FiltersListWrapper
- class WinMagnificationAPI[source]
Bases:
object
Object-Oriented wrapper
for Magnification APIAlso managesinitialize()
andfinalize()
calls- property fullscreen: win_magnification._objects.FullscreenController
- property window: win_magnification._objects.CustomWindowController