Expand description
A configuration for a given Display
.
Fields
display: Rc<Display>
id: c_uint
Implementations
sourceimpl Config
impl Config
sourcepub(crate) fn new(
display: Rc<Display>,
attrs: Vec<VAConfigAttrib>,
profile: Type,
entrypoint: Type
) -> Result<Self>
pub(crate) fn new(
display: Rc<Display>,
attrs: Vec<VAConfigAttrib>,
profile: Type,
entrypoint: Type
) -> Result<Self>
Creates a Config by wrapping around the vaCreateConfig
call. This is just a helper for
Display::create_config
.
fn query_surface_attributes(&mut self) -> Result<Vec<_VASurfaceAttrib>>
sourcepub fn query_surface_attributes_by_type(
&mut self,
attr_type: Type
) -> Result<Vec<GenericValue>>
pub fn query_surface_attributes_by_type(
&mut self,
attr_type: Type
) -> Result<Vec<GenericValue>>
Query the surface attributes of type attr_type
. The attribute may or may not be defined by
the driver.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl !Send for Config
impl !Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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