Struct Xft

Source
pub struct Xft {
Show 77 fields pub XftCharExists: unsafe extern "C" fn(*mut Display, *mut XftFont, c_uint) -> c_int, pub XftCharFontSpecRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, c_ulong, c_int, c_int, *const XftCharFontSpec, c_int), pub XftCharIndex: unsafe extern "C" fn(*mut Display, *mut XftFont, c_uint) -> c_uint, pub XftCharSpecRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, *const XftCharSpec, c_int), pub XftColorAllocName: unsafe extern "C" fn(*mut Display, *const Visual, c_ulong, *const c_char, *mut XftColor) -> c_int, pub XftColorAllocValue: unsafe extern "C" fn(*mut Display, *mut Visual, c_ulong, *const XRenderColor, *mut XftColor) -> c_int, pub XftColorFree: unsafe extern "C" fn(*mut Display, *mut Visual, c_ulong, *mut XftColor), pub XftDefaultHasRender: unsafe extern "C" fn(*mut Display) -> c_int, pub XftDefaultSet: unsafe extern "C" fn(*mut Display, *mut FcPattern) -> c_int, pub XftDefaultSubstitute: unsafe extern "C" fn(*mut Display, c_int, *mut FcPattern), pub XftDrawChange: unsafe extern "C" fn(*mut XftDraw, c_ulong), pub XftDrawCharFontSpec: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *const XftCharFontSpec, c_int), pub XftDrawCharSpec: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, *const XftCharSpec, c_int), pub XftDrawColormap: unsafe extern "C" fn(*mut XftDraw) -> c_ulong, pub XftDrawCreate: unsafe extern "C" fn(*mut Display, c_ulong, *mut Visual, c_ulong) -> *mut XftDraw, pub XftDrawCreateAlpha: unsafe extern "C" fn(*mut Display, c_ulong, c_int) -> *mut XftDraw, pub XftDrawCreateBitmap: unsafe extern "C" fn(*mut Display, c_ulong) -> *mut XftDraw, pub XftDrawDestroy: unsafe extern "C" fn(*mut XftDraw), pub XftDrawDisplay: unsafe extern "C" fn(*mut XftDraw) -> *mut Display, pub XftDrawDrawable: unsafe extern "C" fn(*mut XftDraw) -> c_ulong, pub XftDrawGlyphFontSpec: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *const XftGlyphFontSpec, c_int), pub XftDrawGlyphs: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uint, c_int), pub XftDrawGlyphSpec: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, *const XftGlyphSpec, c_int), pub XftDrawPicture: unsafe extern "C" fn(*mut XftDraw) -> c_ulong, pub XftDrawRect: unsafe extern "C" fn(*mut XftDraw, *const XftColor, c_int, c_int, c_uint, c_uint), pub XftDrawSetClip: unsafe extern "C" fn(*mut XftDraw, Region) -> c_int, pub XftDrawSetClipRectangles: unsafe extern "C" fn(*mut XftDraw, c_int, c_int, *const XRectangle, c_int) -> c_int, pub XftDrawSetSubwindowMode: unsafe extern "C" fn(*mut XftDraw, c_int), pub XftDrawSrcPicture: unsafe extern "C" fn(*mut XftDraw, *const XftColor) -> c_ulong, pub XftDrawString16: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_ushort, c_int), pub XftDrawString32: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uint, c_int), pub XftDrawString8: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uchar, c_int), pub XftDrawStringUtf16: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uchar, FcEndian, c_int), pub XftDrawStringUtf8: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uchar, c_int), pub XftDrawVisual: unsafe extern "C" fn(*mut XftDraw) -> *mut Visual, pub XftFontCheckGlyph: unsafe extern "C" fn(*mut Display, *mut XftFont, c_int, c_uint, *mut c_uint, *mut c_int) -> c_int, pub XftFontClose: unsafe extern "C" fn(*mut Display, *mut XftFont), pub XftFontCopy: unsafe extern "C" fn(*mut Display, *mut XftFont) -> *mut XftFont, pub XftFontInfoCreate: unsafe extern "C" fn(*mut Display, *const FcPattern) -> *mut XftFontInfo, pub XftFontInfoDestroy: unsafe extern "C" fn(*mut Display, *mut XftFontInfo), pub XftFontInfoEqual: unsafe extern "C" fn(*const XftFontInfo, *const XftFontInfo) -> c_int, pub XftFontInfoHash: unsafe extern "C" fn(*const XftFontInfo) -> c_uint, pub XftFontLoadGlyphs: unsafe extern "C" fn(*mut Display, *mut XftFont, c_int, *const c_uint, c_int), pub XftFontMatch: unsafe extern "C" fn(*mut Display, c_int, *const FcPattern, *mut FcResult) -> *mut FcPattern, pub XftFontOpenInfo: unsafe extern "C" fn(*mut Display, *mut FcPattern, *mut XftFontInfo) -> *mut XftFont, pub XftFontOpenName: unsafe extern "C" fn(*mut Display, c_int, *const c_char) -> *mut XftFont, pub XftFontOpenPattern: unsafe extern "C" fn(*mut Display, *mut FcPattern) -> *mut XftFont, pub XftFontOpenXlfd: unsafe extern "C" fn(*mut Display, c_int, *const c_char) -> *mut XftFont, pub XftFontUnloadGlyphs: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uint, c_int), pub XftGetVersion: unsafe extern "C" fn() -> c_int, pub XftGlyphExtents: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uint, c_int, *mut XGlyphInfo), pub XftGlyphFontSpecRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, c_ulong, c_int, c_int, *const XftGlyphFontSpec, c_int), pub XftGlyphRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uint, c_int), pub XftGlyphSpecRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, *const XftGlyphSpec, c_int), pub XftInit: unsafe extern "C" fn(*const c_char) -> c_int, pub XftInitFtLibrary: unsafe extern "C" fn() -> c_int, pub XftLockFace: unsafe extern "C" fn(*mut XftFont) -> *mut FT_FaceRec, pub XftNameParse: unsafe extern "C" fn(*const c_char) -> *mut FcPattern, pub XftNameUnparse: unsafe extern "C" fn(*mut FcPattern, *mut c_char, c_int) -> c_int, pub XftTextExtents16: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_ushort, c_int, *mut XGlyphInfo), pub XftTextExtents32: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uint, c_int, *mut XGlyphInfo), pub XftTextExtents8: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uchar, c_int, *mut XGlyphInfo), pub XftTextExtentsUtf16: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uchar, FcEndian, c_int, *mut XGlyphInfo), pub XftTextExtentsUtf8: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uchar, c_int, *mut XGlyphInfo), pub XftTextRender16: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_ushort, c_int), pub XftTextRender16BE: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int), pub XftTextRender16LE: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int), pub XftTextRender32: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uint, c_int), pub XftTextRender32BE: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int), pub XftTextRender32LE: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int), pub XftTextRender8: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int), pub XftTextRenderUtf16: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, FcEndian, c_int), pub XftTextRenderUtf8: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int), pub XftUnlockFace: unsafe extern "C" fn(*mut XftFont), pub XftXlfdParse: unsafe extern "C" fn(*const c_char, c_int, c_int) -> *mut FcPattern, pub XftFontOpen: unsafe extern "C" fn(*mut Display, c_int, ...) -> *mut XftFont, pub XftListFonts: unsafe extern "C" fn(*mut Display, c_int, ...) -> *mut XftFontSet, /* private fields */
}

