Class MoveWindowEdgesInDirectionTransform
- Namespace
- Whim
- Assembly
- Whim.dll
Moves the given
WindowHandle
by the given PixelsDeltas
.public record MoveWindowEdgesInDirectionTransform : Transform, IEquatable<Transform<Unit>>, IEquatable<Transform>, IEquatable<MoveWindowEdgesInDirectionTransform>
- Inheritance
-
MoveWindowEdgesInDirectionTransform
- Implements
- Inherited Members
Constructors
MoveWindowEdgesInDirectionTransform(Direction, IPoint<int>, HWND)
Moves the given
WindowHandle
by the given PixelsDeltas
.public MoveWindowEdgesInDirectionTransform(Direction Edges, IPoint<int> PixelsDeltas, HWND WindowHandle = default)
Parameters
Edges
Direction- The edges to change.
PixelsDeltas
IPoint<int>- The deltas (in pixels) to change the given
Edges
by. When a value is positive, then the edge will move in the direction of theEdges
. ThePixelsDeltas
are in the coordinate space of the monitors, not the unit square. WindowHandle
HWND- The handle of the window to move. If not provided, the last focused window will be used.
Properties
Edges
The edges to change.
public Direction Edges { get; init; }
Property Value
PixelsDeltas
The deltas (in pixels) to change the given
Edges
by. When a value is
positive, then the edge will move in the direction of the Edges
.
The PixelsDeltas
are in the coordinate space of the monitors, not the
unit square.public IPoint<int> PixelsDeltas { get; init; }
Property Value
WindowHandle
The handle of the window to move. If not provided, the last focused window will be used.
public HWND WindowHandle { get; init; }