Struct x11rb_protocol::protocol::xproto::OpenFontRequest
source · [−]Expand description
opens a font.
Opens any X core font matching the given name
(for example “-misc-fixed-*”).
Note that X core fonts are deprecated (but still supported) in favor of client-side rendering using Xft.
Fields
fid
- The ID with which you will refer to the font, created byxcb_generate_id
.name
- A pattern describing an X core font.
Errors
Name
- No font matches the givenname
.
See
xcb_generate_id
: function
Fields
fid: Font
name: Cow<'input, [u8]>
Implementations
sourceimpl<'input> OpenFontRequest<'input>
impl<'input> OpenFontRequest<'input>
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'input>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'input>>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<Self, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
sourcepub fn into_owned(self) -> OpenFontRequest<'static>
pub fn into_owned(self) -> OpenFontRequest<'static>
Clone all borrowed data in this OpenFontRequest.
Trait Implementations
sourceimpl<'input> Clone for OpenFontRequest<'input>
impl<'input> Clone for OpenFontRequest<'input>
sourcefn clone(&self) -> OpenFontRequest<'input>
fn clone(&self) -> OpenFontRequest<'input>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'input> Debug for OpenFontRequest<'input>
impl<'input> Debug for OpenFontRequest<'input>
sourceimpl<'input> Default for OpenFontRequest<'input>
impl<'input> Default for OpenFontRequest<'input>
sourcefn default() -> OpenFontRequest<'input>
fn default() -> OpenFontRequest<'input>
Returns the “default value” for a type. Read more
sourceimpl<'input> Hash for OpenFontRequest<'input>
impl<'input> Hash for OpenFontRequest<'input>
sourceimpl<'input> Ord for OpenFontRequest<'input>
impl<'input> Ord for OpenFontRequest<'input>
sourceimpl<'input> PartialEq<OpenFontRequest<'input>> for OpenFontRequest<'input>
impl<'input> PartialEq<OpenFontRequest<'input>> for OpenFontRequest<'input>
sourcefn eq(&self, other: &OpenFontRequest<'input>) -> bool
fn eq(&self, other: &OpenFontRequest<'input>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OpenFontRequest<'input>) -> bool
fn ne(&self, other: &OpenFontRequest<'input>) -> bool
This method tests for !=
.
sourceimpl<'input> PartialOrd<OpenFontRequest<'input>> for OpenFontRequest<'input>
impl<'input> PartialOrd<OpenFontRequest<'input>> for OpenFontRequest<'input>
sourcefn partial_cmp(&self, other: &OpenFontRequest<'input>) -> Option<Ordering>
fn partial_cmp(&self, other: &OpenFontRequest<'input>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<'input> Request for OpenFontRequest<'input>
impl<'input> Request for OpenFontRequest<'input>
impl<'input> Eq for OpenFontRequest<'input>
impl<'input> StructuralEq for OpenFontRequest<'input>
impl<'input> StructuralPartialEq for OpenFontRequest<'input>
impl<'input> VoidRequest for OpenFontRequest<'input>
Auto Trait Implementations
impl<'input> RefUnwindSafe for OpenFontRequest<'input>
impl<'input> Send for OpenFontRequest<'input>
impl<'input> Sync for OpenFontRequest<'input>
impl<'input> Unpin for OpenFontRequest<'input>
impl<'input> UnwindSafe for OpenFontRequest<'input>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more