Struct style::properties::generated::style_structs::Box
source · pub struct Box {Show 23 fields
pub display: T,
pub _servo_top_layer: T,
pub position: T,
pub float: T,
pub clear: T,
pub vertical_align: T,
pub baseline_source: T,
pub _servo_overflow_clip_box: T,
pub overflow_y: T,
pub overflow_x: T,
pub transform: T,
pub rotate: T,
pub scale: T,
pub translate: T,
pub perspective: T,
pub perspective_origin: T,
pub backface_visibility: T,
pub transform_style: T,
pub transform_origin: T,
pub container_type: T,
pub container_name: T,
pub zoom: T,
pub original_display: T,
}
Expand description
The Box style struct.
Fields§
§display: T
The display computed value.
_servo_top_layer: T
The -servo-top-layer computed value.
position: T
The position computed value.
float: T
The float computed value.
clear: T
The clear computed value.
vertical_align: T
The vertical-align computed value.
baseline_source: T
The baseline-source computed value.
_servo_overflow_clip_box: T
The -servo-overflow-clip-box computed value.
overflow_y: T
The overflow-y computed value.
overflow_x: T
The overflow-x computed value.
transform: T
The transform computed value.
rotate: T
The rotate computed value.
scale: T
The scale computed value.
translate: T
The translate computed value.
perspective: T
The perspective computed value.
perspective_origin: T
The perspective-origin computed value.
backface_visibility: T
The backface-visibility computed value.
transform_style: T
The transform-style computed value.
transform_origin: T
The transform-origin computed value.
container_type: T
The container-type computed value.
container_name: T
The container-name computed value.
zoom: T
The zoom computed value.
original_display: T
The display value specified by the CSS stylesheets (without any style adjustments), which is needed for hypothetical layout boxes.
Implementations§
source§impl Box
impl Box
sourcepub fn set_display(&mut self, v: T)
pub fn set_display(&mut self, v: T)
Set display
.
We need to keep track of the original display for hypothetical boxes, so we need to special-case this.
sourcepub fn copy_display_from(&mut self, other: &Self)
pub fn copy_display_from(&mut self, other: &Self)
Set display
from other struct.
Same as set_display
above.
Thus, we need to special-case this.
sourcepub fn reset_display(&mut self, other: &Self)
pub fn reset_display(&mut self, other: &Self)
Reset display from the initial struct.
sourcepub fn clone_display(&self) -> T
pub fn clone_display(&self) -> T
Get the computed value for display.
sourcepub fn set__servo_top_layer(&mut self, v: T)
pub fn set__servo_top_layer(&mut self, v: T)
Set -servo-top-layer.
sourcepub fn copy__servo_top_layer_from(&mut self, other: &Self)
pub fn copy__servo_top_layer_from(&mut self, other: &Self)
Set -servo-top-layer from other struct.
sourcepub fn reset__servo_top_layer(&mut self, other: &Self)
pub fn reset__servo_top_layer(&mut self, other: &Self)
Reset -servo-top-layer from the initial struct.
sourcepub fn clone__servo_top_layer(&self) -> T
pub fn clone__servo_top_layer(&self) -> T
Get the computed value for -servo-top-layer.
sourcepub fn set_position(&mut self, v: T)
pub fn set_position(&mut self, v: T)
Set position.
sourcepub fn copy_position_from(&mut self, other: &Self)
pub fn copy_position_from(&mut self, other: &Self)
Set position from other struct.
sourcepub fn reset_position(&mut self, other: &Self)
pub fn reset_position(&mut self, other: &Self)
Reset position from the initial struct.
sourcepub fn clone_position(&self) -> T
pub fn clone_position(&self) -> T
Get the computed value for position.
sourcepub fn copy_float_from(&mut self, other: &Self)
pub fn copy_float_from(&mut self, other: &Self)
Set float from other struct.
sourcepub fn reset_float(&mut self, other: &Self)
pub fn reset_float(&mut self, other: &Self)
Reset float from the initial struct.
sourcepub fn clone_float(&self) -> T
pub fn clone_float(&self) -> T
Get the computed value for float.
sourcepub fn copy_clear_from(&mut self, other: &Self)
pub fn copy_clear_from(&mut self, other: &Self)
Set clear from other struct.
sourcepub fn reset_clear(&mut self, other: &Self)
pub fn reset_clear(&mut self, other: &Self)
Reset clear from the initial struct.
sourcepub fn clone_clear(&self) -> T
pub fn clone_clear(&self) -> T
Get the computed value for clear.
sourcepub fn set_vertical_align(&mut self, v: T)
pub fn set_vertical_align(&mut self, v: T)
Set vertical-align.
sourcepub fn copy_vertical_align_from(&mut self, other: &Self)
pub fn copy_vertical_align_from(&mut self, other: &Self)
Set vertical-align from other struct.
sourcepub fn reset_vertical_align(&mut self, other: &Self)
pub fn reset_vertical_align(&mut self, other: &Self)
Reset vertical-align from the initial struct.
sourcepub fn clone_vertical_align(&self) -> T
pub fn clone_vertical_align(&self) -> T
Get the computed value for vertical-align.
sourcepub fn set_baseline_source(&mut self, v: T)
pub fn set_baseline_source(&mut self, v: T)
Set baseline-source.
sourcepub fn copy_baseline_source_from(&mut self, other: &Self)
pub fn copy_baseline_source_from(&mut self, other: &Self)
Set baseline-source from other struct.
sourcepub fn reset_baseline_source(&mut self, other: &Self)
pub fn reset_baseline_source(&mut self, other: &Self)
Reset baseline-source from the initial struct.
sourcepub fn clone_baseline_source(&self) -> T
pub fn clone_baseline_source(&self) -> T
Get the computed value for baseline-source.
sourcepub fn set__servo_overflow_clip_box(&mut self, v: T)
pub fn set__servo_overflow_clip_box(&mut self, v: T)
Set -servo-overflow-clip-box.
sourcepub fn copy__servo_overflow_clip_box_from(&mut self, other: &Self)
pub fn copy__servo_overflow_clip_box_from(&mut self, other: &Self)
Set -servo-overflow-clip-box from other struct.
sourcepub fn reset__servo_overflow_clip_box(&mut self, other: &Self)
pub fn reset__servo_overflow_clip_box(&mut self, other: &Self)
Reset -servo-overflow-clip-box from the initial struct.
sourcepub fn clone__servo_overflow_clip_box(&self) -> T
pub fn clone__servo_overflow_clip_box(&self) -> T
Get the computed value for -servo-overflow-clip-box.
sourcepub fn set_overflow_y(&mut self, v: T)
pub fn set_overflow_y(&mut self, v: T)
Set overflow-y.
sourcepub fn copy_overflow_y_from(&mut self, other: &Self)
pub fn copy_overflow_y_from(&mut self, other: &Self)
Set overflow-y from other struct.
sourcepub fn reset_overflow_y(&mut self, other: &Self)
pub fn reset_overflow_y(&mut self, other: &Self)
Reset overflow-y from the initial struct.
sourcepub fn clone_overflow_y(&self) -> T
pub fn clone_overflow_y(&self) -> T
Get the computed value for overflow-y.
sourcepub fn set_overflow_x(&mut self, v: T)
pub fn set_overflow_x(&mut self, v: T)
Set overflow-x.
sourcepub fn copy_overflow_x_from(&mut self, other: &Self)
pub fn copy_overflow_x_from(&mut self, other: &Self)
Set overflow-x from other struct.
sourcepub fn reset_overflow_x(&mut self, other: &Self)
pub fn reset_overflow_x(&mut self, other: &Self)
Reset overflow-x from the initial struct.
sourcepub fn clone_overflow_x(&self) -> T
pub fn clone_overflow_x(&self) -> T
Get the computed value for overflow-x.
sourcepub fn set_transform(&mut self, v: T)
pub fn set_transform(&mut self, v: T)
Set transform.
sourcepub fn copy_transform_from(&mut self, other: &Self)
pub fn copy_transform_from(&mut self, other: &Self)
Set transform from other struct.
sourcepub fn reset_transform(&mut self, other: &Self)
pub fn reset_transform(&mut self, other: &Self)
Reset transform from the initial struct.
sourcepub fn clone_transform(&self) -> T
pub fn clone_transform(&self) -> T
Get the computed value for transform.
sourcepub fn set_rotate(&mut self, v: T)
pub fn set_rotate(&mut self, v: T)
Set rotate.
sourcepub fn copy_rotate_from(&mut self, other: &Self)
pub fn copy_rotate_from(&mut self, other: &Self)
Set rotate from other struct.
sourcepub fn reset_rotate(&mut self, other: &Self)
pub fn reset_rotate(&mut self, other: &Self)
Reset rotate from the initial struct.
sourcepub fn clone_rotate(&self) -> T
pub fn clone_rotate(&self) -> T
Get the computed value for rotate.
sourcepub fn copy_scale_from(&mut self, other: &Self)
pub fn copy_scale_from(&mut self, other: &Self)
Set scale from other struct.
sourcepub fn reset_scale(&mut self, other: &Self)
pub fn reset_scale(&mut self, other: &Self)
Reset scale from the initial struct.
sourcepub fn clone_scale(&self) -> T
pub fn clone_scale(&self) -> T
Get the computed value for scale.
sourcepub fn set_translate(&mut self, v: T)
pub fn set_translate(&mut self, v: T)
Set translate.
sourcepub fn copy_translate_from(&mut self, other: &Self)
pub fn copy_translate_from(&mut self, other: &Self)
Set translate from other struct.
sourcepub fn reset_translate(&mut self, other: &Self)
pub fn reset_translate(&mut self, other: &Self)
Reset translate from the initial struct.
sourcepub fn clone_translate(&self) -> T
pub fn clone_translate(&self) -> T
Get the computed value for translate.
sourcepub fn set_perspective(&mut self, v: T)
pub fn set_perspective(&mut self, v: T)
Set perspective.
sourcepub fn copy_perspective_from(&mut self, other: &Self)
pub fn copy_perspective_from(&mut self, other: &Self)
Set perspective from other struct.
sourcepub fn reset_perspective(&mut self, other: &Self)
pub fn reset_perspective(&mut self, other: &Self)
Reset perspective from the initial struct.
sourcepub fn clone_perspective(&self) -> T
pub fn clone_perspective(&self) -> T
Get the computed value for perspective.
sourcepub fn set_perspective_origin(&mut self, v: T)
pub fn set_perspective_origin(&mut self, v: T)
Set perspective-origin.
sourcepub fn copy_perspective_origin_from(&mut self, other: &Self)
pub fn copy_perspective_origin_from(&mut self, other: &Self)
Set perspective-origin from other struct.
sourcepub fn reset_perspective_origin(&mut self, other: &Self)
pub fn reset_perspective_origin(&mut self, other: &Self)
Reset perspective-origin from the initial struct.
sourcepub fn clone_perspective_origin(&self) -> T
pub fn clone_perspective_origin(&self) -> T
Get the computed value for perspective-origin.
sourcepub fn set_backface_visibility(&mut self, v: T)
pub fn set_backface_visibility(&mut self, v: T)
Set backface-visibility.
sourcepub fn copy_backface_visibility_from(&mut self, other: &Self)
pub fn copy_backface_visibility_from(&mut self, other: &Self)
Set backface-visibility from other struct.
sourcepub fn reset_backface_visibility(&mut self, other: &Self)
pub fn reset_backface_visibility(&mut self, other: &Self)
Reset backface-visibility from the initial struct.
sourcepub fn clone_backface_visibility(&self) -> T
pub fn clone_backface_visibility(&self) -> T
Get the computed value for backface-visibility.
sourcepub fn set_transform_style(&mut self, v: T)
pub fn set_transform_style(&mut self, v: T)
Set transform-style.
sourcepub fn copy_transform_style_from(&mut self, other: &Self)
pub fn copy_transform_style_from(&mut self, other: &Self)
Set transform-style from other struct.
sourcepub fn reset_transform_style(&mut self, other: &Self)
pub fn reset_transform_style(&mut self, other: &Self)
Reset transform-style from the initial struct.
sourcepub fn clone_transform_style(&self) -> T
pub fn clone_transform_style(&self) -> T
Get the computed value for transform-style.
sourcepub fn set_transform_origin(&mut self, v: T)
pub fn set_transform_origin(&mut self, v: T)
Set transform-origin.
sourcepub fn copy_transform_origin_from(&mut self, other: &Self)
pub fn copy_transform_origin_from(&mut self, other: &Self)
Set transform-origin from other struct.
sourcepub fn reset_transform_origin(&mut self, other: &Self)
pub fn reset_transform_origin(&mut self, other: &Self)
Reset transform-origin from the initial struct.
sourcepub fn clone_transform_origin(&self) -> T
pub fn clone_transform_origin(&self) -> T
Get the computed value for transform-origin.
sourcepub fn set_container_type(&mut self, v: T)
pub fn set_container_type(&mut self, v: T)
Set container-type.
sourcepub fn copy_container_type_from(&mut self, other: &Self)
pub fn copy_container_type_from(&mut self, other: &Self)
Set container-type from other struct.
sourcepub fn reset_container_type(&mut self, other: &Self)
pub fn reset_container_type(&mut self, other: &Self)
Reset container-type from the initial struct.
sourcepub fn clone_container_type(&self) -> T
pub fn clone_container_type(&self) -> T
Get the computed value for container-type.
sourcepub fn set_container_name(&mut self, v: T)
pub fn set_container_name(&mut self, v: T)
Set container-name.
sourcepub fn copy_container_name_from(&mut self, other: &Self)
pub fn copy_container_name_from(&mut self, other: &Self)
Set container-name from other struct.
sourcepub fn reset_container_name(&mut self, other: &Self)
pub fn reset_container_name(&mut self, other: &Self)
Reset container-name from the initial struct.
sourcepub fn clone_container_name(&self) -> T
pub fn clone_container_name(&self) -> T
Get the computed value for container-name.
sourcepub fn copy_zoom_from(&mut self, other: &Self)
pub fn copy_zoom_from(&mut self, other: &Self)
Set zoom from other struct.
sourcepub fn reset_zoom(&mut self, other: &Self)
pub fn reset_zoom(&mut self, other: &Self)
Reset zoom from the initial struct.
sourcepub fn clone_zoom(&self) -> T
pub fn clone_zoom(&self) -> T
Get the computed value for zoom.
sourcepub fn set_adjusted_display(&mut self, dpy: T, is_item_or_root: bool)
pub fn set_adjusted_display(&mut self, dpy: T, is_item_or_root: bool)
Sets the display property, but without touching original_display, except when the adjustment comes from root or item display fixups.
Trait Implementations§
source§impl MallocSizeOf for Box
impl MallocSizeOf for Box
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
impl StructuralPartialEq for Box
Auto Trait Implementations§
impl Freeze for Box
impl RefUnwindSafe for Box
impl Send for Box
impl Sync for Box
impl Unpin for Box
impl UnwindSafe for Box
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more