Struct drm::drm_mode::Connector
[−]
[src]
pub struct Connector { /* fields omitted */ }
Structure representing connector.
Methods
impl Connector
[src]
General methods
fn new(connector: drmModeConnectorPtr) -> Self
Connector
constructor.
Does not check if passed arguments are valid.
fn get_type_name(&self) -> &'static str
Get string representation of connector type.
impl Connector
[src]
Getters for original members
fn get_connector_id(&self) -> ConnectorId
fn get_encoder_id(&self) -> u32
Get id of encoder currently connected to.
fn get_connector_type(&self) -> ConnectorType
fn get_connector_type_id(&self) -> ConnectorTypeId
fn get_connection(&self) -> Connection
fn get_mm_width(&self) -> u32
Get width in millimeters.
fn get_mm_height(&self) -> u32
Get height in millimeters.
fn get_count_modes(&self) -> i32
Get count of modes.
fn get_count_encoders(&self) -> i32
Get count of encoders.
fn get_modes(&self) -> Vec<ModeInfo>
Return vector of modes.
fn get_encoders(&self) -> Vec<EncoderId>
Return vector of encoder ids.