Fields§

§XftCharExists: unsafe extern "C" fn(*mut Display, *mut XftFont, c_uint) -> c_int§XftCharFontSpecRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, c_ulong, c_int, c_int, *const XftCharFontSpec, c_int)§XftCharIndex: unsafe extern "C" fn(*mut Display, *mut XftFont, c_uint) -> c_uint§XftCharSpecRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, *const XftCharSpec, c_int)§XftColorAllocName: unsafe extern "C" fn(*mut Display, *const Visual, c_ulong, *const c_char, *mut XftColor) -> c_int§XftColorAllocValue: unsafe extern "C" fn(*mut Display, *mut Visual, c_ulong, *const XRenderColor, *mut XftColor) -> c_int§XftColorFree: unsafe extern "C" fn(*mut Display, *mut Visual, c_ulong, *mut XftColor)§XftDefaultHasRender: unsafe extern "C" fn(*mut Display) -> c_int§XftDefaultSet: unsafe extern "C" fn(*mut Display, *mut FcPattern) -> c_int§XftDefaultSubstitute: unsafe extern "C" fn(*mut Display, c_int, *mut FcPattern)§XftDrawChange: unsafe extern "C" fn(*mut XftDraw, c_ulong)§XftDrawCharFontSpec: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *const XftCharFontSpec, c_int)§XftDrawCharSpec: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, *const XftCharSpec, c_int)§XftDrawColormap: unsafe extern "C" fn(*mut XftDraw) -> c_ulong§XftDrawCreate: unsafe extern "C" fn(*mut Display, c_ulong, *mut Visual, c_ulong) -> *mut XftDraw§XftDrawCreateAlpha: unsafe extern "C" fn(*mut Display, c_ulong, c_int) -> *mut XftDraw§XftDrawCreateBitmap: unsafe extern "C" fn(*mut Display, c_ulong) -> *mut XftDraw§XftDrawDestroy: unsafe extern "C" fn(*mut XftDraw)§XftDrawDisplay: unsafe extern "C" fn(*mut XftDraw) -> *mut Display§XftDrawDrawable: unsafe extern "C" fn(*mut XftDraw) -> c_ulong§XftDrawGlyphFontSpec: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *const XftGlyphFontSpec, c_int)§XftDrawGlyphs: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uint, c_int)§XftDrawGlyphSpec: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, *const XftGlyphSpec, c_int)§XftDrawPicture: unsafe extern "C" fn(*mut XftDraw) -> c_ulong§XftDrawRect: unsafe extern "C" fn(*mut XftDraw, *const XftColor, c_int, c_int, c_uint, c_uint)§XftDrawSetClip: unsafe extern "C" fn(*mut XftDraw, Region) -> c_int§XftDrawSetClipRectangles: unsafe extern "C" fn(*mut XftDraw, c_int, c_int, *const XRectangle, c_int) -> c_int§XftDrawSetSubwindowMode: unsafe extern "C" fn(*mut XftDraw, c_int)§XftDrawSrcPicture: unsafe extern "C" fn(*mut XftDraw, *const XftColor) -> c_ulong§XftDrawString16: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_ushort, c_int)§XftDrawString32: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uint, c_int)§XftDrawString8: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uchar, c_int)§XftDrawStringUtf16: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uchar, FcEndian, c_int)§XftDrawStringUtf8: unsafe extern "C" fn(*mut XftDraw, *const XftColor, *mut XftFont, c_int, c_int, *const c_uchar, c_int)§XftDrawVisual: unsafe extern "C" fn(*mut XftDraw) -> *mut Visual§XftFontCheckGlyph: unsafe extern "C" fn(*mut Display, *mut XftFont, c_int, c_uint, *mut c_uint, *mut c_int) -> c_int§XftFontClose: unsafe extern "C" fn(*mut Display, *mut XftFont)§XftFontCopy: unsafe extern "C" fn(*mut Display, *mut XftFont) -> *mut XftFont§XftFontInfoCreate: unsafe extern "C" fn(*mut Display, *const FcPattern) -> *mut XftFontInfo§XftFontInfoDestroy: unsafe extern "C" fn(*mut Display, *mut XftFontInfo)§XftFontInfoEqual: unsafe extern "C" fn(*const XftFontInfo, *const XftFontInfo) -> c_int§XftFontInfoHash: unsafe extern "C" fn(*const XftFontInfo) -> c_uint§XftFontLoadGlyphs: unsafe extern "C" fn(*mut Display, *mut XftFont, c_int, *const c_uint, c_int)§XftFontMatch: unsafe extern "C" fn(*mut Display, c_int, *const FcPattern, *mut FcResult) -> *mut FcPattern§XftFontOpenInfo: unsafe extern "C" fn(*mut Display, *mut FcPattern, *mut XftFontInfo) -> *mut XftFont§XftFontOpenName: unsafe extern "C" fn(*mut Display, c_int, *const c_char) -> *mut XftFont§XftFontOpenPattern: unsafe extern "C" fn(*mut Display, *mut FcPattern) -> *mut XftFont§XftFontOpenXlfd: unsafe extern "C" fn(*mut Display, c_int, *const c_char) -> *mut XftFont§XftFontUnloadGlyphs: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uint, c_int)§XftGetVersion: unsafe extern "C" fn() -> c_int§XftGlyphExtents: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uint, c_int, *mut XGlyphInfo)§XftGlyphFontSpecRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, c_ulong, c_int, c_int, *const XftGlyphFontSpec, c_int)§XftGlyphRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uint, c_int)§XftGlyphSpecRender: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, *const XftGlyphSpec, c_int)§XftInit: unsafe extern "C" fn(*const c_char) -> c_int§XftInitFtLibrary: unsafe extern "C" fn() -> c_int§XftLockFace: unsafe extern "C" fn(*mut XftFont) -> *mut FT_FaceRec§XftNameParse: unsafe extern "C" fn(*const c_char) -> *mut FcPattern§XftNameUnparse: unsafe extern "C" fn(*mut FcPattern, *mut c_char, c_int) -> c_int§XftTextExtents16: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_ushort, c_int, *mut XGlyphInfo)§XftTextExtents32: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uint, c_int, *mut XGlyphInfo)§XftTextExtents8: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uchar, c_int, *mut XGlyphInfo)§XftTextExtentsUtf16: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uchar, FcEndian, c_int, *mut XGlyphInfo)§XftTextExtentsUtf8: unsafe extern "C" fn(*mut Display, *mut XftFont, *const c_uchar, c_int, *mut XGlyphInfo)§XftTextRender16: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_ushort, c_int)§XftTextRender16BE: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int)§XftTextRender16LE: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int)§XftTextRender32: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uint, c_int)§XftTextRender32BE: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int)§XftTextRender32LE: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int)§XftTextRender8: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int)§XftTextRenderUtf16: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, FcEndian, c_int)§XftTextRenderUtf8: unsafe extern "C" fn(*mut Display, c_int, c_ulong, *mut XftFont, c_ulong, c_int, c_int, c_int, c_int, *const c_uchar, c_int)§XftUnlockFace: unsafe extern "C" fn(*mut XftFont)§XftXlfdParse: unsafe extern "C" fn(*const c_char, c_int, c_int) -> *mut FcPattern§XftFontOpen: unsafe extern "C" fn(*mut Display, c_int, ...) -> *mut XftFont§XftListFonts: unsafe extern "C" fn(*mut Display, c_int, ...) -> *mut XftFontSet

Implementations§

Trait Implementations§

Source§

impl Send for Xft

Source§

impl Sync for Xft

Auto Trait Implementations§

§

impl Freeze for Xft

§

impl RefUnwindSafe for Xft

§

impl Unpin for Xft

§

impl UnwindSafe for Xft

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.