pub struct CommandBuilder { /* private fields */ }Expand description
Builder for constructing graphics protocol commands
Implementations§
Source§impl CommandBuilder
impl CommandBuilder
Sourcepub fn format(self, format: ImageFormat) -> Self
pub fn format(self, format: ImageFormat) -> Self
Set the image format
Sourcepub fn medium(self, medium: TransmissionMedium) -> Self
pub fn medium(self, medium: TransmissionMedium) -> Self
Set the transmission medium
Sourcepub fn dimensions(self, width: u32, height: u32) -> Self
pub fn dimensions(self, width: u32, height: u32) -> Self
Set the image dimensions (width, height) in pixels
Sourcepub fn image_number(self, number: u32) -> Self
pub fn image_number(self, number: u32) -> Self
Set the image number (alternative to image ID)
Sourcepub fn placement_id(self, id: u32) -> Self
pub fn placement_id(self, id: u32) -> Self
Set the placement ID
Sourcepub fn compression(self, compression: Compression) -> Self
pub fn compression(self, compression: Compression) -> Self
Set compression
Sourcepub fn source_rect(self, x: u32, y: u32, width: u32, height: u32) -> Self
pub fn source_rect(self, x: u32, y: u32, width: u32, height: u32) -> Self
Set the source rectangle (x, y, width, height)
Sourcepub fn cell_offset(self, x: u32, y: u32) -> Self
pub fn cell_offset(self, x: u32, y: u32) -> Self
Set cell offset (X, Y) within the current cell
Sourcepub fn display_area(self, columns: u32, rows: u32) -> Self
pub fn display_area(self, columns: u32, rows: u32) -> Self
Set display area in columns and rows
Sourcepub fn cursor_policy(self, policy: CursorPolicy) -> Self
pub fn cursor_policy(self, policy: CursorPolicy) -> Self
Set cursor policy
Sourcepub fn delete_target(self, target: DeleteTarget) -> Self
pub fn delete_target(self, target: DeleteTarget) -> Self
Set delete target
Sourcepub fn data_range(self, size: usize, offset: usize) -> Self
pub fn data_range(self, size: usize, offset: usize) -> Self
Set data size and offset for file/shared memory
Sourcepub fn unicode_placeholder(self, columns: u16, rows: u16) -> Self
pub fn unicode_placeholder(self, columns: u16, rows: u16) -> Self
Set unicode placeholder mode
Sourcepub fn parent(self, image_id: u32, placement_id: u32) -> Self
pub fn parent(self, image_id: u32, placement_id: u32) -> Self
Set parent for relative placement
Sourcepub fn relative_offset(self, h: i32, v: i32) -> Self
pub fn relative_offset(self, h: i32, v: i32) -> Self
Set relative offset for relative placement
Sourcepub fn animation_control(self, control: AnimationControl) -> Self
pub fn animation_control(self, control: AnimationControl) -> Self
Set animation control
Sourcepub fn frame_number(self, frame: u32) -> Self
pub fn frame_number(self, frame: u32) -> Self
Set frame number
Sourcepub fn frame_gap(self, gap_ms: i32) -> Self
pub fn frame_gap(self, gap_ms: i32) -> Self
Set frame gap in milliseconds (negative = gapless frame)
Sourcepub fn loop_count(self, count: u32) -> Self
pub fn loop_count(self, count: u32) -> Self
Set loop count (0 = ignored, 1 = infinite)
Sourcepub fn background_color(self, color: u32) -> Self
pub fn background_color(self, color: u32) -> Self
Set background color for frame (RGBA)
Sourcepub fn composition(self, comp: FrameComposition) -> Self
pub fn composition(self, comp: FrameComposition) -> Self
Set frame composition parameters
Trait Implementations§
Source§impl Clone for CommandBuilder
impl Clone for CommandBuilder
Source§fn clone(&self) -> CommandBuilder
fn clone(&self) -> CommandBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandBuilder
impl Debug for CommandBuilder
Source§impl Default for CommandBuilder
impl Default for CommandBuilder
Source§fn default() -> CommandBuilder
fn default() -> CommandBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandBuilder
impl RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl UnsafeUnpin for CommandBuilder
impl UnwindSafe for CommandBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more