pub struct SetSelectionOwnerRequest {
pub owner: Window,
pub selection: Atom,
pub time: Timestamp,
}
Expand description
Sets the owner of a selection.
Makes window
the owner of the selection selection
and updates the
last-change time of the specified selection.
TODO: briefly explain what a selection is.
§Fields
-
selection
- The selection. -
owner
- The new owner of the selection.The special value
XCB_NONE
means that the selection will have no owner. -
time
- Timestamp to avoid race conditions when running X over the network.The selection will not be changed if
time
is earlier than the current last-change time of theselection
or is later than the current X server time. Otherwise, the last-change time is set to the specified time.The special value
XCB_CURRENT_TIME
will be replaced with the current server time.
§Errors
Atom
-selection
does not refer to a valid atom.
§See
SetSelectionOwner
: request
Fields§
§owner: Window
§selection: Atom
§time: Timestamp
Implementations§
Source§impl SetSelectionOwnerRequest
impl SetSelectionOwnerRequest
Sourcepub fn serialize(self) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self) -> BufWithFds<[Cow<'static, [u8]>; 1]>
Serialize this request into bytes for the provided connection
Sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8],
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8], ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
Source§impl Clone for SetSelectionOwnerRequest
impl Clone for SetSelectionOwnerRequest
Source§fn clone(&self) -> SetSelectionOwnerRequest
fn clone(&self) -> SetSelectionOwnerRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more