Realm

vk · Structs · X1

6 public declarations with native signatures and source-owned contracts.

StRustExperimental

Stvk::xcb_connection_t

Contract

Native type xcb_connection_t.

Khronos registry source: xcb_connection_t

Stvk::XcbSurfaceCreateFlagsKHR

Contract

Open integer representation of VkXcbSurfaceCreateFlagsKHR.

Khronos reference: VkXcbSurfaceCreateFlagsKHR

Fields

0

Field
0: u32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: u32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> u32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

Output

Method
type Output = XcbSurfaceCreateFlagsKHR
The resulting type after applying the & operator.

Output-1

Method
type Output = XcbSurfaceCreateFlagsKHR
The resulting type after applying the | operator.

Output-2

Method
type Output = XcbSurfaceCreateFlagsKHR
The resulting type after applying the ^ operator.

clone

Method
fn clone(&self) -> XcbSurfaceCreateFlagsKHR
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> XcbSurfaceCreateFlagsKHR
Returns the “default value” for a type. Read more

Output-3

Method
type Output = XcbSurfaceCreateFlagsKHR
The resulting type after applying the ! operator.

eq

Method
fn eq(&self, other: &XcbSurfaceCreateFlagsKHR) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::XcbSurfaceCreateInfoKHR

pub struct XcbSurfaceCreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: XcbSurfaceCreateFlagsKHR, pub connection: *mut xcb_connection_t, pub window: xcb_window_t, /* private fields */ }
Native structure VkXcbSurfaceCreateInfoKHR.

Contract

Native structure VkXcbSurfaceCreateInfoKHR.

Khronos reference: VkXcbSurfaceCreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: XcbSurfaceCreateFlagsKHR

Native field flags.

connection

Field
connection: *mut xcb_connection_t

Native field connection.

window

Field
window: xcb_window_t

Native field window.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_flags

Method
pub fn set_flags(self, value: XcbSurfaceCreateFlagsKHR) -> Self

Set native field flags without native effects.

set_connection

Method
pub unsafe fn set_connection(self, value: *mut xcb_connection_t) -> Self

Set native pointer connection explicitly. No borrow or extent is inferred.

Safety

The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.

set_window

Method
pub fn set_window(self, value: xcb_window_t) -> Self

Set native field window without native effects.

push_next

Method
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>

Prepend one registry-compatible node, retaining its exclusive borrow.

The node must have a null p_next and both headers must have canonical tags. Existing links are never traversed and remain written after the borrow ends. Type compatibility does not establish enabled extensions or Vulkan valid usage.

Errors

Returns a construction error for a changed structure tag or already-linked node.

Stvk::XlibSurfaceCreateFlagsKHR

Contract

Open integer representation of VkXlibSurfaceCreateFlagsKHR.

Khronos reference: VkXlibSurfaceCreateFlagsKHR

Fields

0

Field
0: u32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: u32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> u32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

Output

Method
type Output = XlibSurfaceCreateFlagsKHR
The resulting type after applying the & operator.

Output-1

Method
type Output = XlibSurfaceCreateFlagsKHR
The resulting type after applying the | operator.

Output-2

Method
type Output = XlibSurfaceCreateFlagsKHR
The resulting type after applying the ^ operator.

clone

Method
fn clone(&self) -> XlibSurfaceCreateFlagsKHR
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> XlibSurfaceCreateFlagsKHR
Returns the “default value” for a type. Read more

Output-3

Method
type Output = XlibSurfaceCreateFlagsKHR
The resulting type after applying the ! operator.

eq

Method
fn eq(&self, other: &XlibSurfaceCreateFlagsKHR) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::XlibSurfaceCreateInfoKHR

pub struct XlibSurfaceCreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: XlibSurfaceCreateFlagsKHR, pub dpy: *mut Display, pub window: Window, /* private fields */ }
Native structure VkXlibSurfaceCreateInfoKHR.

Contract

Native structure VkXlibSurfaceCreateInfoKHR.

Khronos reference: VkXlibSurfaceCreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: XlibSurfaceCreateFlagsKHR

Native field flags.

dpy

Field
dpy: *mut Display

Native field dpy.

window

Field
window: Window

Native field window.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_flags

Method
pub fn set_flags(self, value: XlibSurfaceCreateFlagsKHR) -> Self

Set native field flags without native effects.

set_dpy

Method
pub unsafe fn set_dpy(self, value: *mut Display) -> Self

Set native pointer dpy explicitly. No borrow or extent is inferred.

Safety

The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.

set_window

Method
pub fn set_window(self, value: Window) -> Self

Set native field window without native effects.

push_next

Method
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>

Prepend one registry-compatible node, retaining its exclusive borrow.

The node must have a null p_next and both headers must have canonical tags. Existing links are never traversed and remain written after the borrow ends. Type compatibility does not establish enabled extensions or Vulkan valid usage.

Errors

Returns a construction error for a changed structure tag or already-linked node.

Stvk::XYColorEXT

Contract

Native structure VkXYColorEXT.

Khronos reference: VkXYColorEXT

Fields

x

Field
x: f32

Native field x.

y

Field
y: f32

Native field y.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_x

Method
pub fn set_x(self, value: f32) -> Self

Set native field x without native effects.

set_y

Method
pub fn set_y(self, value: f32) -> Self

Set native field y without native effects.