pub struct MessagePosition {
pub x: i32,
pub y: i32,
}
Expand description
Position of the message in global coordinates (same scope of coordinates as windows). Although this can handle negative coordinates, the example is careful to use only positive coordinates.
Fields§
§x: i32
X position.
y: i32
Y position.
Implementations§
source§impl MessagePosition
impl MessagePosition
sourcepub fn new(x: i32, y: i32) -> MessagePosition
pub fn new(x: i32, y: i32) -> MessagePosition
Constructor
Parameters
-
x
X position to use.
-
y
Y position to use.
Returns
Returns a new instance of the MessagePosition struct.