Skip to main content
QAROS Rust API Dev (main) · versions: Dev (main) · Developer Guide

QarGuiPanelInit

Struct QarGuiPanelInit 

Source
#[repr(C)]
pub struct QarGuiPanelInit { pub header: QarStructureHeader, pub common_name: *const c_char, pub display_name: *const c_char, pub pose: QarPose, pub size: QarGuiPanelSize, pub visible_to_peers: *const QarPeerId, pub visible_to_peer_count: usize, }

Fields§

§header: QarStructureHeader

Chain exactly one supported content extension through header.next: QarGuiPanelUrlExt for browser content or QarGuiPanelStreamIdExt for video stream content. With no content extension, a browser panel is created with the default URL.

§common_name: *const c_char

Required stable identity key used by gui_panels_get_or_create() to derive the panel’s id. Must not be NULL or empty, and must be ASCII.

§display_name: *const c_char

UTF-8 label shown above the panel; emoji included. At most 64 Unicode code points, no control or bidirectional formatting characters, otherwise gui_panels_get_or_create() fails with QAR_STATUS_GUI_PANEL_DISPLAY_NAME_INVALID. NULL or empty shows no name.

§pose: QarPose§size: QarGuiPanelSize§visible_to_peers: *const QarPeerId

Peers the new panel is shown to, copied during the call. Empty (count 0, the default) means visible to every peer. A panel meant only for some peers is created with them here rather than narrowed afterwards with qar_gui_panels_update_visible_to().

§visible_to_peer_count: usize

Trait Implementations§

Source§

impl Clone for QarGuiPanelInit

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for QarGuiPanelInit

Source§

impl Debug for QarGuiPanelInit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for QarGuiPanelInit

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for QarGuiPanelInit

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.