diff --git a/crates.js b/crates.js index 146c081e65..8405587b75 100644 --- a/crates.js +++ b/crates.js @@ -1 +1,2 @@ -window.ALL_CRATES = ["smithay_client_toolkit"]; \ No newline at end of file +window.ALL_CRATES = ["smithay_client_toolkit"]; +//{"start":21,"fragment_lengths":[24]} \ No newline at end of file diff --git a/help.html b/help.html index 8d107a29b6..0cc9485ba0 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -
wl_registry
.\nDelegates the handling of wl_shm
to some Shm
.\nRe-exports of some crates, for convenience.\nUtilities for binding globals with wl_registry
in …\nA helper macro for implementing ProvidesRegistryState
.\nShell abstractions\nHandler for xdg-activation\nState for xdg-activation\nMinimal implementation of RequestDataExt
.\nData type used for requesting activation tokens\nData attached to a token request\nActivate a surface with the provided token.\nApp_id of the application requesting the token, if …\nApp_id of the application requesting the token, if …\nBind the xdg-activation
global\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nA token was issued for a previous request with data
.\nRequest a token for surface activation.\nRequest a token for surface activation with user data.\nSeat and serial of the window requesting the token, if …\nSeat and serial of the window requesting the token, if …\nSurface of the window requesting the token, if applicable.\nSurface of the window requesting the token, if applicable.\nThe maximum API version for WlCompositor that this object …\nA trivial wrapper around a WlRegion
.\nAn owned WlSurface
.\nData associated with a WlSurface
.\nA frame callback has been completed.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCreate a new surface that initially reports the given …\nThe outputs the surface is currently inside.\nThe parent surface used for this surface.\nThe scale factor of the output with the highest scale …\nThe surface has either been moved into or out of an output …\nThe surface has entered an output.\nThe surface has left an output.\nThe suggest transform for the surface.\nThe surface has either been moved into or out of an output …\nIf the calloop
cargo feature is enabled, this can be used …\nIf the calloop
cargo feature is enabled, this can be used …\ncreates a data source for copy paste\ncreates a data source for drag and drop\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\ncreate a new data device for a given seat\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nHandler trait for DataDevice events.\nGet the active dnd offer if it exists.\nDrop performed. After the next data offer action event, …\nThe data device pointer has entered a surface at the …\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe drag and drop pointer has left the surface and the …\nDrag and Drop motion.\nGet the seat associated with this data device.\nAdvertises a new selection.\nGet the active selection offer if it exists.\nUnset the selection of the provided data device as a …\nAn error that may occur when working with data offers.\nHandler trait for DataOffer events.\nAccept the given mime type, or None to reject the offer. …\nDestroy the data offer.\nwhether or not the drag has been dropped\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nRetrieve a reference to the inner wl_data_offer.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nwhether or not the drag has left\nRequest to receive the data of a given mime type.\nReceive data with the given mime type. This request may …\nReceive data to the write end of a raw file descriptor. If …\nCalled to advertise the action selected by the compositor …\nthe compositor selected drag action\nthe serial for this data offer’s enter event\nSet the accepted and preferred drag and drop actions. This …\nCalled to advertise the available DnD Actions as set by …\nthe advertised drag actions\nthe surface that this DnD is active on\nthe timestamp a motion event was received in millisecond …\nInspect the mime types available on the given offer.\nInspect the mime types available on the given offer.\nInspect the mime types available on the given offer.\nthe x position on the surface\nthe y position on this surface\nHandler trait for DataSource events.\nThis may be called multiple times, once for each accepted …\nAn action was selected by the compositor.\nThe data source is no longer valid Cleanup & destroy this …\nA drop was performed. The data source will be used and …\nThe drag and drop finished. The data source may be …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nRetrieve a reference to the inner wl_data_source.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe client has requested the data for this source to be …\nSet the actions that this drag source supports. This can …\nSet the selection of the provided data device as a …\nStart a normal drag and drop operation. This can be used …\nStart an internal drag and drop operation. This will pass …\nDescription of supported and preferred dmabuf formats\nA preference tranche of dmabuf formats\nA single dmabuf format/modifier pair\nBuilder for a dmabuf backed buffer\nA handler for zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1
\nAdd a plane\nCreate buffer.\nCreate buffer immediately.\nCreate a params object for constructing a buffer\nwl_buffer
associated with params
has been created …\ndev_t
value for preferred target device. May be scan-out or\nServer has sent dmabuf feedback information. This may be …\nFailed to create wl_buffer
for params
.\nFlags for tranche\nFourcc format\nFormat/modifier pairs\nIndices of formats in the format table\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGet default dmabuf feedback. Requires version 4
.\nGet default dmabuf feedback for given surface. Requires …\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\ndev_t
value for main device. Buffers must be importable …\nModifier, or DRM_FORMAT_MOD_INVALID
for implict modifier\nOnly populated in version <4
\nBind zwp_linux_dmabuf_v1
global version 3 or 4, if it …\nCompositor has released a wl_buffer
created through …\nTranches in descending order of preference\nSupported protocol version, if any\nAn error that may occur when creating objects using a …\nA compositor global was available, but did not support the …\nA compositor global was not available\nReturns the argument unchanged.\nCalls U::from(self)
.\nInformation about a toplevel.\nHandler trait for foreign toplevel list protocol.\nApp id\nReturns the argument unchanged.\nReturns the argument unchanged.\nIdentifier to check if two toplevel handles refer to same …\nReturns information about a toplevel.\nCalls U::from(self)
.\nCalls U::from(self)
.\nA new toplevel has been opened.\nTitle\nA toplevel has closed.\nReturns list of toplevels.\nAn existing toplevel has changed.\nA struct used as the UserData field for globals bound by …\nA trait implemented by types that provide access to …\nReturns the argument unchanged.\nCalls U::from(self)
.\nSimplified event handler for wl_output::WlOutput
. See …\nInformation about an output.\nA handler for delegating wl_output::WlOutput
.\nWhether this is the current mode for this output.\nThe description of this output as advertised by the server\nNumber of pixels of this mode in format (width, height)
\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nThe id of the output.\nReturns information about an output.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nLocation of the top-left corner of this output in …\nLogical position in global compositor space\nLogical size in global compositor space\nThe make name of this output as advertised by the server.\nThe model name of this output as advertised by the server.\nPossible modes for an output.\nThe name of the this output as advertised by the surface.\nA new output has been advertised.\nAn output is no longer advertised.\nReturns an iterator over all outputs.\nPhysical dimensions of this output, in millimeters.\nWhether this is the preferred mode for this output.\nRefresh rate for this mode.\nGet the output scale factor.\nThe scaling factor of this output\nThe subpixel layout for this output.\nGet the output transform.\nThe current transformation applied to this output\nAn existing output has changed.\nAccess the underlying OutputInfo
.\nBind wp_presentation
global, if it exists\nContent update not displayed\nRequest feedback for current submission to surface.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nContent update displayed to user at indicated time\nCreate a primary selection source.\nReturns the argument unchanged.\nGet the primary selection data device for the given seat.\nCalls U::from(self)
.\nThe underlying wayland object.\nThe user data associated with the …\nGet the underlying data.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe seat used to create this primary selection device.\nThe new selection is received.\nThe active selection offer.\nRemove the currently active selection.\nWrapper around the ZwpPrimarySelectionOfferV1
.\nThe data associated with the ZwpPrimarySelectionOfferV1
.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nRequest to receive the data of a given mime type.\nRequest to receive the data of a given mime type, writen …\nInspect the mime types available on the given offer.\nWrapper around the ZwpPrimarySelectionSourceV1
.\nHandler trait for PrimarySelectionSource
events.\nThe data source is no longer valid Cleanup & destroy this …\nReturns the argument unchanged.\nThe underlying wayland object.\nCalls U::from(self)
.\nThe client has requested the data for this source to be …\nSet the selection on the given PrimarySelectionDevice
.\nThe cached global.\nA helper for storing a bound global.\nThe requested global was not present after a complete …\nTrait which asserts a data type may provide a mutable …\nA trait implemented by modular parts of a smithay’s …\nState object associated with the registry handling for …\nBinds all globals with a given interface.\nBinds a global, returning a new object associated with the …\nBinds a global, returning a new object associated with the …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns an iterator over all globals.\nReturns an iterator over all globals implementing the …\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCreates a new registry handle.\nCalled when a new global has been advertised by the …\nReturns a mutable reference to the registry state.\nCalled when a global has been destroyed by the compositor.\nCalled when a new global has been advertised by the …\nCalled when a global has been destroyed by the compositor.\nThe seat is dead.\nDescription of a seat.\nThe capability is not supported.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a keyboard from a seat.\nCreates a keyboard from a seat.\nCreates a keyboard from a seat.\nCreates a keyboard from a seat.\nCreates a pointer from a seat.\nCreates a pointer from a seat.\nCreates a pointer from a seat with the provided theme.\nCreates a pointer from a seat with the provided theme and …\nCreates a touch handle from a seat.\nCreates a touch handle from a seat.\nDoes the seat support a keyboard.\nDoes the seat support a pointer.\nDoes the seat support touch input.\nReturns information about a seat.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe name of the seat.\nA new capability is available on the seat.\nA new seat has been created.\nA capability has been removed from the seat.\nA seat has been removed.\nReturns an iterator over all the seats.\nKeys should not be repeated.\nThe specified keymap (RMLVO) is not valid.\nThe keyboard code, often corresponding to a physical key.\nData associated with a key press or release event.\nError when creating a keyboard.\nHandler trait for keyboard input.\nWrapper around a libxkbcommon keymap\nThe keyboard symbol, often corresponding to a character.\nThe state of keyboard modifiers\nThe “empty” keyboard symbol.\nThe RMLVO description of a keymap\nKeys will be repeated at the specified rate and delay.\nThe rate at which a pressed key is repeated.\nSeat error.\nThe “alt” key\nGet keymap as string in text format. The keymap should …\nThe “Caps lock” key\nThe “control” key\nThe keyboard has entered a surface.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a Keysym
from the given char
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nTell whether a keysym is a cursor key.\nTell whether a keysym is a function key.\nTell whether a keysym is a keypad key.\nTell whether a key is a miscellaneous function key.\nTell whether a key is a modifier key.\nTell whether a keysym is a PF key.\nTell whether a keysym is a private keypad key.\nTranslate a keyboard symbol to its approximate character.\nThe interpreted symbol of the key.\nA comma separated list of layouts (languages) to include …\nThe keyboard has left a surface.\nThe “logo” key\nThe keyboard model by which to interpret keycodes and LEDs\nGet a string corresponding to the name of this keyboard …\nCreate a new KeyCode
from a raw keyboard code.\nCreate a new Keysym
from a raw keyboard symbol.\nThe “Num lock” key\nA comma separated list of options, through which the user …\nA key has been pressed on the keyboard.\nGet the raw keyboard code.\nGet the raw keyboard symbol.\nThe raw value of the key.\nA key has been released.\nThe rules file to use\nThe “shift” key\nTime at which the keypress occurred.\nKeyboard keymap has been updated.\nKeyboard modifiers have been updated.\nThe keyboard has updated the rate and delay between …\nUTF-8 interpretation of the entered text.\nA comma separated list of variants, one per layout, which …\nDelay (in milliseconds) between a key press and the start …\nThe number of repetitions per second that should occur.\nIndicates an alias of/shortcut to something is to be …\nIndicates that the something can be scrolled in any …\nDescribes a scroll along one axis\nSee also BTN_SIDE
.\nThe fifth non-scroll button, which is often used as “…\nSee also BTN_EXTRA
.\nThe fourth non-scroll button, which is often used as “…\nIndicates that a cell or set of cells may be selected. …\nIndicates that the item/column can be resized …\nA context menu is available for the object under the …\nIndicates something is to be copied. Often rendered as an …\nA simple crosshair (e.g., short line segments resembling a …\nDescribes the appearance of the (usually mouse) cursor …\nAn error which could be returned when parsing CursorIcon
.\nThe requested cursor was not found.\nThe platform-dependent default cursor. Often rendered as …\nThe east border to be moved.\nThe east and west borders to be moved.\nA global error occurred.\nIndicates that something can be grabbed (dragged to be …\nIndicates that something is being grabbed (dragged to be …\nHelp is available for the object under the cursor. Often …\nAn invalid ObjectId was used.\nThere has been no enter event yet for the pointer.\nIndicates something is to be moved.\nThe north border to be moved.\nUse this specific theme with the given base size.\nThe north-east corner to be moved.\nThe north-east and south-west corners to be moved.\nIndicates that the dragged item cannot be dropped at the …\nIndicates that the requested action will not be carried …\nThe south and north borders to be moved.\nThe north-west corner to be moved.\nThe north-west and south-east corners to be moved.\nThe cursor is a pointer that indicates a link. Often …\nA single pointer event.\nAn error indicating that the cursor was not found.\nA progress indicator. The program is performing some …\nIndicates that the item/row can be resized vertically. …\nThe south border to be moved.\nThe south-east corner to be moved.\nThe south-west corner to be moved.\nUse the system provided theme\nIndicates text that may be selected. Often rendered as an …\nSpecifies which cursor theme should be used by the theme …\nPointer themeing\nIndicates vertical-text that may be selected. Often …\nThe west border to be moved.\nIndicates that the program is busy and the user should …\nIndicates that something can be zoomed in. Often rendered …\nIndicates that something can be zoomed in. Often rendered …\nThe scroll measured in pixels.\nA list of alternative names for the cursor icon as …\nThe scroll measured in steps.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nParse a string slice into CursorIcon
.\nHide the cursor by providing empty surface for it.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nReturns true if there was no movement along this axis.\nSerial from the latest button PointerEventKind::Press
and …\nSerial from the latest PointerEventKind::Enter
event.\nThe name of the cursor icon as defined in w3c standard.\nThe WlPointer
associated with this ThemedPointer
.\nOne or more pointer events are available.\nThe seat associated with this pointer.\nSet the cursor to the given CursorIcon
.\nThe scroll was stopped.\nThe associated WlSurface
with this ThemedPointer
.\nName of the cursor theme.\nBase size of the cursor names.\nReturns the argument unchanged.\nCalls U::from(self)
.\nBind zwp_pointer_constraints_v1
global, if it exists\nRequest that the compositor confine the pointer to a region\nPointer confinement activated by compositor\nReturns the argument unchanged.\nCalls U::from(self)
.\nRequest that the compositor lock the pointer in place\nPointer lock activated by compositor\nPointer confinement deactivated by compositor\nPointer lock deactivated by compositor\nBind zwp_relative_pointer_manager_v1
global, if it exists\n(x, y) motion vector\nUnaccelerated (x, y) motion vector\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nTimestamp in microseconds\nCancel active touch sequence.\nNew touch point.\nReturns the argument unchanged.\nCalls U::from(self)
.\nSerial from the latest touch down event.\nTouch point motion.\nCreate the new touch data associated with the given seat.\nTouch point shape orientation.\nGet the associated seat from the data.\nTouch point shape change.\nEnd of touch sequence.\nA session lock\nHandler trait for session lock protocol.\nA handler for …\nCompositor has requested size for surface.\nSession lock is not active and should be destroyed.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe session lock is active, and the client may create lock …\nAn unsupported operation, often due to the version of the …\nFunctionality shared by all wl_surface::WlSurface
backed …\nCommits pending surface state.\nReturns the argument unchanged.\nCalls U::from(self)
.\nThe underlying WlSurface
.\nCross desktop group (XDG) shell\nSpecifies which edges and corners a layer should be placed …\nThe bottom edge of the anchor rectangle.\nRequest exclusive keyboard focus if the layer is above …\nThe left edge of the anchor rectangle.\nThe z-depth of a layer.\nHandler for operations on a LayerSurface
\nA layer surface configure.\nNo keyboard focus is possible.\nThe compositor should focus and unfocus this surface by …\nThe right edge of the anchor rectangle.\nTop edge of the anchor rectangle.\nError when converting a zwlr_layer_shell_v1::Layer
to a …\nGet a flags value with all known bits set.\nBinds the wlr layer shell global, zwlr_layer_shell_v1
.\nThe bitwise and (&
) of the bits in two flags values.\nThe bitwise and (&
) of the bits in two flags values.\nThe bitwise or (|
) of the bits in two flags values.\nThe bitwise or (|
) of the bits in two flags values.\nGet the underlying bits value.\nThe bitwise exclusive-or (^
) of the bits in two flags …\nThe bitwise exclusive-or (^
) of the bits in two flags …\nThe layer surface has been closed.\nThe bitwise negation (!
) of the bits in a flags value, …\nApply a suggested surface change.\nWhether all set bits in a source flags value are also set …\nThe intersection of a source flags value with the …\nGet a flags value with all bits unset.\nThe bitwise or (|
) of the bits in each flags value.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConvert from a bits value.\nConvert from a bits value exactly.\nConvert from a bits value, unsetting any unknown bits.\nThe bitwise or (|
) of the bits in each flags value.\nGet a flags value with the bits of a flag with the given …\nThe bitwise or (|
) of the bits in two flags values.\nThe bitwise and (&
) of the bits in two flags values.\nWhether any set bits in a source flags value are also set …\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nWhether all known bits in this flags value are set.\nWhether all bits in this flags value are unset.\nYield a set of contained flags values.\nYield a set of contained named flags values.\nThe compositor suggested new size of the layer in …\nThe bitwise negation (!
) of the bits in a flags value, …\nThe intersection of a source flags value with the …\nCall insert
when value
is true
or remove
when value
is …\nThe intersection of a source flags value with the …\nThe intersection of a source flags value with the …\nThe bitwise exclusive-or (^
) of the bits in two flags …\nThe bitwise exclusive-or (^
) of the bits in two flags …\nThe bitwise or (|
) of the bits in two flags values.\nThe maximum API version for XdgWmBase that this object …\nA trivial wrapper for an xdg_positioner::XdgPositioner
.\nThe xdg shell globals.\nA surface role for functionality common in desktop-like …\nBinds the xdg shell global, xdg_wm_base
.\nCreates a new, unmapped window.\nThe default fallback frame which is intended to show some …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCreates an XdgShellSurface
.\nXDG shell windows.\nThe underlying XdgSurface
.\nThe default ugly frame.\nReturns the argument unchanged.\nCalls U::from(self)
.\nInitial configure for this popup\nThe configure is due to an xdg_positioner with …\nThe configure is due to a reposition request with this …\nThe popup has been configured.\nThe popup was dismissed by the compositor and should be …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a new popup from an existing surface.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCreate a new popup.\nGet a new handle to the Popup\n(x,y) relative to parent surface window geometry\nThe window should draw client side decorations.\nThe window should always draw it’s own client side …\nDecoration mode of a window.\nThe window should use server side decorations or draw any …\nThe window should request client side decorations.\nThe window should request server side decorations.\nThe server will draw window decorations.\nThe window should use the decoration mode the server asks …\nA window configure.\nDecorations a window is created with.\nHandler for toplevel operations on a Window
.\nThe capabilities supported by the compositor.\nApply a suggested surface change.\nThe compositor set decoration mode of the window.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nIs WindowState::ACTIVATED
state is set.\nIs WindowState::FULLSCREEN
state is set.\nIs WindowState::MAXIMIZED
state is set.\nIs WindowState::RESIZING
state is set.\nIs WindowState::TILED
state is set.\nIs WindowState::TILED_BOTTOM
state is set.\nIs WindowState::TILED_LEFT
state is set.\nIs WindowState::TILED_RIGHT
state is set.\nIs WindowState::TILED_TOP
state is set.\nThe compositor suggested new size of the window in window …\nRequest to close a window.\nRequests the window should use the specified decoration …\nProtocol errors\nThe current state of the window.\nCompositor suggested maximum bounds for a window.\nReturns the underlying xdg toplevel wrapped by this window.\nError while allocating the shared memory.\nAn error that may occur when creating a pool.\nThe wl_shm global is not bound.\nReturns the formats supported in memory pools.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nA pool implementation which automatically manage buffers.\nA raw shared memory pool handler.\nA pool implementation based on buffer slots\nThis pool manages buffers associated with keys. Only one …\nReturns the buffer associated with the given key and its …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nRetreives the buffer associated with the given key.\nInsert a buffer into the pool.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nRemoves the buffer with the given key from the pool and …\nResizes the memory pool, notifying the server the pool has …\nA raw handler for file backed shared memory pools.\nCreate a new buffer to this pool.\nCreate a new buffer to this pool.\nReturns the argument unchanged.\nCalls U::from(self)
.\nReturns the size of the mempool\nReturns a reference to the underlying shared memory file …\nReturns the pool object used to communicate with the …\nResizes the memory pool, notifying the server the pool has …\nBuffer was already active\nA wrapper around a wl_buffer::WlBuffer
which has been …\nA helper trait for SlotPool::canvas.\nSlot creation error.\nPool mismatch.\nA chunk of memory allocated from a SlotPool\nSlot size mismatch\nManually mark a buffer as active.\nAttach a buffer to a surface.\nGet the bytes corresponding to a given slot or buffer if …\nGet the bytes corresponding to a given slot if drawing to …\nGet the bytes corresponding to this buffer if drawing is …\nCreate a new buffer in a new slot.\nCreate a new buffer corresponding to a slot.\nManually mark a buffer as inactive.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturn true if there are buffers referencing this slot …\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nReturns the size, in bytes, of this pool.\nReturns the size, in bytes, of this slot.\nCreate a new slot with the given size in bytes.\nGet the bytes corresponding to a given slot.\nResizes the memory pool, notifying the server the pool has …\nGet the slot corresponding to this buffer.\nGet the inner buffer.\nThe data assoctiated with the subsurface.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nGet the surface used when creating the given subsurface.")
\ No newline at end of file
+searchState.loadedDescShard("smithay_client_toolkit", 0, "Delegates the handling of wl_registry
.\nDelegates the handling of wl_shm
to some Shm
.\nRe-exports of some crates, for convenience.\nUtilities for binding globals with wl_registry
in …\nA helper macro for implementing ProvidesRegistryState
.\nShell abstractions\nHandler for xdg-activation\nState for xdg-activation\nMinimal implementation of RequestDataExt
.\nData type used for requesting activation tokens\nData attached to a token request\nActivate a surface with the provided token.\nApp_id of the application requesting the token, if …\nApp_id of the application requesting the token, if …\nBind the xdg-activation
global\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nA token was issued for a previous request with data
.\nRequest a token for surface activation.\nRequest a token for surface activation with user data.\nSeat and serial of the window requesting the token, if …\nSeat and serial of the window requesting the token, if …\nSurface of the window requesting the token, if applicable.\nSurface of the window requesting the token, if applicable.\nThe maximum API version for WlCompositor that this object …\nA trivial wrapper around a WlRegion
.\nAn owned WlSurface
.\nData associated with a WlSurface
.\nA frame callback has been completed.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCreate a new surface that initially reports the given …\nThe outputs the surface is currently inside.\nThe parent surface used for this surface.\nThe scale factor of the output with the highest scale …\nThe surface has either been moved into or out of an output …\nThe surface has entered an output.\nThe surface has left an output.\nThe suggest transform for the surface.\nThe surface has either been moved into or out of an output …\nIf the calloop
cargo feature is enabled, this can be used …\nIf the calloop
cargo feature is enabled, this can be used …\ncreates a data source for copy paste\ncreates a data source for drag and drop\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\ncreate a new data device for a given seat\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nHandler trait for DataDevice events.\nGet the active dnd offer if it exists.\nDrop performed. After the next data offer action event, …\nThe data device pointer has entered a surface at the …\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe drag and drop pointer has left the surface and the …\nDrag and Drop motion.\nGet the seat associated with this data device.\nAdvertises a new selection.\nGet the active selection offer if it exists.\nUnset the selection of the provided data device as a …\nAn error that may occur when working with data offers.\nHandler trait for DataOffer events.\nAccept the given mime type, or None to reject the offer. …\nDestroy the data offer.\nwhether or not the drag has been dropped\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nRetrieve a reference to the inner wl_data_offer.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nwhether or not the drag has left\nRequest to receive the data of a given mime type.\nReceive data with the given mime type. This request may …\nReceive data to the write end of a raw file descriptor. If …\nCalled to advertise the action selected by the compositor …\nthe compositor selected drag action\nthe serial for this data offer’s enter event\nSet the accepted and preferred drag and drop actions. This …\nCalled to advertise the available DnD Actions as set by …\nthe advertised drag actions\nthe surface that this DnD is active on\nthe timestamp a motion event was received in millisecond …\nInspect the mime types available on the given offer.\nInspect the mime types available on the given offer.\nInspect the mime types available on the given offer.\nthe x position on the surface\nthe y position on this surface\nHandler trait for DataSource events.\nThis may be called multiple times, once for each accepted …\nAn action was selected by the compositor.\nThe data source is no longer valid Cleanup & destroy this …\nA drop was performed. The data source will be used and …\nThe drag and drop finished. The data source may be …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nRetrieve a reference to the inner wl_data_source.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe client has requested the data for this source to be …\nSet the actions that this drag source supports. This can …\nSet the selection of the provided data device as a …\nStart a normal drag and drop operation. This can be used …\nStart an internal drag and drop operation. This will pass …\nDescription of supported and preferred dmabuf formats\nA preference tranche of dmabuf formats\nA single dmabuf format/modifier pair\nBuilder for a dmabuf backed buffer\nA handler for zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1
\nAdd a plane\nCreate buffer.\nCreate buffer immediately.\nCreate a params object for constructing a buffer\nwl_buffer
associated with params
has been created …\ndev_t
value for preferred target device. May be scan-out or\nServer has sent dmabuf feedback information. This may be …\nFailed to create wl_buffer
for params
.\nFlags for tranche\nFourcc format\nFormat/modifier pairs\nIndices of formats in the format table\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nGet default dmabuf feedback. Requires version 4
.\nGet default dmabuf feedback for given surface. Requires …\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\ndev_t
value for main device. Buffers must be importable …\nModifier, or DRM_FORMAT_MOD_INVALID
for implict modifier\nOnly populated in version <4
\nBind zwp_linux_dmabuf_v1
global version 3 or 4, if it …\nCompositor has released a wl_buffer
created through …\nTranches in descending order of preference\nSupported protocol version, if any\nAn error that may occur when creating objects using a …\nA compositor global was available, but did not support the …\nA compositor global was not available\nReturns the argument unchanged.\nCalls U::from(self)
.\nInformation about a toplevel.\nHandler trait for foreign toplevel list protocol.\nApp id\nReturns the argument unchanged.\nReturns the argument unchanged.\nIdentifier to check if two toplevel handles refer to same …\nReturns information about a toplevel.\nCalls U::from(self)
.\nCalls U::from(self)
.\nA new toplevel has been opened.\nTitle\nA toplevel has closed.\nReturns list of toplevels.\nAn existing toplevel has changed.\nA struct used as the UserData field for globals bound by …\nA trait implemented by types that provide access to …\nReturns the argument unchanged.\nCalls U::from(self)
.\nSimplified event handler for wl_output::WlOutput
. See …\nInformation about an output.\nA handler for delegating wl_output::WlOutput
.\nWhether this is the current mode for this output.\nThe description of this output as advertised by the server\nNumber of pixels of this mode in format (width, height)
\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nThe id of the output.\nReturns information about an output.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nLocation of the top-left corner of this output in …\nLogical position in global compositor space\nLogical size in global compositor space\nThe make name of this output as advertised by the server.\nThe model name of this output as advertised by the server.\nPossible modes for an output.\nThe name of the this output as advertised by the surface.\nA new output has been advertised.\nAn output is no longer advertised.\nReturns an iterator over all outputs.\nPhysical dimensions of this output, in millimeters.\nWhether this is the preferred mode for this output.\nRefresh rate for this mode.\nGet the output scale factor.\nThe scaling factor of this output\nThe subpixel layout for this output.\nGet the output transform.\nThe current transformation applied to this output\nAn existing output has changed.\nAccess the underlying OutputInfo
.\nBind wp_presentation
global, if it exists\nContent update not displayed\nRequest feedback for current submission to surface.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nContent update displayed to user at indicated time\nCreate a primary selection source.\nReturns the argument unchanged.\nGet the primary selection data device for the given seat.\nCalls U::from(self)
.\nThe underlying wayland object.\nThe user data associated with the …\nGet the underlying data.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe seat used to create this primary selection device.\nThe new selection is received.\nThe active selection offer.\nRemove the currently active selection.\nWrapper around the ZwpPrimarySelectionOfferV1
.\nThe data associated with the ZwpPrimarySelectionOfferV1
.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nRequest to receive the data of a given mime type.\nRequest to receive the data of a given mime type, writen …\nInspect the mime types available on the given offer.\nWrapper around the ZwpPrimarySelectionSourceV1
.\nHandler trait for PrimarySelectionSource
events.\nThe data source is no longer valid Cleanup & destroy this …\nReturns the argument unchanged.\nThe underlying wayland object.\nCalls U::from(self)
.\nThe client has requested the data for this source to be …\nSet the selection on the given PrimarySelectionDevice
.\nThe cached global.\nA helper for storing a bound global.\nThe requested global was not present after a complete …\nTrait which asserts a data type may provide a mutable …\nA trait implemented by modular parts of a smithay’s …\nState object associated with the registry handling for …\nBinds all globals with a given interface.\nBinds a global, returning a new object associated with the …\nBinds a global, returning a new object associated with the …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns an iterator over all globals.\nReturns an iterator over all globals implementing the …\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCreates a new registry handle.\nCalled when a new global has been advertised by the …\nReturns a mutable reference to the registry state.\nCalled when a global has been destroyed by the compositor.\nCalled when a new global has been advertised by the …\nCalled when a global has been destroyed by the compositor.\nThe seat is dead.\nDescription of a seat.\nThe capability is not supported.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a keyboard from a seat.\nCreates a keyboard from a seat.\nCreates a keyboard from a seat.\nCreates a keyboard from a seat.\nCreates a pointer from a seat.\nCreates a pointer from a seat.\nCreates a pointer from a seat with the provided theme.\nCreates a pointer from a seat with the provided theme and …\nCreates a touch handle from a seat.\nCreates a touch handle from a seat.\nDoes the seat support a keyboard.\nDoes the seat support a pointer.\nDoes the seat support touch input.\nReturns information about a seat.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe name of the seat.\nA new capability is available on the seat.\nA new seat has been created.\nA capability has been removed from the seat.\nA seat has been removed.\nReturns an iterator over all the seats.\nKeys should not be repeated.\nThe specified keymap (RMLVO) is not valid.\nThe keyboard code, often corresponding to a physical key.\nData associated with a key press or release event.\nError when creating a keyboard.\nHandler trait for keyboard input.\nWrapper around a libxkbcommon keymap\nThe keyboard symbol, often corresponding to a character.\nThe state of keyboard modifiers\nThe “empty” keyboard symbol.\nThe RMLVO description of a keymap\nState of keyboard modifiers, in raw form sent by …\nKeys will be repeated at the specified rate and delay.\nThe rate at which a pressed key is repeated.\nSeat error.\nThe “alt” key\nGet keymap as string in text format. The keymap should …\nThe “Caps lock” key\nThe “control” key\nThe keyboard has entered a surface.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a Keysym
from the given char
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nTell whether a keysym is a cursor key.\nTell whether a keysym is a function key.\nTell whether a keysym is a keypad key.\nTell whether a key is a miscellaneous function key.\nTell whether a key is a modifier key.\nTell whether a keysym is a PF key.\nTell whether a keysym is a private keypad key.\nTranslate a keyboard symbol to its approximate character.\nThe interpreted symbol of the key.\nA comma separated list of layouts (languages) to include …\nThe keyboard has left a surface.\nThe “logo” key\nThe keyboard model by which to interpret keycodes and LEDs\nGet a string corresponding to the name of this keyboard …\nCreate a new KeyCode
from a raw keyboard code.\nCreate a new Keysym
from a raw keyboard symbol.\nThe “Num lock” key\nA comma separated list of options, through which the user …\nA key has been pressed on the keyboard.\nGet the raw keyboard code.\nGet the raw keyboard symbol.\nThe raw value of the key.\nA key has been released.\nThe rules file to use\nThe “shift” key\nTime at which the keypress occurred.\nKeyboard keymap has been updated.\nKeyboard modifiers have been updated.\nThe keyboard has updated the rate and delay between …\nUTF-8 interpretation of the entered text.\nA comma separated list of variants, one per layout, which …\nDelay (in milliseconds) between a key press and the start …\nThe number of repetitions per second that should occur.\nIndicates an alias of/shortcut to something is to be …\nIndicates that the something can be scrolled in any …\nDescribes a scroll along one axis\nSee also BTN_SIDE
.\nThe fifth non-scroll button, which is often used as “…\nSee also BTN_EXTRA
.\nThe fourth non-scroll button, which is often used as “…\nIndicates that a cell or set of cells may be selected. …\nIndicates that the item/column can be resized …\nA context menu is available for the object under the …\nIndicates something is to be copied. Often rendered as an …\nA simple crosshair (e.g., short line segments resembling a …\nDescribes the appearance of the (usually mouse) cursor …\nAn error which could be returned when parsing CursorIcon
.\nThe requested cursor was not found.\nThe platform-dependent default cursor. Often rendered as …\nThe east border to be moved.\nThe east and west borders to be moved.\nA global error occurred.\nIndicates that something can be grabbed (dragged to be …\nIndicates that something is being grabbed (dragged to be …\nHelp is available for the object under the cursor. Often …\nAn invalid ObjectId was used.\nThere has been no enter event yet for the pointer.\nIndicates something is to be moved.\nThe north border to be moved.\nUse this specific theme with the given base size.\nThe north-east corner to be moved.\nThe north-east and south-west corners to be moved.\nIndicates that the dragged item cannot be dropped at the …\nIndicates that the requested action will not be carried …\nThe south and north borders to be moved.\nThe north-west corner to be moved.\nThe north-west and south-east corners to be moved.\nThe cursor is a pointer that indicates a link. Often …\nA single pointer event.\nAn error indicating that the cursor was not found.\nA progress indicator. The program is performing some …\nIndicates that the item/row can be resized vertically. …\nThe south border to be moved.\nThe south-east corner to be moved.\nThe south-west corner to be moved.\nUse the system provided theme\nIndicates text that may be selected. Often rendered as an …\nSpecifies which cursor theme should be used by the theme …\nPointer themeing\nIndicates vertical-text that may be selected. Often …\nThe west border to be moved.\nIndicates that the program is busy and the user should …\nIndicates that something can be zoomed in. Often rendered …\nIndicates that something can be zoomed in. Often rendered …\nThe scroll measured in pixels.\nA list of alternative names for the cursor icon as …\nThe scroll measured in steps.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nParse a string slice into CursorIcon
.\nHide the cursor by providing empty surface for it.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nReturns true if there was no movement along this axis.\nSerial from the latest button PointerEventKind::Press
and …\nSerial from the latest PointerEventKind::Enter
event.\nThe name of the cursor icon as defined in w3c standard.\nThe WlPointer
associated with this ThemedPointer
.\nOne or more pointer events are available.\nThe seat associated with this pointer.\nSet the cursor to the given CursorIcon
.\nThe scroll was stopped.\nThe associated WlSurface
with this ThemedPointer
.\nName of the cursor theme.\nBase size of the cursor names.\nReturns the argument unchanged.\nCalls U::from(self)
.\nBind zwp_pointer_constraints_v1
global, if it exists\nRequest that the compositor confine the pointer to a region\nPointer confinement activated by compositor\nReturns the argument unchanged.\nCalls U::from(self)
.\nRequest that the compositor lock the pointer in place\nPointer lock activated by compositor\nPointer confinement deactivated by compositor\nPointer lock deactivated by compositor\nBind zwp_relative_pointer_manager_v1
global, if it exists\n(x, y) motion vector\nUnaccelerated (x, y) motion vector\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nTimestamp in microseconds\nCancel active touch sequence.\nNew touch point.\nReturns the argument unchanged.\nCalls U::from(self)
.\nSerial from the latest touch down event.\nTouch point motion.\nCreate the new touch data associated with the given seat.\nTouch point shape orientation.\nGet the associated seat from the data.\nTouch point shape change.\nEnd of touch sequence.\nA session lock\nHandler trait for session lock protocol.\nA handler for …\nCompositor has requested size for surface.\nSession lock is not active and should be destroyed.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nThe session lock is active, and the client may create lock …\nAn unsupported operation, often due to the version of the …\nFunctionality shared by all wl_surface::WlSurface
backed …\nCommits pending surface state.\nReturns the argument unchanged.\nCalls U::from(self)
.\nThe underlying WlSurface
.\nCross desktop group (XDG) shell\nSpecifies which edges and corners a layer should be placed …\nThe bottom edge of the anchor rectangle.\nRequest exclusive keyboard focus if the layer is above …\nThe left edge of the anchor rectangle.\nThe z-depth of a layer.\nHandler for operations on a LayerSurface
\nA layer surface configure.\nNo keyboard focus is possible.\nThe compositor should focus and unfocus this surface by …\nThe right edge of the anchor rectangle.\nTop edge of the anchor rectangle.\nError when converting a zwlr_layer_shell_v1::Layer
to a …\nGet a flags value with all known bits set.\nBinds the wlr layer shell global, zwlr_layer_shell_v1
.\nThe bitwise and (&
) of the bits in two flags values.\nThe bitwise and (&
) of the bits in two flags values.\nThe bitwise or (|
) of the bits in two flags values.\nThe bitwise or (|
) of the bits in two flags values.\nGet the underlying bits value.\nThe bitwise exclusive-or (^
) of the bits in two flags …\nThe bitwise exclusive-or (^
) of the bits in two flags …\nThe layer surface has been closed.\nThe bitwise negation (!
) of the bits in a flags value, …\nApply a suggested surface change.\nWhether all set bits in a source flags value are also set …\nThe intersection of a source flags value with the …\nGet a flags value with all bits unset.\nThe bitwise or (|
) of the bits in each flags value.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConvert from a bits value.\nConvert from a bits value exactly.\nConvert from a bits value, unsetting any unknown bits.\nThe bitwise or (|
) of the bits in each flags value.\nGet a flags value with the bits of a flag with the given …\nThe bitwise or (|
) of the bits in two flags values.\nThe bitwise and (&
) of the bits in two flags values.\nWhether any set bits in a source flags value are also set …\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nWhether all known bits in this flags value are set.\nWhether all bits in this flags value are unset.\nYield a set of contained flags values.\nYield a set of contained named flags values.\nThe compositor suggested new size of the layer in …\nThe bitwise negation (!
) of the bits in a flags value, …\nThe intersection of a source flags value with the …\nCall insert
when value
is true
or remove
when value
is …\nThe intersection of a source flags value with the …\nThe intersection of a source flags value with the …\nThe bitwise exclusive-or (^
) of the bits in two flags …\nThe bitwise exclusive-or (^
) of the bits in two flags …\nThe bitwise or (|
) of the bits in two flags values.\nThe maximum API version for XdgWmBase that this object …\nA trivial wrapper for an xdg_positioner::XdgPositioner
.\nThe xdg shell globals.\nA surface role for functionality common in desktop-like …\nBinds the xdg shell global, xdg_wm_base
.\nCreates a new, unmapped window.\nThe default fallback frame which is intended to show some …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCreates an XdgShellSurface
.\nXDG shell windows.\nThe underlying XdgSurface
.\nThe default ugly frame.\nReturns the argument unchanged.\nCalls U::from(self)
.\nInitial configure for this popup\nThe configure is due to an xdg_positioner with …\nThe configure is due to a reposition request with this …\nThe popup has been configured.\nThe popup was dismissed by the compositor and should be …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a new popup from an existing surface.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCreate a new popup.\nGet a new handle to the Popup\n(x,y) relative to parent surface window geometry\nThe window should draw client side decorations.\nThe window should always draw it’s own client side …\nDecoration mode of a window.\nThe window should use server side decorations or draw any …\nThe window should request client side decorations.\nThe window should request server side decorations.\nThe server will draw window decorations.\nThe window should use the decoration mode the server asks …\nA window configure.\nDecorations a window is created with.\nHandler for toplevel operations on a Window
.\nThe capabilities supported by the compositor.\nApply a suggested surface change.\nThe compositor set decoration mode of the window.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nIs WindowState::ACTIVATED
state is set.\nIs WindowState::FULLSCREEN
state is set.\nIs WindowState::MAXIMIZED
state is set.\nIs WindowState::RESIZING
state is set.\nIs WindowState::TILED
state is set.\nIs WindowState::TILED_BOTTOM
state is set.\nIs WindowState::TILED_LEFT
state is set.\nIs WindowState::TILED_RIGHT
state is set.\nIs WindowState::TILED_TOP
state is set.\nThe compositor suggested new size of the window in window …\nRequest to close a window.\nRequests the window should use the specified decoration …\nProtocol errors\nThe current state of the window.\nCompositor suggested maximum bounds for a window.\nReturns the underlying xdg toplevel wrapped by this window.\nError while allocating the shared memory.\nAn error that may occur when creating a pool.\nThe wl_shm global is not bound.\nReturns the formats supported in memory pools.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nA pool implementation which automatically manage buffers.\nA raw shared memory pool handler.\nA pool implementation based on buffer slots\nThis pool manages buffers associated with keys. Only one …\nReturns the buffer associated with the given key and its …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nRetreives the buffer associated with the given key.\nInsert a buffer into the pool.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nRemoves the buffer with the given key from the pool and …\nResizes the memory pool, notifying the server the pool has …\nA raw handler for file backed shared memory pools.\nCreate a new buffer to this pool.\nCreate a new buffer to this pool.\nReturns the argument unchanged.\nCalls U::from(self)
.\nReturns the size of the mempool\nReturns a reference to the underlying shared memory file …\nReturns the pool object used to communicate with the …\nResizes the memory pool, notifying the server the pool has …\nBuffer was already active\nA wrapper around a wl_buffer::WlBuffer
which has been …\nA helper trait for SlotPool::canvas.\nSlot creation error.\nPool mismatch.\nA chunk of memory allocated from a SlotPool\nSlot size mismatch\nManually mark a buffer as active.\nAttach a buffer to a surface.\nGet the bytes corresponding to a given slot or buffer if …\nGet the bytes corresponding to a given slot if drawing to …\nGet the bytes corresponding to this buffer if drawing is …\nCreate a new buffer in a new slot.\nCreate a new buffer corresponding to a slot.\nManually mark a buffer as inactive.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturn true if there are buffers referencing this slot …\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nCalls U::from(self)
.\nReturns the size, in bytes, of this pool.\nReturns the size, in bytes, of this slot.\nCreate a new slot with the given size in bytes.\nGet the bytes corresponding to a given slot.\nResizes the memory pool, notifying the server the pool has …\nGet the slot corresponding to this buffer.\nGet the inner buffer.\nThe data assoctiated with the subsurface.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self)
.\nCalls U::from(self)
.\nGet the surface used when creating the given subsurface.")
\ No newline at end of file
diff --git a/settings.html b/settings.html
index 510ce78d68..1ee87639e4 100644
--- a/settings.html
+++ b/settings.html
@@ -1 +1 @@
-RequestDataExt
.RequestDataExt
.pub struct ActivationState { /* private fields */ }
State for xdg-activation
+pub struct ActivationState { /* private fields */ }
State for xdg-activation
Bind the xdg-activation
global
Activate a surface with the provided token.
+Activate a surface with the provided token.
Request a token for surface activation.
To attach custom data to the request implement RequestDataExt
on a custom type
@@ -18,49 +18,49 @@
R: RequestDataExt + 'static,
Request a token for surface activation with user data.
To use this method you need to provide [delegate_activation
] with your custom type.
E.g. delegate_activation!(SimpleWindow, MyRequestData);
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+pub struct RequestData {
- pub app_id: Option<String>,
- pub seat_and_serial: Option<(WlSeat, u32)>,
- pub surface: Option<WlSurface>,
+RequestData in smithay_client_toolkit::activation - Rust Struct smithay_client_toolkit::activation::RequestData
source · pub struct RequestData {
+ pub app_id: Option<String>,
+ pub seat_and_serial: Option<(WlSeat, u32)>,
+ pub surface: Option<WlSurface>,
}
Expand description
Minimal implementation of RequestDataExt
.
Use a custom type implementing RequestDataExt
to store more data with a token request
e.g. to identify which request produced which token.
-Fields§
§app_id: Option<String>
App_id of the application requesting the token, if applicable
-§seat_and_serial: Option<(WlSeat, u32)>
Seat and serial of the window requesting the token, if applicable.
+Fields§
§app_id: Option<String>
App_id of the application requesting the token, if applicable
+§seat_and_serial: Option<(WlSeat, u32)>
Seat and serial of the window requesting the token, if applicable.
Warning: Many compositors will issue invalid tokens for requests without
recent serials. There is no way to detect this from the client-side.
-§surface: Option<WlSurface>
Surface of the window requesting the token, if applicable.
+§surface: Option<WlSurface>
Surface of the window requesting the token, if applicable.
Warning: Many compositors will issue invalid tokens for requests from
unfocused surfaces. There is no way to detect this from the client-side.
-Trait Implementations§
source§impl Clone for RequestData
source§fn clone(&self) -> RequestData
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RequestData
source§impl RequestDataExt for RequestData
Auto Trait Implementations§
§impl Freeze for RequestData
§impl !RefUnwindSafe for RequestData
§impl Send for RequestData
§impl Sync for RequestData
§impl Unpin for RequestData
§impl !UnwindSafe for RequestData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
source§impl Clone for RequestData
source§fn clone(&self) -> RequestData
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RequestData
source§impl RequestDataExt for RequestData
Auto Trait Implementations§
§impl Freeze for RequestData
§impl !RefUnwindSafe for RequestData
§impl Send for RequestData
§impl Sync for RequestData
§impl Unpin for RequestData
§impl !UnwindSafe for RequestData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/activation/trait.ActivationHandler.html b/smithay_client_toolkit/activation/trait.ActivationHandler.html
index 9b63bf9c77..fcc1815937 100644
--- a/smithay_client_toolkit/activation/trait.ActivationHandler.html
+++ b/smithay_client_toolkit/activation/trait.ActivationHandler.html
@@ -1,9 +1,9 @@
-ActivationHandler in smithay_client_toolkit::activation - Rust pub trait ActivationHandler: Sized {
+ActivationHandler in smithay_client_toolkit::activation - Rust pub trait ActivationHandler: Sized {
type RequestData: RequestDataExt;
// Required method
- fn new_token(&mut self, token: String, data: &Self::RequestData);
+ fn new_token(&mut self, token: String, data: &Self::RequestData);
}
Expand description
Handler for xdg-activation
Required Associated Types§
sourcetype RequestData: RequestDataExt
Data type used for requesting activation tokens
-Required Methods§
sourcefn new_token(&mut self, token: String, data: &Self::RequestData)
A token was issued for a previous request with data
.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+
Required Methods§
sourcefn new_token(&mut self, token: String, data: &Self::RequestData)
A token was issued for a previous request with data
.
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/activation/trait.RequestDataExt.html b/smithay_client_toolkit/activation/trait.RequestDataExt.html
index 4bb69b6285..824fd0f1f7 100644
--- a/smithay_client_toolkit/activation/trait.RequestDataExt.html
+++ b/smithay_client_toolkit/activation/trait.RequestDataExt.html
@@ -1,14 +1,14 @@
-RequestDataExt in smithay_client_toolkit::activation - Rust pub trait RequestDataExt: Send + Sync {
+RequestDataExt in smithay_client_toolkit::activation - Rust pub trait RequestDataExt: Send + Sync {
// Required methods
- fn app_id(&self) -> Option<&str>;
- fn seat_and_serial(&self) -> Option<(&WlSeat, u32)>;
- fn surface(&self) -> Option<&WlSurface>;
+ fn app_id(&self) -> Option<&str>;
+ fn seat_and_serial(&self) -> Option<(&WlSeat, u32)>;
+ fn surface(&self) -> Option<&WlSurface>;
}
Expand description
Data attached to a token request
-Required Methods§
sourcefn app_id(&self) -> Option<&str>
App_id of the application requesting the token, if applicable
-sourcefn seat_and_serial(&self) -> Option<(&WlSeat, u32)>
Seat and serial of the window requesting the token, if applicable.
+Required Methods§
sourcefn app_id(&self) -> Option<&str>
App_id of the application requesting the token, if applicable
+sourcefn seat_and_serial(&self) -> Option<(&WlSeat, u32)>
Seat and serial of the window requesting the token, if applicable.
Warning: Many compositors will issue invalid tokens for requests without
recent serials. There is no way to detect this from the client-side.
-Implementors§
source§impl RequestDataExt for RequestData
\ No newline at end of file
diff --git a/smithay_client_toolkit/all.html b/smithay_client_toolkit/all.html
index d79e189cb7..9b8b7649f6 100644
--- a/smithay_client_toolkit/all.html
+++ b/smithay_client_toolkit/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
- activation::ActivationState
- activation::RequestData
- compositor::CompositorState
- compositor::Region
- compositor::Surface
- compositor::SurfaceData
- data_device_manager::DataDeviceManagerState
- data_device_manager::ReadPipe
- data_device_manager::WritePipe
- data_device_manager::data_device::DataDevice
- data_device_manager::data_device::DataDeviceData
- data_device_manager::data_offer::DataDeviceOfferInner
- data_device_manager::data_offer::DataOfferData
- data_device_manager::data_offer::DragOffer
- data_device_manager::data_offer::SelectionOffer
- data_device_manager::data_source::CopyPasteSource
- data_device_manager::data_source::DataSourceData
- data_device_manager::data_source::DragSource
- dmabuf::DmabufFeedback
- dmabuf::DmabufFeedbackTranche
- dmabuf::DmabufFormat
- dmabuf::DmabufParams
- dmabuf::DmabufState
- foreign_toplevel_list::ForeignToplevelInfo
- foreign_toplevel_list::ForeignToplevelList
- globals::GlobalData
- output::Mode
- output::OutputData
- output::OutputInfo
- output::OutputState
- output::ScaleWatcherHandle
- presentation_time::PresentTime
- presentation_time::PresentationTimeState
- primary_selection::PrimarySelectionManagerState
- primary_selection::device::PrimarySelectionDevice
- primary_selection::device::PrimarySelectionDeviceData
- primary_selection::offer::PrimarySelectionOffer
- primary_selection::offer::PrimarySelectionOfferData
- primary_selection::selection::PrimarySelectionSource
- registry::RegistryState
- registry::SimpleGlobal
- seat::SeatData
- seat::SeatInfo
- seat::SeatState
- seat::keyboard::KeyCode
- seat::keyboard::KeyEvent
- seat::keyboard::KeyboardData
- seat::keyboard::Keymap
- seat::keyboard::Keysym
- seat::keyboard::Modifiers
- seat::keyboard::RMLVO
- seat::pointer::AxisScroll
- seat::pointer::CursorIconParseError
- seat::pointer::PointerData
- seat::pointer::PointerEvent
- seat::pointer::ThemedPointer
- seat::pointer::cursor_shape::CursorShapeManager
- seat::pointer_constraints::PointerConstraintsState
- seat::relative_pointer::RelativeMotionEvent
- seat::relative_pointer::RelativePointerState
- seat::touch::TouchData
- session_lock::SessionLock
- session_lock::SessionLockData
- session_lock::SessionLockInner
- session_lock::SessionLockState
- session_lock::SessionLockSurface
- session_lock::SessionLockSurfaceConfigure
- session_lock::SessionLockSurfaceData
- shell::Unsupported
- shell::wlr_layer::Anchor
- shell::wlr_layer::LayerShell
- shell::wlr_layer::LayerSurface
- shell::wlr_layer::LayerSurfaceConfigure
- shell::wlr_layer::LayerSurfaceData
- shell::wlr_layer::UnknownLayer
- shell::xdg::XdgPositioner
- shell::xdg::XdgShell
- shell::xdg::XdgShellSurface
- shell::xdg::fallback_frame::FallbackFrame
- shell::xdg::popup::Popup
- shell::xdg::popup::PopupConfigure
- shell::xdg::popup::PopupData
- shell::xdg::window::Window
- shell::xdg::window::WindowConfigure
- shell::xdg::window::WindowData
- shm::Shm
- shm::multi::BufferSlot
- shm::multi::MultiPool
- shm::raw::RawPool
- shm::slot::Buffer
- shm::slot::Slot
- shm::slot::SlotPool
- subcompositor::SubcompositorState
- subcompositor::SubsurfaceData
Enums
- data_device_manager::data_offer::DataOfferError
- error::GlobalError
- registry::GlobalProxy
- seat::Capability
- seat::SeatError
- seat::keyboard::KeyboardError
- seat::keyboard::RepeatInfo
- seat::pointer::CursorIcon
- seat::pointer::PointerEventKind
- seat::pointer::PointerThemeError
- seat::pointer::ThemeSpec
- shell::wlr_layer::KeyboardInteractivity
- shell::wlr_layer::Layer
- shell::wlr_layer::SurfaceKind
- shell::xdg::popup::ConfigureKind
- shell::xdg::window::DecorationMode
- shell::xdg::window::WindowDecorations
- shm::CreatePoolError
- shm::multi::PoolError
- shm::slot::ActivateSlotError
- shm::slot::CreateBufferError
Traits
- activation::ActivationHandler
- activation::RequestDataExt
- compositor::CompositorHandler
- compositor::SurfaceDataExt
- data_device_manager::data_device::DataDeviceHandler
- data_device_manager::data_offer::DataOfferHandler
- data_device_manager::data_source::DataSourceDataExt
- data_device_manager::data_source::DataSourceHandler
- dmabuf::DmabufHandler
- foreign_toplevel_list::ForeignToplevelListHandler
- globals::ProvidesBoundGlobal
- output::OutputHandler
- presentation_time::PresentationTimeHandler
- primary_selection::device::PrimarySelectionDeviceHandler
- primary_selection::selection::PrimarySelectionSourceHandler
- registry::ProvidesRegistryState
- registry::RegistryHandler
- seat::SeatHandler
- seat::keyboard::KeyboardDataExt
- seat::keyboard::KeyboardHandler
- seat::pointer::PointerDataExt
- seat::pointer::PointerHandler
- seat::pointer_constraints::PointerConstraintsHandler
- seat::relative_pointer::RelativePointerHandler
- seat::touch::TouchDataExt
- seat::touch::TouchHandler
- session_lock::SessionLockHandler
- shell::WaylandSurface
- shell::wlr_layer::LayerShellHandler
- shell::xdg::XdgSurface
- shell::xdg::popup::PopupHandler
- shell::xdg::window::WindowHandler
- shm::ShmHandler
- shm::slot::CanvasKey
Macros
- delegate_activation
- delegate_compositor
- delegate_data_device
- delegate_dmabuf
- delegate_foreign_toplevel_list
- delegate_keyboard
- delegate_layer
- delegate_output
- delegate_pointer
- delegate_pointer_constraints
- delegate_presentation_time
- delegate_primary_selection
- delegate_registry
- delegate_relative_pointer
- delegate_seat
- delegate_session_lock
- delegate_shm
- delegate_simple
- delegate_subcompositor
- delegate_touch
- delegate_xdg_popup
- delegate_xdg_shell
- delegate_xdg_window
- registry_handlers
Functions
Type Aliases
Constants
\ No newline at end of file
+List of all items in this crate List of all items
Structs
- activation::ActivationState
- activation::RequestData
- compositor::CompositorState
- compositor::Region
- compositor::Surface
- compositor::SurfaceData
- data_device_manager::DataDeviceManagerState
- data_device_manager::ReadPipe
- data_device_manager::WritePipe
- data_device_manager::data_device::DataDevice
- data_device_manager::data_device::DataDeviceData
- data_device_manager::data_offer::DataDeviceOfferInner
- data_device_manager::data_offer::DataOfferData
- data_device_manager::data_offer::DragOffer
- data_device_manager::data_offer::SelectionOffer
- data_device_manager::data_source::CopyPasteSource
- data_device_manager::data_source::DataSourceData
- data_device_manager::data_source::DragSource
- dmabuf::DmabufFeedback
- dmabuf::DmabufFeedbackTranche
- dmabuf::DmabufFormat
- dmabuf::DmabufParams
- dmabuf::DmabufState
- foreign_toplevel_list::ForeignToplevelInfo
- foreign_toplevel_list::ForeignToplevelList
- globals::GlobalData
- output::Mode
- output::OutputData
- output::OutputInfo
- output::OutputState
- output::ScaleWatcherHandle
- presentation_time::PresentTime
- presentation_time::PresentationTimeState
- primary_selection::PrimarySelectionManagerState
- primary_selection::device::PrimarySelectionDevice
- primary_selection::device::PrimarySelectionDeviceData
- primary_selection::offer::PrimarySelectionOffer
- primary_selection::offer::PrimarySelectionOfferData
- primary_selection::selection::PrimarySelectionSource
- registry::RegistryState
- registry::SimpleGlobal
- seat::SeatData
- seat::SeatInfo
- seat::SeatState
- seat::keyboard::KeyCode
- seat::keyboard::KeyEvent
- seat::keyboard::KeyboardData
- seat::keyboard::Keymap
- seat::keyboard::Keysym
- seat::keyboard::Modifiers
- seat::keyboard::RMLVO
- seat::keyboard::RawModifiers
- seat::pointer::AxisScroll
- seat::pointer::CursorIconParseError
- seat::pointer::PointerData
- seat::pointer::PointerEvent
- seat::pointer::ThemedPointer
- seat::pointer::cursor_shape::CursorShapeManager
- seat::pointer_constraints::PointerConstraintsState
- seat::relative_pointer::RelativeMotionEvent
- seat::relative_pointer::RelativePointerState
- seat::touch::TouchData
- session_lock::SessionLock
- session_lock::SessionLockData
- session_lock::SessionLockInner
- session_lock::SessionLockState
- session_lock::SessionLockSurface
- session_lock::SessionLockSurfaceConfigure
- session_lock::SessionLockSurfaceData
- shell::Unsupported
- shell::wlr_layer::Anchor
- shell::wlr_layer::LayerShell
- shell::wlr_layer::LayerSurface
- shell::wlr_layer::LayerSurfaceConfigure
- shell::wlr_layer::LayerSurfaceData
- shell::wlr_layer::UnknownLayer
- shell::xdg::XdgPositioner
- shell::xdg::XdgShell
- shell::xdg::XdgShellSurface
- shell::xdg::fallback_frame::FallbackFrame
- shell::xdg::popup::Popup
- shell::xdg::popup::PopupConfigure
- shell::xdg::popup::PopupData
- shell::xdg::window::Window
- shell::xdg::window::WindowConfigure
- shell::xdg::window::WindowData
- shm::Shm
- shm::multi::BufferSlot
- shm::multi::MultiPool
- shm::raw::RawPool
- shm::slot::Buffer
- shm::slot::Slot
- shm::slot::SlotPool
- subcompositor::SubcompositorState
- subcompositor::SubsurfaceData
Enums
- data_device_manager::data_offer::DataOfferError
- error::GlobalError
- registry::GlobalProxy
- seat::Capability
- seat::SeatError
- seat::keyboard::KeyboardError
- seat::keyboard::RepeatInfo
- seat::pointer::CursorIcon
- seat::pointer::PointerEventKind
- seat::pointer::PointerThemeError
- seat::pointer::ThemeSpec
- shell::wlr_layer::KeyboardInteractivity
- shell::wlr_layer::Layer
- shell::wlr_layer::SurfaceKind
- shell::xdg::popup::ConfigureKind
- shell::xdg::window::DecorationMode
- shell::xdg::window::WindowDecorations
- shm::CreatePoolError
- shm::multi::PoolError
- shm::slot::ActivateSlotError
- shm::slot::CreateBufferError
Traits
- activation::ActivationHandler
- activation::RequestDataExt
- compositor::CompositorHandler
- compositor::SurfaceDataExt
- data_device_manager::data_device::DataDeviceHandler
- data_device_manager::data_offer::DataOfferHandler
- data_device_manager::data_source::DataSourceDataExt
- data_device_manager::data_source::DataSourceHandler
- dmabuf::DmabufHandler
- foreign_toplevel_list::ForeignToplevelListHandler
- globals::ProvidesBoundGlobal
- output::OutputHandler
- presentation_time::PresentationTimeHandler
- primary_selection::device::PrimarySelectionDeviceHandler
- primary_selection::selection::PrimarySelectionSourceHandler
- registry::ProvidesRegistryState
- registry::RegistryHandler
- seat::SeatHandler
- seat::keyboard::KeyboardDataExt
- seat::keyboard::KeyboardHandler
- seat::pointer::PointerDataExt
- seat::pointer::PointerHandler
- seat::pointer_constraints::PointerConstraintsHandler
- seat::relative_pointer::RelativePointerHandler
- seat::touch::TouchDataExt
- seat::touch::TouchHandler
- session_lock::SessionLockHandler
- shell::WaylandSurface
- shell::wlr_layer::LayerShellHandler
- shell::xdg::XdgSurface
- shell::xdg::popup::PopupHandler
- shell::xdg::window::WindowHandler
- shm::ShmHandler
- shm::slot::CanvasKey
Macros
- delegate_activation
- delegate_compositor
- delegate_data_device
- delegate_dmabuf
- delegate_foreign_toplevel_list
- delegate_keyboard
- delegate_layer
- delegate_output
- delegate_pointer
- delegate_pointer_constraints
- delegate_presentation_time
- delegate_primary_selection
- delegate_registry
- delegate_relative_pointer
- delegate_seat
- delegate_session_lock
- delegate_shm
- delegate_simple
- delegate_subcompositor
- delegate_touch
- delegate_xdg_popup
- delegate_xdg_shell
- delegate_xdg_window
- registry_handlers
Functions
Type Aliases
Constants
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/index.html b/smithay_client_toolkit/compositor/index.html
index 55a3f94ff2..d83730cfa3 100644
--- a/smithay_client_toolkit/compositor/index.html
+++ b/smithay_client_toolkit/compositor/index.html
@@ -1 +1 @@
-smithay_client_toolkit::compositor - Rust Module smithay_client_toolkit::compositor
source · Structs§
- A trivial wrapper around a [
WlRegion
][wl_region::WlRegion]. - An owned
WlSurface
. - Data associated with a
WlSurface
.
Traits§
\ No newline at end of file
+smithay_client_toolkit::compositor - Rust Module smithay_client_toolkit::compositor
source · Structs§
- A trivial wrapper around a [
WlRegion
][wl_region::WlRegion]. - An owned
WlSurface
. - Data associated with a
WlSurface
.
Traits§
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/struct.CompositorState.html b/smithay_client_toolkit/compositor/struct.CompositorState.html
index 0d4ec70c70..7946b8c305 100644
--- a/smithay_client_toolkit/compositor/struct.CompositorState.html
+++ b/smithay_client_toolkit/compositor/struct.CompositorState.html
@@ -1,8 +1,8 @@
-CompositorState in smithay_client_toolkit::compositor - Rust pub struct CompositorState { /* private fields */ }
Implementations§
source§impl CompositorState
sourcepub const API_VERSION_MAX: u32 = 6u32
The maximum API version for WlCompositor that this object will bind.
+CompositorState in smithay_client_toolkit::compositor - Rust pub struct CompositorState { /* private fields */ }
Implementations§
source§impl CompositorState
sourcepub const API_VERSION_MAX: u32 = 6u32
The maximum API version for WlCompositor that this object will bind.
sourcepub fn bind<State>(
globals: &GlobalList,
qh: &QueueHandle<State>,
-) -> Result<CompositorState, BindError>where
+) -> Result<CompositorState, BindError>where
State: Dispatch<WlCompositor, GlobalData, State> + 'static,sourcepub fn wl_compositor(&self) -> &WlCompositor
sourcepub fn create_surface<D>(&self, qh: &QueueHandle<D>) -> WlSurfacewhere
D: Dispatch<WlSurface, SurfaceData> + 'static,
sourcepub fn create_surface_with_data<D, U>(
&self,
@@ -10,62 +10,62 @@
data: U,
) -> WlSurfacewhere
D: Dispatch<WlSurface, U> + 'static,
- U: SurfaceDataExt + 'static,
Trait Implementations§
source§impl Clone for CompositorState
source§fn clone(&self) -> CompositorState
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CompositorState
source§impl<D> Dispatch<WlCallback, WlSurface, D> for CompositorStatewhere
- D: Dispatch<WlCallback, WlSurface> + CompositorHandler,
source§fn event(
- state: &mut D,
+ U: SurfaceDataExt + 'static,
Trait Implementations§
source§impl Clone for CompositorState
source§fn clone(&self) -> CompositorState
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CompositorState
source§impl<D> Dispatch<WlCallback, WlSurface, D> for CompositorStatewhere
+ D: Dispatch<WlCallback, WlSurface> + CompositorHandler,
source§fn event(
+ state: &mut D,
_: &WlCallback,
event: Event,
surface: &WlSurface,
conn: &Connection,
qh: &QueueHandle<D>,
-)
Called when an event from the server is processed Read more§fn event_created_child(
- opcode: u16,
+)
Called when an event from the server is processed Read more§fn event_created_child(
+ opcode: u16,
_qhandle: &QueueHandle<State>,
-) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read moresource§impl<D> Dispatch<WlCompositor, GlobalData, D> for CompositorStatewhere
- D: Dispatch<WlCompositor, GlobalData> + CompositorHandler,
source§impl<D> Dispatch<WlCompositor, GlobalData, D> for CompositorStatewhere
+ D: Dispatch<WlCompositor, GlobalData> + CompositorHandler,
source§fn event(
+ _: &mut D,
_: &WlCompositor,
_: Event,
_: &GlobalData,
_: &Connection,
_: &QueueHandle<D>,
-)
Called when an event from the server is processed Read more§fn event_created_child(
- opcode: u16,
+)
Called when an event from the server is processed Read more§fn event_created_child(
+ opcode: u16,
_qhandle: &QueueHandle<State>,
-) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read moresource§impl<D, U> Dispatch<WlSurface, U, D> for CompositorState
source§impl<D, U> Dispatch<WlSurface, U, D> for CompositorStatewhere
D: Dispatch<WlSurface, U> + CompositorHandler + OutputHandler + 'static,
- U: SurfaceDataExt + 'static,
source§fn event(
- state: &mut D,
+ U: SurfaceDataExt + 'static,
source§fn event(
+ state: &mut D,
surface: &WlSurface,
event: Event,
- data: &U,
+ data: &U,
conn: &Connection,
qh: &QueueHandle<D>,
-)
Called when an event from the server is processed Read more§fn event_created_child(
- opcode: u16,
+)
Called when an event from the server is processed Read more§fn event_created_child(
+ opcode: u16,
_qhandle: &QueueHandle<State>,
-) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read moresource§impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }> for CompositorState
source§fn bound_global(&self) -> Result<WlCompositor, GlobalError>
source§fn with_min_version(&self, version: u32) -> Result<I, GlobalError>
Auto Trait Implementations§
§impl Freeze for CompositorState
§impl !RefUnwindSafe for CompositorState
§impl Send for CompositorState
§impl Sync for CompositorState
§impl Unpin for CompositorState
§impl !UnwindSafe for CompositorState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
source§impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }> for CompositorState
source§fn bound_global(&self) -> Result<WlCompositor, GlobalError>
source§fn with_min_version(&self, version: u32) -> Result<I, GlobalError>
Auto Trait Implementations§
§impl Freeze for CompositorState
§impl !RefUnwindSafe for CompositorState
§impl Send for CompositorState
§impl Sync for CompositorState
§impl Unpin for CompositorState
§impl !UnwindSafe for CompositorState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/struct.Region.html b/smithay_client_toolkit/compositor/struct.Region.html
index 7b27270ed4..ac790d786d 100644
--- a/smithay_client_toolkit/compositor/struct.Region.html
+++ b/smithay_client_toolkit/compositor/struct.Region.html
@@ -1,27 +1,27 @@
-Region in smithay_client_toolkit::compositor - Rust Struct smithay_client_toolkit::compositor::Region
source · pub struct Region(/* private fields */);
Expand description
A trivial wrapper around a [WlRegion
][wl_region::WlRegion].
+Region in smithay_client_toolkit::compositor - Rust Struct smithay_client_toolkit::compositor::Region
source · pub struct Region(/* private fields */);
Expand description
A trivial wrapper around a [WlRegion
][wl_region::WlRegion].
This destroys the region on drop.
Implementations§
source§impl Region
sourcepub fn new(
compositor: &impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }>,
-) -> Result<Region, GlobalError>
sourcepub fn add(&self, x: i32, y: i32, width: i32, height: i32)
sourcepub fn subtract(&self, x: i32, y: i32, width: i32, height: i32)
sourcepub fn wl_region(&self) -> &WlRegion
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Region
§impl !RefUnwindSafe for Region
§impl Send for Region
§impl Sync for Region
§impl Unpin for Region
§impl !UnwindSafe for Region
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Region
§impl !RefUnwindSafe for Region
§impl Send for Region
§impl Sync for Region
§impl Unpin for Region
§impl !UnwindSafe for Region
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/struct.Surface.html b/smithay_client_toolkit/compositor/struct.Surface.html
index 7cfeab728c..5c13f3ce74 100644
--- a/smithay_client_toolkit/compositor/struct.Surface.html
+++ b/smithay_client_toolkit/compositor/struct.Surface.html
@@ -1,35 +1,35 @@
-Surface in smithay_client_toolkit::compositor - Rust Struct smithay_client_toolkit::compositor::Surface
source · pub struct Surface(/* private fields */);
Expand description
An owned WlSurface
.
+Surface in smithay_client_toolkit::compositor - Rust Struct smithay_client_toolkit::compositor::Surface
source · pub struct Surface(/* private fields */);
Expand description
An owned WlSurface
.
This destroys the surface on drop.
Implementations§
source§impl Surface
sourcepub fn new<D>(
compositor: &impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }>,
qh: &QueueHandle<D>,
-) -> Result<Self, GlobalError>where
+) -> Result<Self, GlobalError>where
D: Dispatch<WlSurface, SurfaceData> + 'static,sourcepub fn with_data<D, U>(
compositor: &impl ProvidesBoundGlobal<WlCompositor, { CompositorState::API_VERSION_MAX }>,
qh: &QueueHandle<D>,
data: U,
-) -> Result<Self, GlobalError>
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Surface
§impl !RefUnwindSafe for Surface
§impl Send for Surface
§impl Sync for Surface
§impl Unpin for Surface
§impl !UnwindSafe for Surface
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+ U: Send + Sync + 'static,sourcepub fn wl_surface(&self) -> &WlSurface
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Surface
§impl !RefUnwindSafe for Surface
§impl Send for Surface
§impl Sync for Surface
§impl Unpin for Surface
§impl !UnwindSafe for Surface
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/struct.SurfaceData.html b/smithay_client_toolkit/compositor/struct.SurfaceData.html
index 739288dbeb..7fc2574aae 100644
--- a/smithay_client_toolkit/compositor/struct.SurfaceData.html
+++ b/smithay_client_toolkit/compositor/struct.SurfaceData.html
@@ -1,31 +1,31 @@
-SurfaceData in smithay_client_toolkit::compositor - Rust Struct smithay_client_toolkit::compositor::SurfaceData
source · pub struct SurfaceData { /* private fields */ }
Expand description
Data associated with a WlSurface
.
-Implementations§
source§impl SurfaceData
sourcepub fn new(parent_surface: Option<WlSurface>, scale_factor: i32) -> Self
Create a new surface that initially reports the given scale factor and parent.
-sourcepub fn scale_factor(&self) -> i32
The scale factor of the output with the highest scale factor.
+SurfaceData in smithay_client_toolkit::compositor - Rust Struct smithay_client_toolkit::compositor::SurfaceData
source · pub struct SurfaceData { /* private fields */ }
Expand description
Data associated with a WlSurface
.
+Implementations§
source§impl SurfaceData
sourcepub fn new(parent_surface: Option<WlSurface>, scale_factor: i32) -> Self
Create a new surface that initially reports the given scale factor and parent.
+sourcepub fn scale_factor(&self) -> i32
The scale factor of the output with the highest scale factor.
sourcepub fn parent_surface(&self) -> Option<&WlSurface>
The parent surface used for this surface.
+sourcepub fn parent_surface(&self) -> Option<&WlSurface>
The parent surface used for this surface.
The surface is Some
for primarily for subsurfaces,
since they must have a parent surface.
-Trait Implementations§
source§impl Debug for SurfaceData
source§impl Default for SurfaceData
source§impl SurfaceDataExt for SurfaceData
source§fn surface_data(&self) -> &SurfaceData
Auto Trait Implementations§
§impl !Freeze for SurfaceData
§impl !RefUnwindSafe for SurfaceData
§impl Send for SurfaceData
§impl Sync for SurfaceData
§impl Unpin for SurfaceData
§impl !UnwindSafe for SurfaceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
source§impl Debug for SurfaceData
source§impl Default for SurfaceData
source§impl SurfaceDataExt for SurfaceData
source§fn surface_data(&self) -> &SurfaceData
Auto Trait Implementations§
§impl !Freeze for SurfaceData
§impl !RefUnwindSafe for SurfaceData
§impl Send for SurfaceData
§impl Sync for SurfaceData
§impl Unpin for SurfaceData
§impl !UnwindSafe for SurfaceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/trait.CompositorHandler.html b/smithay_client_toolkit/compositor/trait.CompositorHandler.html
index a13213227f..8258346092 100644
--- a/smithay_client_toolkit/compositor/trait.CompositorHandler.html
+++ b/smithay_client_toolkit/compositor/trait.CompositorHandler.html
@@ -1,11 +1,11 @@
-CompositorHandler in smithay_client_toolkit::compositor - Rust pub trait CompositorHandler: Sized {
+CompositorHandler in smithay_client_toolkit::compositor - Rust pub trait CompositorHandler: Sized {
// Required methods
fn scale_factor_changed(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
surface: &WlSurface,
- new_factor: i32,
+ new_factor: i32,
);
fn transform_changed(
&mut self,
@@ -19,7 +19,7 @@
conn: &Connection,
qh: &QueueHandle<Self>,
surface: &WlSurface,
- time: u32,
+ time: u32,
);
fn surface_enter(
&mut self,
@@ -40,7 +40,7 @@
conn: &Connection,
qh: &QueueHandle<Self>,
surface: &WlSurface,
- new_factor: i32,
+ new_factor: i32,
)
The surface has either been moved into or out of an output and the output has a different scale factor.
sourcefn transform_changed(
&mut self,
@@ -54,7 +54,7 @@
conn: &Connection,
qh: &QueueHandle<Self>,
surface: &WlSurface,
- time: u32,
+ time: u32,
)
A frame callback has been completed.
Frame callbacks are used to avoid updating surfaces that are not currently visible. If a
frame callback is requested prior to committing a surface, the client should avoid drawing
@@ -77,4 +77,4 @@
surface: &WlSurface,
output: &WlOutput,
)
The surface has left an output.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/compositor/trait.SurfaceDataExt.html b/smithay_client_toolkit/compositor/trait.SurfaceDataExt.html
index 5eb0537b65..7a68e64d52 100644
--- a/smithay_client_toolkit/compositor/trait.SurfaceDataExt.html
+++ b/smithay_client_toolkit/compositor/trait.SurfaceDataExt.html
@@ -1,4 +1,4 @@
-SurfaceDataExt in smithay_client_toolkit::compositor - Rust pub trait SurfaceDataExt: Send + Sync {
+SurfaceDataExt in smithay_client_toolkit::compositor - Rust pub trait SurfaceDataExt: Send + Sync {
// Required method
fn surface_data(&self) -> &SurfaceData;
}
Required Methods§
sourcefn surface_data(&self) -> &SurfaceData
Implementors§
source§impl SurfaceDataExt for SurfaceData
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_device/index.html b/smithay_client_toolkit/data_device_manager/data_device/index.html
index 0696d91fa5..dee885d38f 100644
--- a/smithay_client_toolkit/data_device_manager/data_device/index.html
+++ b/smithay_client_toolkit/data_device_manager/data_device/index.html
@@ -1 +1 @@
-smithay_client_toolkit::data_device_manager::data_device - Rust
\ No newline at end of file
+smithay_client_toolkit::data_device_manager::data_device - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_device/struct.DataDevice.html b/smithay_client_toolkit/data_device_manager/data_device/struct.DataDevice.html
index 9f21f1e9af..bea25abbc5 100644
--- a/smithay_client_toolkit/data_device_manager/data_device/struct.DataDevice.html
+++ b/smithay_client_toolkit/data_device_manager/data_device/struct.DataDevice.html
@@ -1,26 +1,25 @@
-DataDevice in smithay_client_toolkit::data_device_manager::data_device - Rust pub struct DataDevice { /* private fields */ }
Implementations§
source§impl DataDevice
sourcepub fn data(&self) -> &DataDeviceData
sourcepub fn unset_selection(&self, serial: u32)
Unset the selection of the provided data device as a response to the event with with provided serial.
-sourcepub fn inner(&self) -> &WlDataDevice
Trait Implementations§
source§impl Debug for DataDevice
source§impl Drop for DataDevice
source§impl PartialEq for DataDevice
source§fn eq(&self, other: &DataDevice) -> bool
This method tests for self
and other
values to be equal, and is used
-by ==
.source§impl Eq for DataDevice
source§impl StructuralPartialEq for DataDevice
Auto Trait Implementations§
§impl Freeze for DataDevice
§impl !RefUnwindSafe for DataDevice
§impl Send for DataDevice
§impl Sync for DataDevice
§impl Unpin for DataDevice
§impl !UnwindSafe for DataDevice
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+DataDevice in smithay_client_toolkit::data_device_manager::data_device - Rust pub struct DataDevice { /* private fields */ }
Implementations§
source§impl DataDevice
sourcepub fn data(&self) -> &DataDeviceData
sourcepub fn unset_selection(&self, serial: u32)
Unset the selection of the provided data device as a response to the event with with provided serial.
+sourcepub fn inner(&self) -> &WlDataDevice
Trait Implementations§
source§impl Debug for DataDevice
source§impl Drop for DataDevice
source§impl PartialEq for DataDevice
source§impl Eq for DataDevice
source§impl StructuralPartialEq for DataDevice
Auto Trait Implementations§
§impl Freeze for DataDevice
§impl !RefUnwindSafe for DataDevice
§impl Send for DataDevice
§impl Sync for DataDevice
§impl Unpin for DataDevice
§impl !UnwindSafe for DataDevice
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_device/struct.DataDeviceData.html b/smithay_client_toolkit/data_device_manager/data_device/struct.DataDeviceData.html
index e3f19d8983..6fbca23117 100644
--- a/smithay_client_toolkit/data_device_manager/data_device/struct.DataDeviceData.html
+++ b/smithay_client_toolkit/data_device_manager/data_device/struct.DataDeviceData.html
@@ -1,37 +1,37 @@
-DataDeviceData in smithay_client_toolkit::data_device_manager::data_device - Rust pub struct DataDeviceData { /* private fields */ }
Implementations§
source§impl DataDeviceData
sourcepub fn drag_offer(&self) -> Option<DragOffer>
Get the active dnd offer if it exists.
-sourcepub fn selection_offer(&self) -> Option<SelectionOffer>
Get the active selection offer if it exists.
-Trait Implementations§
source§impl Debug for DataDeviceData
source§impl<D> Dispatch<WlDataDevice, DataDeviceData, D> for DataDeviceManagerStatewhere
+DataDeviceData in smithay_client_toolkit::data_device_manager::data_device - Rust pub struct DataDeviceData { /* private fields */ }
Implementations§
source§impl DataDeviceData
sourcepub fn drag_offer(&self) -> Option<DragOffer>
Get the active dnd offer if it exists.
+sourcepub fn selection_offer(&self) -> Option<SelectionOffer>
Get the active selection offer if it exists.
+Trait Implementations§
source§impl Debug for DataDeviceData
source§impl<D> Dispatch<WlDataDevice, DataDeviceData, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataDevice, DataDeviceData> + Dispatch<WlDataOffer, DataOfferData> + DataDeviceHandler + DataOfferHandler + 'static,
source§fn event_created_child(
- opcode: u16,
+ opcode: u16,
qhandle: &QueueHandle<D>,
-) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read moreAuto Trait Implementations§
§impl Freeze for DataDeviceData
§impl !RefUnwindSafe for DataDeviceData
§impl Send for DataDeviceData
§impl Sync for DataDeviceData
§impl Unpin for DataDeviceData
§impl !UnwindSafe for DataDeviceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+)Called when an event from the server is processed Read moreAuto Trait Implementations§
§impl Freeze for DataDeviceData
§impl !RefUnwindSafe for DataDeviceData
§impl Send for DataDeviceData
§impl Sync for DataDeviceData
§impl Unpin for DataDeviceData
§impl !UnwindSafe for DataDeviceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.html b/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.html
index 77a1dbe1f8..ef762192f7 100644
--- a/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.html
+++ b/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.html
@@ -1,12 +1,12 @@
-DataDeviceHandler in smithay_client_toolkit::data_device_manager::data_device - Rust pub trait DataDeviceHandler: Sized {
+DataDeviceHandler in smithay_client_toolkit::data_device_manager::data_device - Rust pub trait DataDeviceHandler: Sized {
// Required methods
fn enter(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
data_device: &WlDataDevice,
- x: f64,
- y: f64,
+ x: f64,
+ y: f64,
wl_surface: &WlSurface,
);
fn leave(
@@ -20,8 +20,8 @@
conn: &Connection,
qh: &QueueHandle<Self>,
data_device: &WlDataDevice,
- x: f64,
- y: f64,
+ x: f64,
+ y: f64,
);
fn selection(
&mut self,
@@ -42,8 +42,8 @@
conn: &Connection,
qh: &QueueHandle<Self>,
data_device: &WlDataDevice,
- x: f64,
- y: f64,
+ x: f64,
+ y: f64,
wl_surface: &WlSurface,
)
The data device pointer has entered a surface at the provided location
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/enum.DataOfferError.html b/smithay_client_toolkit/data_device_manager/data_offer/enum.DataOfferError.html
index 80000a4544..cbf016638d 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/enum.DataOfferError.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/enum.DataOfferError.html
@@ -1,28 +1,28 @@
-DataOfferError in smithay_client_toolkit::data_device_manager::data_offer - Rust pub enum DataOfferError {
+DataOfferError in smithay_client_toolkit::data_device_manager::data_offer - Rust pub enum DataOfferError {
InvalidReceive,
- Io(Error),
+ Io(Error),
}
Expand description
An error that may occur when working with data offers.
-Variants§
Trait Implementations§
source§impl Debug for DataOfferError
source§impl Display for DataOfferError
source§impl Error for DataOfferError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for DataOfferError
§impl !RefUnwindSafe for DataOfferError
§impl Send for DataOfferError
§impl Sync for DataOfferError
§impl Unpin for DataOfferError
§impl !UnwindSafe for DataOfferError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Variants§
Trait Implementations§
source§impl Debug for DataOfferError
source§impl Display for DataOfferError
source§impl Error for DataOfferError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for DataOfferError
§impl !RefUnwindSafe for DataOfferError
§impl Send for DataOfferError
§impl Sync for DataOfferError
§impl Unpin for DataOfferError
§impl !UnwindSafe for DataOfferError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/fn.receive.html b/smithay_client_toolkit/data_device_manager/data_offer/fn.receive.html
index 58f9821b7f..1e7cd31046 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/fn.receive.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/fn.receive.html
@@ -1,4 +1,4 @@
-receive in smithay_client_toolkit::data_device_manager::data_offer - Rust Function smithay_client_toolkit::data_device_manager::data_offer::receive
source · pub fn receive(offer: &WlDataOffer, mime_type: String) -> Result<ReadPipe>
Expand description
Request to receive the data of a given mime type.
+receive in smithay_client_toolkit::data_device_manager::data_offer - Rust Function smithay_client_toolkit::data_device_manager::data_offer::receive
source · pub fn receive(offer: &WlDataOffer, mime_type: String) -> Result<ReadPipe>
Expand description
Request to receive the data of a given mime type.
You can do this several times, as a reaction to motion of
the dnd cursor, or to inspect the data in order to choose your
response.
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/fn.receive_to_fd.html b/smithay_client_toolkit/data_device_manager/data_offer/fn.receive_to_fd.html
index 64381b9e16..3e73b4fce4 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/fn.receive_to_fd.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/fn.receive_to_fd.html
@@ -1,4 +1,4 @@
-receive_to_fd in smithay_client_toolkit::data_device_manager::data_offer - Rust pub fn receive_to_fd(offer: &WlDataOffer, mime_type: String, writefd: OwnedFd)
Expand description
Receive data to the write end of a raw file descriptor. If you have the read end, you can read from it.
+receive_to_fd in smithay_client_toolkit::data_device_manager::data_offer - Rust pub fn receive_to_fd(offer: &WlDataOffer, mime_type: String, writefd: OwnedFd)
Expand description
Receive data to the write end of a raw file descriptor. If you have the read end, you can read from it.
You can do this several times, as a reaction to motion of
the dnd cursor, or to inspect the data in order to choose your
response.
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/index.html b/smithay_client_toolkit/data_device_manager/data_offer/index.html
index ef6ab28ee5..0df7694d7c 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/index.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/index.html
@@ -1 +1 @@
-smithay_client_toolkit::data_device_manager::data_offer - Rust
\ No newline at end of file
+smithay_client_toolkit::data_device_manager::data_offer - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/struct.DataDeviceOfferInner.html b/smithay_client_toolkit/data_device_manager/data_offer/struct.DataDeviceOfferInner.html
index 43669f6749..15b3c70d78 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/struct.DataDeviceOfferInner.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/struct.DataDeviceOfferInner.html
@@ -1,23 +1,23 @@
-DataDeviceOfferInner in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DataDeviceOfferInner { /* private fields */ }
Trait Implementations§
source§impl Debug for DataDeviceOfferInner
source§impl Default for DataDeviceOfferInner
source§fn default() -> DataDeviceOfferInner
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DataDeviceOfferInner
§impl !RefUnwindSafe for DataDeviceOfferInner
§impl Send for DataDeviceOfferInner
§impl Sync for DataDeviceOfferInner
§impl Unpin for DataDeviceOfferInner
§impl !UnwindSafe for DataDeviceOfferInner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+DataDeviceOfferInner in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DataDeviceOfferInner { /* private fields */ }
Trait Implementations§
source§impl Debug for DataDeviceOfferInner
source§impl Default for DataDeviceOfferInner
source§fn default() -> DataDeviceOfferInner
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DataDeviceOfferInner
§impl !RefUnwindSafe for DataDeviceOfferInner
§impl Send for DataDeviceOfferInner
§impl Sync for DataDeviceOfferInner
§impl Unpin for DataDeviceOfferInner
§impl !UnwindSafe for DataDeviceOfferInner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/struct.DataOfferData.html b/smithay_client_toolkit/data_device_manager/data_offer/struct.DataOfferData.html
index cfa28bb5d4..e8d69e85e0 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/struct.DataOfferData.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/struct.DataOfferData.html
@@ -1,35 +1,35 @@
-DataOfferData in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DataOfferData { /* private fields */ }
Implementations§
source§impl DataOfferData
sourcepub fn with_mime_types<T, F: Fn(&[String]) -> T>(&self, callback: F) -> T
Inspect the mime types available on the given offer.
-Trait Implementations§
source§impl Debug for DataOfferData
source§impl Default for DataOfferData
source§fn default() -> DataOfferData
Returns the “default value” for a type. Read moresource§impl<D> Dispatch<WlDataOffer, DataOfferData, D> for DataDeviceManagerStatewhere
+DataOfferData in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DataOfferData { /* private fields */ }
Implementations§
source§impl DataOfferData
sourcepub fn with_mime_types<T, F: Fn(&[String]) -> T>(&self, callback: F) -> T
Inspect the mime types available on the given offer.
+Trait Implementations§
source§impl Debug for DataOfferData
source§impl Default for DataOfferData
source§fn default() -> DataOfferData
Returns the “default value” for a type. Read moresource§impl<D> Dispatch<WlDataOffer, DataOfferData, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataOffer, DataOfferData> + DataOfferHandler,
Auto Trait Implementations§
§impl Freeze for DataOfferData
§impl RefUnwindSafe for DataOfferData
§impl Send for DataOfferData
§impl Sync for DataOfferData
§impl Unpin for DataOfferData
§impl UnwindSafe for DataOfferData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Auto Trait Implementations§
§impl Freeze for DataOfferData
§impl RefUnwindSafe for DataOfferData
§impl Send for DataOfferData
§impl Sync for DataOfferData
§impl Unpin for DataOfferData
§impl UnwindSafe for DataOfferData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/struct.DragOffer.html b/smithay_client_toolkit/data_device_manager/data_offer/struct.DragOffer.html
index c3c854337a..46761ffbf3 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/struct.DragOffer.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/struct.DragOffer.html
@@ -1,59 +1,58 @@
-DragOffer in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DragOffer {
- pub serial: u32,
+DragOffer in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct DragOffer {
+ pub serial: u32,
pub surface: WlSurface,
- pub x: f64,
- pub y: f64,
- pub time: Option<u32>,
+ pub x: f64,
+ pub y: f64,
+ pub time: Option<u32>,
pub source_actions: DndAction,
pub selected_action: DndAction,
- pub dropped: bool,
- pub left: bool,
+ pub dropped: bool,
+ pub left: bool,
/* private fields */
-}
Fields§
§serial: u32
the serial for this data offer’s enter event
+}Fields§
§serial: u32
the serial for this data offer’s enter event
§surface: WlSurface
the surface that this DnD is active on
-§x: f64
the x position on the surface
-§y: f64
the y position on this surface
-§time: Option<u32>
the timestamp a motion event was received in millisecond granularity
+§x: f64
the x position on the surface
+§y: f64
the y position on this surface
+§time: Option<u32>
the timestamp a motion event was received in millisecond granularity
§source_actions: DndAction
the advertised drag actions
§selected_action: DndAction
the compositor selected drag action
-§dropped: bool
whether or not the drag has been dropped
-§left: bool
whether or not the drag has left
-Implementations§
source§impl DragOffer
sourcepub fn finish(&self)
sourcepub fn with_mime_types<T, F: Fn(&[String]) -> T>(&self, callback: F) -> T
Inspect the mime types available on the given offer.
+§dropped: bool
whether or not the drag has been dropped
+§left: bool
whether or not the drag has left
+Implementations§
source§impl DragOffer
sourcepub fn finish(&self)
sourcepub fn with_mime_types<T, F: Fn(&[String]) -> T>(&self, callback: F) -> T
Inspect the mime types available on the given offer.
sourcepub fn set_actions(&self, actions: DndAction, preferred_action: DndAction)
Set the accepted and preferred drag and drop actions.
This request determines the final result of the drag-and-drop operation.
If the end result is that no action is accepted, the drag source will receive wl_data_source.cancelled.
-sourcepub fn receive(&self, mime_type: String) -> Result<ReadPipe>
Receive data with the given mime type.
+
sourcepub fn receive(&self, mime_type: String) -> Result<ReadPipe>
Receive data with the given mime type.
This request may happen multiple times for different mime types, both before and after wl_data_device.drop.
Drag-and-drop destination clients may preemptively fetch data or examine it more closely to determine acceptance.
-sourcepub fn accept_mime_type(&self, serial: u32, mime_type: Option<String>)
Accept the given mime type, or None to reject the offer.
+
sourcepub fn accept_mime_type(&self, serial: u32, mime_type: Option<String>)
Accept the given mime type, or None to reject the offer.
In version 2, this request is used for feedback, but doesn’t affect the final result of the drag-and-drop operation.
In version 3, this request determines the final result of the drag-and-drop operation.
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for DragOffer
§impl !RefUnwindSafe for DragOffer
§impl Send for DragOffer
§impl Sync for DragOffer
§impl Unpin for DragOffer
§impl !UnwindSafe for DragOffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
Auto Trait Implementations§
§impl Freeze for DragOffer
§impl !RefUnwindSafe for DragOffer
§impl Send for DragOffer
§impl Sync for DragOffer
§impl Unpin for DragOffer
§impl !UnwindSafe for DragOffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/struct.SelectionOffer.html b/smithay_client_toolkit/data_device_manager/data_offer/struct.SelectionOffer.html
index 6f2f903465..6780461949 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/struct.SelectionOffer.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/struct.SelectionOffer.html
@@ -1,28 +1,27 @@
-SelectionOffer in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct SelectionOffer { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for SelectionOffer
source§fn clone(&self) -> SelectionOffer
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SelectionOffer
Auto Trait Implementations§
§impl Freeze for SelectionOffer
§impl !RefUnwindSafe for SelectionOffer
§impl Send for SelectionOffer
§impl Sync for SelectionOffer
§impl Unpin for SelectionOffer
§impl !UnwindSafe for SelectionOffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+SelectionOffer in smithay_client_toolkit::data_device_manager::data_offer - Rust pub struct SelectionOffer { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for SelectionOffer
source§fn clone(&self) -> SelectionOffer
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for SelectionOffer
source§impl PartialEq for SelectionOffer
Auto Trait Implementations§
§impl Freeze for SelectionOffer
§impl !RefUnwindSafe for SelectionOffer
§impl Send for SelectionOffer
§impl Sync for SelectionOffer
§impl Unpin for SelectionOffer
§impl !UnwindSafe for SelectionOffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.html b/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.html
index 062fe4ebbb..92be342a88 100644
--- a/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.html
+++ b/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.html
@@ -1,4 +1,4 @@
-DataOfferHandler in smithay_client_toolkit::data_device_manager::data_offer - Rust pub trait DataOfferHandler: Sized {
+DataOfferHandler in smithay_client_toolkit::data_device_manager::data_offer - Rust pub trait DataOfferHandler: Sized {
// Required methods
fn source_actions(
&mut self,
@@ -40,4 +40,4 @@
preference, then calls set_actions & accept each one last time. Finally,
the destination may then request data to be sent and finishing the data
offer
-
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/index.html b/smithay_client_toolkit/data_device_manager/data_source/index.html
index 293c06bdd7..2e107a35a5 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/index.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/index.html
@@ -1 +1 @@
-smithay_client_toolkit::data_device_manager::data_source - Rust
\ No newline at end of file
+smithay_client_toolkit::data_device_manager::data_source - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/struct.CopyPasteSource.html b/smithay_client_toolkit/data_device_manager/data_source/struct.CopyPasteSource.html
index e0ddb1d56f..4e8bf01b05 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/struct.CopyPasteSource.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/struct.CopyPasteSource.html
@@ -1,28 +1,27 @@
-CopyPasteSource in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct CopyPasteSource { /* private fields */ }
Implementations§
source§impl CopyPasteSource
sourcepub fn set_selection(&self, device: &DataDevice, serial: u32)
Set the selection of the provided data device as a response to the event with with provided serial.
-sourcepub fn inner(&self) -> &WlDataSource
Trait Implementations§
source§impl Clone for CopyPasteSource
source§fn clone(&self) -> CopyPasteSource
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CopyPasteSource
source§impl Drop for CopyPasteSource
source§impl PartialEq for CopyPasteSource
source§fn eq(&self, other: &CopyPasteSource) -> bool
This method tests for self
and other
values to be equal, and is used
-by ==
.source§impl Eq for CopyPasteSource
source§impl StructuralPartialEq for CopyPasteSource
Auto Trait Implementations§
§impl Freeze for CopyPasteSource
§impl !RefUnwindSafe for CopyPasteSource
§impl Send for CopyPasteSource
§impl Sync for CopyPasteSource
§impl Unpin for CopyPasteSource
§impl !UnwindSafe for CopyPasteSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+CopyPasteSource in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct CopyPasteSource { /* private fields */ }
Implementations§
source§impl CopyPasteSource
sourcepub fn set_selection(&self, device: &DataDevice, serial: u32)
Set the selection of the provided data device as a response to the event with with provided serial.
+sourcepub fn inner(&self) -> &WlDataSource
Trait Implementations§
source§impl Clone for CopyPasteSource
source§fn clone(&self) -> CopyPasteSource
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CopyPasteSource
source§impl Drop for CopyPasteSource
source§impl PartialEq for CopyPasteSource
source§impl Eq for CopyPasteSource
source§impl StructuralPartialEq for CopyPasteSource
Auto Trait Implementations§
§impl Freeze for CopyPasteSource
§impl !RefUnwindSafe for CopyPasteSource
§impl Send for CopyPasteSource
§impl Sync for CopyPasteSource
§impl Unpin for CopyPasteSource
§impl !UnwindSafe for CopyPasteSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/struct.DataSourceData.html b/smithay_client_toolkit/data_device_manager/data_source/struct.DataSourceData.html
index 748bf0a150..e4c28a3bca 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/struct.DataSourceData.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/struct.DataSourceData.html
@@ -1,23 +1,23 @@
-DataSourceData in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct DataSourceData {}
Trait Implementations§
source§impl DataSourceDataExt for DataSourceData
source§fn data_source_data(&self) -> &DataSourceData
source§impl Debug for DataSourceData
source§impl Default for DataSourceData
source§fn default() -> DataSourceData
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DataSourceData
§impl RefUnwindSafe for DataSourceData
§impl Send for DataSourceData
§impl Sync for DataSourceData
§impl Unpin for DataSourceData
§impl UnwindSafe for DataSourceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+DataSourceData in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct DataSourceData {}
Trait Implementations§
source§impl DataSourceDataExt for DataSourceData
source§fn data_source_data(&self) -> &DataSourceData
source§impl Debug for DataSourceData
source§impl Default for DataSourceData
source§fn default() -> DataSourceData
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DataSourceData
§impl RefUnwindSafe for DataSourceData
§impl Send for DataSourceData
§impl Sync for DataSourceData
§impl Unpin for DataSourceData
§impl UnwindSafe for DataSourceData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/struct.DragSource.html b/smithay_client_toolkit/data_device_manager/data_source/struct.DragSource.html
index 5cb23baba4..d7879eaa12 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/struct.DragSource.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/struct.DragSource.html
@@ -1,47 +1,46 @@
-DragSource in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct DragSource { /* private fields */ }
Implementations§
source§impl DragSource
sourcepub fn start_drag(
+DragSource in smithay_client_toolkit::data_device_manager::data_source - Rust pub struct DragSource { /* private fields */ }
Implementations§
source§impl DragSource
sourcepub fn start_drag(
&self,
device: &DataDevice,
origin: &WlSurface,
- icon: Option<&WlSurface>,
- serial: u32,
+ icon: Option<&WlSurface>,
+ serial: u32,
)
Start a normal drag and drop operation.
This can be used for both intra-client DnD or inter-client Dnd.
The drag is cancelled when the DragSource is dropped.
sourcepub fn start_internal_drag(
device: &DataDevice,
origin: &WlSurface,
- icon: Option<&WlSurface>,
- serial: u32,
+ icon: Option<&WlSurface>,
+ serial: u32,
)
Start an internal drag and drop operation.
This will pass a NULL source, and the client is expected to handle data passing internally.
Only Enter, Leave, & Motion events will be sent to the client
sourcepub fn set_actions(&self, dnd_actions: DndAction)
Set the actions that this drag source supports.
This can only be done once, and must be done before the drag is started.
Trait Implementations§
source§impl Clone for DragSource
source§fn clone(&self) -> DragSource
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DragSource
source§impl Drop for DragSource
source§impl PartialEq for DragSource
source§fn eq(&self, other: &DragSource) -> bool
This method tests for self
and other
values to be equal, and is used
-by ==
.source§impl Eq for DragSource
source§impl StructuralPartialEq for DragSource
Auto Trait Implementations§
§impl Freeze for DragSource
§impl !RefUnwindSafe for DragSource
§impl Send for DragSource
§impl Sync for DragSource
§impl Unpin for DragSource
§impl !UnwindSafe for DragSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
source§impl Clone for DragSource
source§fn clone(&self) -> DragSource
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DragSource
source§impl Drop for DragSource
source§impl PartialEq for DragSource
source§impl Eq for DragSource
source§impl StructuralPartialEq for DragSource
Auto Trait Implementations§
§impl Freeze for DragSource
§impl !RefUnwindSafe for DragSource
§impl Send for DragSource
§impl Sync for DragSource
§impl Unpin for DragSource
§impl !UnwindSafe for DragSource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.html b/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.html
index ca9d1b86ff..694cb5da01 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.html
@@ -1,4 +1,4 @@
-DataSourceDataExt in smithay_client_toolkit::data_device_manager::data_source - Rust pub trait DataSourceDataExt: Send + Sync {
+DataSourceDataExt in smithay_client_toolkit::data_device_manager::data_source - Rust pub trait DataSourceDataExt: Send + Sync {
// Required method
fn data_source_data(&self) -> &DataSourceData;
}
Required Methods§
sourcefn data_source_data(&self) -> &DataSourceData
Implementors§
source§impl DataSourceDataExt for DataSourceData
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.html b/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.html
index c1e44a186b..f248284291 100644
--- a/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.html
+++ b/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.html
@@ -1,18 +1,18 @@
-DataSourceHandler in smithay_client_toolkit::data_device_manager::data_source - Rust pub trait DataSourceHandler: Sized {
+DataSourceHandler in smithay_client_toolkit::data_device_manager::data_source - Rust pub trait DataSourceHandler: Sized {
// Required methods
fn accept_mime(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
source: &WlDataSource,
- mime: Option<String>,
+ mime: Option<String>,
);
fn send_request(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
source: &WlDataSource,
- mime: String,
+ mime: String,
fd: WritePipe,
);
fn cancelled(
@@ -47,14 +47,14 @@
conn: &Connection,
qh: &QueueHandle<Self>,
source: &WlDataSource,
- mime: Option<String>,
+ mime: Option<String>,
)
This may be called multiple times, once for each accepted mime type from the destination, if any.
sourcefn send_request(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
source: &WlDataSource,
- mime: String,
+ mime: String,
fd: WritePipe,
)
The client has requested the data for this source to be sent.
Send the data, then close the fd.
@@ -86,4 +86,4 @@
source: &WlDataSource,
action: DndAction,
)An action was selected by the compositor.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+
Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/index.html b/smithay_client_toolkit/data_device_manager/index.html
index 593befa74d..af2b953660 100644
--- a/smithay_client_toolkit/data_device_manager/index.html
+++ b/smithay_client_toolkit/data_device_manager/index.html
@@ -1,3 +1,3 @@
-smithay_client_toolkit::data_device_manager - Rust Modules§
Structs§
- If the
calloop
cargo feature is enabled, this can be used
-as an EventSource
in a calloop event loop. - If the
calloop
cargo feature is enabled, this can be used
+smithay_client_toolkit::data_device_manager - Rust
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/struct.DataDeviceManagerState.html b/smithay_client_toolkit/data_device_manager/struct.DataDeviceManagerState.html
index 2d55f26231..659551e638 100644
--- a/smithay_client_toolkit/data_device_manager/struct.DataDeviceManagerState.html
+++ b/smithay_client_toolkit/data_device_manager/struct.DataDeviceManagerState.html
@@ -1,17 +1,17 @@
-DataDeviceManagerState in smithay_client_toolkit::data_device_manager - Rust pub struct DataDeviceManagerState { /* private fields */ }
Implementations§
source§impl DataDeviceManagerState
sourcepub fn bind<State>(
+DataDeviceManagerState in smithay_client_toolkit::data_device_manager - Rust pub struct DataDeviceManagerState { /* private fields */ }
Implementations§
source§impl DataDeviceManagerState
sourcepub fn bind<State>(
globals: &GlobalList,
qh: &QueueHandle<State>,
-) -> Result<Self, BindError>where
- State: Dispatch<WlDataDeviceManager, GlobalData, State> + 'static,
sourcepub fn data_device_manager(&self) -> &WlDataDeviceManager
sourcepub fn create_copy_paste_source<D, T: ToString>(
+) -> Result<Self, BindError>where
+ State: Dispatch<WlDataDeviceManager, GlobalData, State> + 'static,
sourcepub fn data_device_manager(&self) -> &WlDataDeviceManager
sourcepub fn create_copy_paste_source<D, T: ToString>(
&self,
qh: &QueueHandle<D>,
- mime_types: impl IntoIterator<Item = T>,
+ mime_types: impl IntoIterator<Item = T>,
) -> CopyPasteSourcewhere
D: Dispatch<WlDataSource, DataSourceData> + 'static,
creates a data source for copy paste
-sourcepub fn create_drag_and_drop_source<D, T: ToString>(
+
sourcepub fn create_drag_and_drop_source<D, T: ToString>(
&self,
qh: &QueueHandle<D>,
- mime_types: impl IntoIterator<Item = T>,
+ mime_types: impl IntoIterator<Item = T>,
dnd_actions: DndAction,
) -> DragSourcewhere
D: Dispatch<WlDataSource, DataSourceData> + 'static,
creates a data source for drag and drop
@@ -21,71 +21,71 @@
seat: &WlSeat,
) -> DataDevicewhere
D: Dispatch<WlDataDevice, DataDeviceData> + 'static,create a new data device for a given seat
-Trait Implementations§
source§impl Debug for DataDeviceManagerState
source§impl<D> Dispatch<WlDataDevice, DataDeviceData, D> for DataDeviceManagerStatewhere
+
Trait Implementations§
source§impl Debug for DataDeviceManagerState
source§impl<D> Dispatch<WlDataDevice, DataDeviceData, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataDevice, DataDeviceData> + Dispatch<WlDataOffer, DataOfferData> + DataDeviceHandler + DataOfferHandler + 'static,
source§fn event_created_child(
- opcode: u16,
+ opcode: u16,
qhandle: &QueueHandle<D>,
-) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read moresource§impl<D> Dispatch<WlDataDeviceManager, GlobalData, D> for DataDeviceManagerStatewhere
- D: Dispatch<WlDataDeviceManager, GlobalData>,
source§fn event(
- _state: &mut D,
+ D: Dispatch<WlDataDeviceManager, GlobalData>,
source§fn event(
+ _state: &mut D,
_proxy: &WlDataDeviceManager,
_event: <WlDataDeviceManager as Proxy>::Event,
_data: &GlobalData,
_conn: &Connection,
_qhandle: &QueueHandle<D>,
-)
Called when an event from the server is processed Read more§fn event_created_child(
- opcode: u16,
+)
Called when an event from the server is processed Read more§fn event_created_child(
+ opcode: u16,
_qhandle: &QueueHandle<State>,
-) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read moresource§impl<D> Dispatch<WlDataOffer, DataOfferData, D> for DataDeviceManagerStatewhere
- D: Dispatch<WlDataOffer, DataOfferData> + DataOfferHandler,
source§impl<D> Dispatch<WlDataOffer, DataOfferData, D> for DataDeviceManagerStatewhere
+ D: Dispatch<WlDataOffer, DataOfferData> + DataOfferHandler,
source§fn event(
+ state: &mut D,
_offer: &WlDataOffer,
event: <WlDataOffer as Proxy>::Event,
data: &DataOfferData,
conn: &Connection,
qh: &QueueHandle<D>,
-)
Called when an event from the server is processed Read more§fn event_created_child(
- opcode: u16,
+)
Called when an event from the server is processed Read more§fn event_created_child(
+ opcode: u16,
_qhandle: &QueueHandle<State>,
-) -> Arc<dyn ObjectData>
Method used to initialize the user-data of objects created by events Read moresource§impl<D, U> Dispatch<WlDataSource, U, D> for DataDeviceManagerState
source§impl<D, U> Dispatch<WlDataSource, U, D> for DataDeviceManagerStatewhere
D: Dispatch<WlDataSource, U> + DataSourceHandler,
U: DataSourceDataExt,
source§impl ProvidesBoundGlobal<WlDataDeviceManager, 3> for DataDeviceManagerState
source§fn bound_global(&self) -> Result<WlDataDeviceManager, GlobalError>
source§fn with_min_version(&self, version: u32) -> Result<I, GlobalError>
Auto Trait Implementations§
§impl Freeze for DataDeviceManagerState
§impl !RefUnwindSafe for DataDeviceManagerState
§impl Send for DataDeviceManagerState
§impl Sync for DataDeviceManagerState
§impl Unpin for DataDeviceManagerState
§impl !UnwindSafe for DataDeviceManagerState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
source§impl ProvidesBoundGlobal<WlDataDeviceManager, 3> for DataDeviceManagerState
source§fn bound_global(&self) -> Result<WlDataDeviceManager, GlobalError>
source§fn with_min_version(&self, version: u32) -> Result<I, GlobalError>
Auto Trait Implementations§
§impl Freeze for DataDeviceManagerState
§impl !RefUnwindSafe for DataDeviceManagerState
§impl Send for DataDeviceManagerState
§impl Sync for DataDeviceManagerState
§impl Unpin for DataDeviceManagerState
§impl !UnwindSafe for DataDeviceManagerState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/struct.ReadPipe.html b/smithay_client_toolkit/data_device_manager/struct.ReadPipe.html
index 11f5ba255d..9b770bc596 100644
--- a/smithay_client_toolkit/data_device_manager/struct.ReadPipe.html
+++ b/smithay_client_toolkit/data_device_manager/struct.ReadPipe.html
@@ -1,53 +1,53 @@
-ReadPipe in smithay_client_toolkit::data_device_manager - Rust pub struct ReadPipe { /* private fields */ }
Expand description
If the calloop
cargo feature is enabled, this can be used
+
ReadPipe in smithay_client_toolkit::data_device_manager - Rust pub struct ReadPipe { /* private fields */ }
Expand description
If the calloop
cargo feature is enabled, this can be used
as an EventSource
in a calloop event loop.
-Trait Implementations§
source§impl AsFd for ReadPipe
source§fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read moresource§impl EventSource for ReadPipe
§type Error = Error
The error type returned from
-process_events()
(not the user callback!).source§fn process_events<F>(
+
Trait Implementations§
source§impl AsFd for ReadPipe
source§fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read moresource§impl EventSource for ReadPipe
source§type Error = Error
The error type returned from
+process_events()
(not the user callback!).source§fn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F,
-) -> Result<PostAction>
Process any relevant events Read moresource§fn register(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory,
-) -> Result<()>
Register yourself to this poll instance Read moresource§fn reregister(
+) -> Result<()>
Register yourself to this poll instance Read moresource§fn reregister(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory,
-) -> Result<()>
Re-register your file descriptors Read moresource§fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more§const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = false
Whether this source needs to be sent the [EventSource::before_sleep
]
+) -> Result<()>Re-register your file descriptors Read moresource§fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more§const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = false
Whether this source needs to be sent the [EventSource::before_sleep
]
and [EventSource::before_handle_events
] notifications. These are opt-in because
-they require more expensive checks, and almost all sources will not need these notifications§fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>
Notification that a single poll
is about to begin Read more§fn before_handle_events(&mut self, events: EventIterator<'_>)
Notification that polling is complete, and [EventSource::process_events
] will
+they require more expensive checks, and almost all sources will not need these notifications§fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>
Notification that a single poll
is about to begin Read more§fn before_handle_events(&mut self, events: EventIterator<'_>)
Notification that polling is complete, and [EventSource::process_events
] will
be called with the given events for this source. The iterator may be empty,
-which indicates that no events were generated for this source Read moresource§impl IntoRawFd for ReadPipe
source§fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read moresource§impl Read for ReadPipe
source§fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Pull some bytes from this source into the specified buffer, returning
-how many bytes were read. Read more1.36.0 · source§fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
Like read
, except that it reads into a slice of buffers. Read moresource§fn is_read_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (can_vector
)1.0.0 · source§fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
Read all bytes until EOF in this source, placing them into buf
. Read more1.0.0 · source§fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
Read all bytes until EOF in this source, appending them to buf
. Read more1.6.0 · source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
Read the exact number of bytes required to fill buf
. Read moresource§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (read_buf
)Pull some bytes from this source into the specified buffer. Read moresource§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (read_buf
)Read the exact number of bytes required to fill cursor
. Read more1.0.0 · source§fn by_ref(&mut self) -> &mut Selfwhere
- Self: Sized,
Creates a “by reference” adaptor for this instance of Read
. Read moreAuto Trait Implementations§
§impl Freeze for ReadPipe
§impl RefUnwindSafe for ReadPipe
§impl Send for ReadPipe
§impl Sync for ReadPipe
§impl Unpin for ReadPipe
§impl UnwindSafe for ReadPipe
Blanket Implementations§
§impl<T> AsSource for Twhere
- T: AsFd,
§fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+which indicates that no events were generated for this source Read moresource§impl IntoRawFd for ReadPipe
source§fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read moresource§impl Read for ReadPipe
source§fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Pull some bytes from this source into the specified buffer, returning
+how many bytes were read. Read more1.36.0 · source§fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
Like read
, except that it reads into a slice of buffers. Read moresource§fn is_read_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (can_vector
)1.0.0 · source§fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
Reads all bytes until EOF in this source, placing them into buf
. Read more1.0.0 · source§fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
Reads all bytes until EOF in this source, appending them to buf
. Read more1.6.0 · source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
Reads the exact number of bytes required to fill buf
. Read moresource§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (read_buf
)Pull some bytes from this source into the specified buffer. Read moresource§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (read_buf
)Reads the exact number of bytes required to fill cursor
. Read more1.0.0 · source§fn by_ref(&mut self) -> &mut Selfwhere
+ Self: Sized,
Creates a “by reference” adaptor for this instance of Read
. Read moreAuto Trait Implementations§
§impl Freeze for ReadPipe
§impl RefUnwindSafe for ReadPipe
§impl Send for ReadPipe
§impl Sync for ReadPipe
§impl Unpin for ReadPipe
§impl UnwindSafe for ReadPipe
Blanket Implementations§
§impl<T> AsSource for Twhere
+ T: AsFd,
§fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-[WithDispatch
] wrapper. Read more
\ No newline at end of file
+[WithDispatch
] wrapper. Read more
\ No newline at end of file
diff --git a/smithay_client_toolkit/data_device_manager/struct.WritePipe.html b/smithay_client_toolkit/data_device_manager/struct.WritePipe.html
index 426f32da27..dfbe5f1a1c 100644
--- a/smithay_client_toolkit/data_device_manager/struct.WritePipe.html
+++ b/smithay_client_toolkit/data_device_manager/struct.WritePipe.html
@@ -1,50 +1,50 @@
-WritePipe in smithay_client_toolkit::data_device_manager - Rust pub struct WritePipe { /* private fields */ }
Expand description
If the calloop
cargo feature is enabled, this can be used
+
WritePipe in smithay_client_toolkit::data_device_manager - Rust pub struct WritePipe { /* private fields */ }
Expand description
If the calloop
cargo feature is enabled, this can be used
as an EventSource
in a calloop event loop.
-Trait Implementations§
source§impl AsFd for WritePipe
source§fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read moresource§impl EventSource for WritePipe
§type Error = Error
The error type returned from
-process_events()
(not the user callback!).source§fn process_events<F>(
+
Trait Implementations§
source§impl AsFd for WritePipe
source§fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read moresource§impl EventSource for WritePipe
source§type Error = Error
The error type returned from
+process_events()
(not the user callback!).source§fn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F,
-) -> Result<PostAction>
Process any relevant events Read moresource§fn register(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory,
-) -> Result<()>
Register yourself to this poll instance Read moresource§fn reregister(
+) -> Result<()>
Register yourself to this poll instance Read moresource§fn reregister(
&mut self,
poll: &mut Poll,
token_factory: &mut TokenFactory,
-) -> Result<()>
Re-register your file descriptors Read moresource§fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more§const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = false
Whether this source needs to be sent the [EventSource::before_sleep
]
+) -> Result<()>Re-register your file descriptors Read moresource§fn unregister(&mut self, poll: &mut Poll) -> Result<()>
Unregister your file descriptors Read more§const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = false
Whether this source needs to be sent the [EventSource::before_sleep
]
and [EventSource::before_handle_events
] notifications. These are opt-in because
-they require more expensive checks, and almost all sources will not need these notifications§fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>
Notification that a single poll
is about to begin Read more§fn before_handle_events(&mut self, events: EventIterator<'_>)
Notification that polling is complete, and [EventSource::process_events
] will
+they require more expensive checks, and almost all sources will not need these notifications§fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>
Notification that a single poll
is about to begin Read more§fn before_handle_events(&mut self, events: EventIterator<'_>)
Notification that polling is complete, and [EventSource::process_events
] will
be called with the given events for this source. The iterator may be empty,
-which indicates that no events were generated for this source Read moresource§impl IntoRawFd for WritePipe
source§fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read moresource§impl Write for WritePipe
source§fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written. Read moresource§fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered
-contents reach their destination. Read moresource§fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (can_vector
)1.0.0 · source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read moresource§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (write_all_vectored
)Attempts to write multiple buffers into this writer. Read moreAuto Trait Implementations§
§impl Freeze for WritePipe
§impl RefUnwindSafe for WritePipe
§impl Send for WritePipe
§impl Sync for WritePipe
§impl Unpin for WritePipe
§impl UnwindSafe for WritePipe
Blanket Implementations§
§impl<T> AsSource for Twhere
- T: AsFd,
§fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+which indicates that no events were generated for this source Read moresource§impl IntoRawFd for WritePipe
source§fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read moresource§impl Write for WritePipe
source§fn write(&mut self, buf: &[u8]) -> Result<usize>
Writes a buffer into this writer, returning how many bytes were written. Read moresource§fn flush(&mut self) -> Result<()>
Flushes this output stream, ensuring that all intermediately buffered
+contents reach their destination. Read moresource§fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (can_vector
)1.0.0 · source§fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read moresource§fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (write_all_vectored
)Attempts to write multiple buffers into this writer. Read moreAuto Trait Implementations§
§impl Freeze for WritePipe
§impl RefUnwindSafe for WritePipe
§impl Send for WritePipe
§impl Sync for WritePipe
§impl Unpin for WritePipe
§impl UnwindSafe for WritePipe
Blanket Implementations§
§impl<T> AsSource for Twhere
+ T: AsFd,
§fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-[WithDispatch
] wrapper. Read more
\ No newline at end of file
+[WithDispatch
] wrapper. Read more
\ No newline at end of file
diff --git a/smithay_client_toolkit/dmabuf/index.html b/smithay_client_toolkit/dmabuf/index.html
index 4c54faf7e5..db0d4a1e93 100644
--- a/smithay_client_toolkit/dmabuf/index.html
+++ b/smithay_client_toolkit/dmabuf/index.html
@@ -1 +1 @@
-smithay_client_toolkit::dmabuf - Rust Module smithay_client_toolkit::dmabuf
source · Structs§
- Description of supported and preferred dmabuf formats
- A preference tranche of dmabuf formats
- A single dmabuf format/modifier pair
- Builder for a dmabuf backed buffer
- A handler for [
zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1
]
Traits§
\ No newline at end of file
+smithay_client_toolkit::dmabuf - Rust Module smithay_client_toolkit::dmabuf
source · Structs§
- Description of supported and preferred dmabuf formats
- A preference tranche of dmabuf formats
- A single dmabuf format/modifier pair
- Builder for a dmabuf backed buffer
- A handler for [
zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1
]
Traits§
\ No newline at end of file
diff --git a/smithay_client_toolkit/dmabuf/struct.DmabufFeedback.html b/smithay_client_toolkit/dmabuf/struct.DmabufFeedback.html
index 764d365fad..29e395b600 100644
--- a/smithay_client_toolkit/dmabuf/struct.DmabufFeedback.html
+++ b/smithay_client_toolkit/dmabuf/struct.DmabufFeedback.html
@@ -1,27 +1,27 @@
-DmabufFeedback in smithay_client_toolkit::dmabuf - Rust Struct smithay_client_toolkit::dmabuf::DmabufFeedback
source · pub struct DmabufFeedback { /* private fields */ }
Expand description
Description of supported and preferred dmabuf formats
+DmabufFeedback in smithay_client_toolkit::dmabuf - Rust Struct smithay_client_toolkit::dmabuf::DmabufFeedback
source · pub struct DmabufFeedback { /* private fields */ }
Expand description
Description of supported and preferred dmabuf formats
Implementations§
source§impl DmabufFeedback
sourcepub fn format_table(&self) -> &[DmabufFormat]
Format/modifier pairs
sourcepub fn main_device(&self) -> dev_t
dev_t
value for main device. Buffers must be importable from main device.
sourcepub fn tranches(&self) -> &[DmabufFeedbackTranche]
Tranches in descending order of preference
-Trait Implementations§
source§impl Debug for DmabufFeedback
source§impl Default for DmabufFeedback
source§fn default() -> DmabufFeedback
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DmabufFeedback
§impl RefUnwindSafe for DmabufFeedback
§impl Send for DmabufFeedback
§impl Sync for DmabufFeedback
§impl Unpin for DmabufFeedback
§impl UnwindSafe for DmabufFeedback
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+Trait Implementations§
source§impl Debug for DmabufFeedback
source§impl Default for DmabufFeedback
source§fn default() -> DmabufFeedback
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DmabufFeedback
§impl RefUnwindSafe for DmabufFeedback
§impl Send for DmabufFeedback
§impl Sync for DmabufFeedback
§impl Unpin for DmabufFeedback
§impl UnwindSafe for DmabufFeedback
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/dmabuf/struct.DmabufFeedbackTranche.html b/smithay_client_toolkit/dmabuf/struct.DmabufFeedbackTranche.html
index dbb8a3d999..920e2d02ed 100644
--- a/smithay_client_toolkit/dmabuf/struct.DmabufFeedbackTranche.html
+++ b/smithay_client_toolkit/dmabuf/struct.DmabufFeedbackTranche.html
@@ -1,34 +1,34 @@
-DmabufFeedbackTranche in smithay_client_toolkit::dmabuf - Rust pub struct DmabufFeedbackTranche {
+DmabufFeedbackTranche in smithay_client_toolkit::dmabuf - Rust pub struct DmabufFeedbackTranche {
pub device: dev_t,
pub flags: WEnum<TrancheFlags>,
- pub formats: Vec<u16>,
+ pub formats: Vec<u16>,
}
Expand description
A preference tranche of dmabuf formats
Fields§
§device: dev_t
dev_t
value for preferred target device. May be scan-out or
renderer device.
§flags: WEnum<TrancheFlags>
Flags for tranche
-§formats: Vec<u16>
Indices of formats in the format table
-Trait Implementations§
source§impl Clone for DmabufFeedbackTranche
source§fn clone(&self) -> DmabufFeedbackTranche
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DmabufFeedbackTranche
source§impl Default for DmabufFeedbackTranche
source§fn default() -> DmabufFeedbackTranche
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DmabufFeedbackTranche
§impl RefUnwindSafe for DmabufFeedbackTranche
§impl Send for DmabufFeedbackTranche
§impl Sync for DmabufFeedbackTranche
§impl Unpin for DmabufFeedbackTranche
§impl UnwindSafe for DmabufFeedbackTranche
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
- T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
- T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
-then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
-further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
-generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+§formats: Vec<u16>
Indices of formats in the format table
+Trait Implementations§
source§impl Clone for DmabufFeedbackTranche
source§fn clone(&self) -> DmabufFeedbackTranche
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DmabufFeedbackTranche
source§impl Default for DmabufFeedbackTranche
source§fn default() -> DmabufFeedbackTranche
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for DmabufFeedbackTranche
§impl RefUnwindSafe for DmabufFeedbackTranche
§impl Send for DmabufFeedbackTranche
§impl Sync for DmabufFeedbackTranche
§impl Unpin for DmabufFeedbackTranche
§impl UnwindSafe for DmabufFeedbackTranche
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
+ T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (clone_to_uninit
)§impl<T> Downcast for Twhere
+ T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
+then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
+further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
+generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
source§impl<T> From<T> for T
§impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+From<T> for U
chooses to do.
+§impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/smithay_client_toolkit/dmabuf/struct.DmabufFormat.html b/smithay_client_toolkit/dmabuf/struct.DmabufFormat.html
index a409bd40e3..7988e0e7a1 100644
--- a/smithay_client_toolkit/dmabuf/struct.DmabufFormat.html
+++ b/smithay_client_toolkit/dmabuf/struct.DmabufFormat.html
@@ -1,33 +1,32 @@
-DmabufFormat in smithay_client_toolkit::dmabuf - Rust Struct smithay_client_toolkit::dmabuf::DmabufFormat
source · #[repr(C)]pub struct DmabufFormat {
- pub format: u32,
- pub modifier: u64,
+DmabufFormat in smithay_client_toolkit::dmabuf - Rust Struct smithay_client_toolkit::dmabuf::DmabufFormat
source · #[repr(C)]pub struct DmabufFormat {
+ pub format: u32,
+ pub modifier: u64,
/* private fields */
}
Expand description
A single dmabuf format/modifier pair
-Fields§
§format: u32
Fourcc format
-§modifier: u64
Modifier, or DRM_FORMAT_MOD_INVALID
for implict modifier
-Trait Implementations§