pub struct Box {Show 34 fields
pub _moz_default_appearance: T,
pub line_clamp: T,
pub alignment_baseline: T,
pub appearance: T,
pub baseline_shift: T,
pub baseline_source: T,
pub clear: T,
pub contain: T,
pub container_name: T,
pub container_type: T,
pub display: T,
pub float: T,
pub offset_path: T,
pub overflow_x: T,
pub overflow_y: T,
pub overscroll_behavior_x: T,
pub overscroll_behavior_y: T,
pub perspective: T,
pub perspective_origin: T,
pub position: T,
pub rotate: T,
pub scale: T,
pub touch_action: T,
pub transform: T,
pub transform_origin: T,
pub transform_style: T,
pub translate: T,
pub will_change: T,
pub zoom: T,
pub _servo_top_layer: T,
pub scroll_behavior: T,
pub isolation: T,
pub backface_visibility: T,
pub original_display: T,
}Expand description
The Box style struct.
Fields§
§_moz_default_appearance: TThe -moz-default-appearance computed value.
line_clamp: TThe line-clamp computed value.
alignment_baseline: TThe alignment-baseline computed value.
appearance: TThe appearance computed value.
baseline_shift: TThe baseline-shift computed value.
baseline_source: TThe baseline-source computed value.
clear: TThe clear computed value.
contain: TThe contain computed value.
container_name: TThe container-name computed value.
container_type: TThe container-type computed value.
display: TThe display computed value.
float: TThe float computed value.
offset_path: TThe offset-path computed value.
overflow_x: TThe overflow-x computed value.
overflow_y: TThe overflow-y computed value.
overscroll_behavior_x: TThe overscroll-behavior-x computed value.
overscroll_behavior_y: TThe overscroll-behavior-y computed value.
perspective: TThe perspective computed value.
perspective_origin: TThe perspective-origin computed value.
position: TThe position computed value.
rotate: TThe rotate computed value.
scale: TThe scale computed value.
touch_action: TThe touch-action computed value.
transform: TThe transform computed value.
transform_origin: TThe transform-origin computed value.
transform_style: TThe transform-style computed value.
translate: TThe translate computed value.
will_change: TThe will-change computed value.
zoom: TThe zoom computed value.
_servo_top_layer: TThe -servo-top-layer computed value.
scroll_behavior: TThe scroll-behavior computed value.
isolation: TThe isolation computed value.
backface_visibility: TThe backface-visibility computed value.
original_display: TThe 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__moz_default_appearance(&mut self, v: T)
pub fn set__moz_default_appearance(&mut self, v: T)
Set -moz-default-appearance.
Sourcepub fn copy__moz_default_appearance_from(&mut self, other: &Self)
pub fn copy__moz_default_appearance_from(&mut self, other: &Self)
Set -moz-default-appearance from other struct.
Sourcepub fn reset__moz_default_appearance(&mut self, other: &Self)
pub fn reset__moz_default_appearance(&mut self, other: &Self)
Reset -moz-default-appearance from the initial struct.
Sourcepub fn get__moz_default_appearance(&self) -> &T
pub fn get__moz_default_appearance(&self) -> &T
Get a reference to the computed value for -moz-default-appearance.
Sourcepub fn slow_clone__moz_default_appearance(&self) -> T
pub fn slow_clone__moz_default_appearance(&self) -> T
Clone the computed value for -moz-default-appearance. Prefer
get__moz_default_appearance where a reference is enough.
Sourcepub fn _moz_default_appearance_equals(&self, other: &Self) -> bool
pub fn _moz_default_appearance_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for -moz-default-appearance.
Sourcepub fn set_line_clamp(&mut self, v: T)
pub fn set_line_clamp(&mut self, v: T)
Set line-clamp.
Sourcepub fn copy_line_clamp_from(&mut self, other: &Self)
pub fn copy_line_clamp_from(&mut self, other: &Self)
Set line-clamp from other struct.
Sourcepub fn reset_line_clamp(&mut self, other: &Self)
pub fn reset_line_clamp(&mut self, other: &Self)
Reset line-clamp from the initial struct.
Sourcepub fn get_line_clamp(&self) -> &T
pub fn get_line_clamp(&self) -> &T
Get a reference to the computed value for line-clamp.
Sourcepub fn slow_clone_line_clamp(&self) -> T
pub fn slow_clone_line_clamp(&self) -> T
Clone the computed value for line-clamp. Prefer
get_line_clamp where a reference is enough.
Sourcepub fn line_clamp_equals(&self, other: &Self) -> bool
pub fn line_clamp_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for line-clamp.
Sourcepub fn set_alignment_baseline(&mut self, v: T)
pub fn set_alignment_baseline(&mut self, v: T)
Set alignment-baseline.
Sourcepub fn copy_alignment_baseline_from(&mut self, other: &Self)
pub fn copy_alignment_baseline_from(&mut self, other: &Self)
Set alignment-baseline from other struct.
Sourcepub fn reset_alignment_baseline(&mut self, other: &Self)
pub fn reset_alignment_baseline(&mut self, other: &Self)
Reset alignment-baseline from the initial struct.
Sourcepub fn get_alignment_baseline(&self) -> &T
pub fn get_alignment_baseline(&self) -> &T
Get a reference to the computed value for alignment-baseline.
Sourcepub fn slow_clone_alignment_baseline(&self) -> T
pub fn slow_clone_alignment_baseline(&self) -> T
Clone the computed value for alignment-baseline. Prefer
get_alignment_baseline where a reference is enough.
Sourcepub fn alignment_baseline_equals(&self, other: &Self) -> bool
pub fn alignment_baseline_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for alignment-baseline.
Sourcepub fn set_appearance(&mut self, v: T)
pub fn set_appearance(&mut self, v: T)
Set appearance.
Sourcepub fn copy_appearance_from(&mut self, other: &Self)
pub fn copy_appearance_from(&mut self, other: &Self)
Set appearance from other struct.
Sourcepub fn reset_appearance(&mut self, other: &Self)
pub fn reset_appearance(&mut self, other: &Self)
Reset appearance from the initial struct.
Sourcepub fn get_appearance(&self) -> &T
pub fn get_appearance(&self) -> &T
Get a reference to the computed value for appearance.
Sourcepub fn slow_clone_appearance(&self) -> T
pub fn slow_clone_appearance(&self) -> T
Clone the computed value for appearance. Prefer
get_appearance where a reference is enough.
Sourcepub fn appearance_equals(&self, other: &Self) -> bool
pub fn appearance_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for appearance.
Sourcepub fn set_baseline_shift(&mut self, v: T)
pub fn set_baseline_shift(&mut self, v: T)
Set baseline-shift.
Sourcepub fn copy_baseline_shift_from(&mut self, other: &Self)
pub fn copy_baseline_shift_from(&mut self, other: &Self)
Set baseline-shift from other struct.
Sourcepub fn reset_baseline_shift(&mut self, other: &Self)
pub fn reset_baseline_shift(&mut self, other: &Self)
Reset baseline-shift from the initial struct.
Sourcepub fn get_baseline_shift(&self) -> &T
pub fn get_baseline_shift(&self) -> &T
Get a reference to the computed value for baseline-shift.
Sourcepub fn slow_clone_baseline_shift(&self) -> T
pub fn slow_clone_baseline_shift(&self) -> T
Clone the computed value for baseline-shift. Prefer
get_baseline_shift where a reference is enough.
Sourcepub fn baseline_shift_equals(&self, other: &Self) -> bool
pub fn baseline_shift_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for baseline-shift.
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 get_baseline_source(&self) -> &T
pub fn get_baseline_source(&self) -> &T
Get a reference to the computed value for baseline-source.
Sourcepub fn slow_clone_baseline_source(&self) -> T
pub fn slow_clone_baseline_source(&self) -> T
Clone the computed value for baseline-source. Prefer
get_baseline_source where a reference is enough.
Sourcepub fn baseline_source_equals(&self, other: &Self) -> bool
pub fn baseline_source_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for baseline-source.
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 slow_clone_clear(&self) -> T
pub fn slow_clone_clear(&self) -> T
Clone the computed value for clear. Prefer
get_clear where a reference is enough.
Sourcepub fn clear_equals(&self, other: &Self) -> bool
pub fn clear_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for clear.
Sourcepub fn set_contain(&mut self, v: T)
pub fn set_contain(&mut self, v: T)
Set contain.
Sourcepub fn copy_contain_from(&mut self, other: &Self)
pub fn copy_contain_from(&mut self, other: &Self)
Set contain from other struct.
Sourcepub fn reset_contain(&mut self, other: &Self)
pub fn reset_contain(&mut self, other: &Self)
Reset contain from the initial struct.
Sourcepub fn get_contain(&self) -> &T
pub fn get_contain(&self) -> &T
Get a reference to the computed value for contain.
Sourcepub fn slow_clone_contain(&self) -> T
pub fn slow_clone_contain(&self) -> T
Clone the computed value for contain. Prefer
get_contain where a reference is enough.
Sourcepub fn contain_equals(&self, other: &Self) -> bool
pub fn contain_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for contain.
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 get_container_name(&self) -> &T
pub fn get_container_name(&self) -> &T
Get a reference to the computed value for container-name.
Sourcepub fn slow_clone_container_name(&self) -> T
pub fn slow_clone_container_name(&self) -> T
Clone the computed value for container-name. Prefer
get_container_name where a reference is enough.
Sourcepub fn container_name_equals(&self, other: &Self) -> bool
pub fn container_name_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for container-name.
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 get_container_type(&self) -> &T
pub fn get_container_type(&self) -> &T
Get a reference to the computed value for container-type.
Sourcepub fn slow_clone_container_type(&self) -> T
pub fn slow_clone_container_type(&self) -> T
Clone the computed value for container-type. Prefer
get_container_type where a reference is enough.
Sourcepub fn container_type_equals(&self, other: &Self) -> bool
pub fn container_type_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for container-type.
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 get_display(&self) -> &T
pub fn get_display(&self) -> &T
Get a reference to the computed value for display.
Sourcepub fn slow_clone_display(&self) -> T
pub fn slow_clone_display(&self) -> T
Clone the computed value for display. Prefer
get_display where a reference is enough.
Sourcepub fn display_equals(&self, other: &Self) -> bool
pub fn display_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for display.
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 slow_clone_float(&self) -> T
pub fn slow_clone_float(&self) -> T
Clone the computed value for float. Prefer
get_float where a reference is enough.
Sourcepub fn float_equals(&self, other: &Self) -> bool
pub fn float_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for float.
Sourcepub fn set_offset_path(&mut self, v: T)
pub fn set_offset_path(&mut self, v: T)
Set offset-path.
Sourcepub fn copy_offset_path_from(&mut self, other: &Self)
pub fn copy_offset_path_from(&mut self, other: &Self)
Set offset-path from other struct.
Sourcepub fn reset_offset_path(&mut self, other: &Self)
pub fn reset_offset_path(&mut self, other: &Self)
Reset offset-path from the initial struct.
Sourcepub fn get_offset_path(&self) -> &T
pub fn get_offset_path(&self) -> &T
Get a reference to the computed value for offset-path.
Sourcepub fn slow_clone_offset_path(&self) -> T
pub fn slow_clone_offset_path(&self) -> T
Clone the computed value for offset-path. Prefer
get_offset_path where a reference is enough.
Sourcepub fn offset_path_equals(&self, other: &Self) -> bool
pub fn offset_path_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for offset-path.
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 get_overflow_x(&self) -> &T
pub fn get_overflow_x(&self) -> &T
Get a reference to the computed value for overflow-x.
Sourcepub fn slow_clone_overflow_x(&self) -> T
pub fn slow_clone_overflow_x(&self) -> T
Clone the computed value for overflow-x. Prefer
get_overflow_x where a reference is enough.
Sourcepub fn overflow_x_equals(&self, other: &Self) -> bool
pub fn overflow_x_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for overflow-x.
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 get_overflow_y(&self) -> &T
pub fn get_overflow_y(&self) -> &T
Get a reference to the computed value for overflow-y.
Sourcepub fn slow_clone_overflow_y(&self) -> T
pub fn slow_clone_overflow_y(&self) -> T
Clone the computed value for overflow-y. Prefer
get_overflow_y where a reference is enough.
Sourcepub fn overflow_y_equals(&self, other: &Self) -> bool
pub fn overflow_y_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for overflow-y.
Sourcepub fn set_overscroll_behavior_x(&mut self, v: T)
pub fn set_overscroll_behavior_x(&mut self, v: T)
Set overscroll-behavior-x.
Sourcepub fn copy_overscroll_behavior_x_from(&mut self, other: &Self)
pub fn copy_overscroll_behavior_x_from(&mut self, other: &Self)
Set overscroll-behavior-x from other struct.
Sourcepub fn reset_overscroll_behavior_x(&mut self, other: &Self)
pub fn reset_overscroll_behavior_x(&mut self, other: &Self)
Reset overscroll-behavior-x from the initial struct.
Sourcepub fn get_overscroll_behavior_x(&self) -> &T
pub fn get_overscroll_behavior_x(&self) -> &T
Get a reference to the computed value for overscroll-behavior-x.
Sourcepub fn slow_clone_overscroll_behavior_x(&self) -> T
pub fn slow_clone_overscroll_behavior_x(&self) -> T
Clone the computed value for overscroll-behavior-x. Prefer
get_overscroll_behavior_x where a reference is enough.
Sourcepub fn overscroll_behavior_x_equals(&self, other: &Self) -> bool
pub fn overscroll_behavior_x_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for overscroll-behavior-x.
Sourcepub fn set_overscroll_behavior_y(&mut self, v: T)
pub fn set_overscroll_behavior_y(&mut self, v: T)
Set overscroll-behavior-y.
Sourcepub fn copy_overscroll_behavior_y_from(&mut self, other: &Self)
pub fn copy_overscroll_behavior_y_from(&mut self, other: &Self)
Set overscroll-behavior-y from other struct.
Sourcepub fn reset_overscroll_behavior_y(&mut self, other: &Self)
pub fn reset_overscroll_behavior_y(&mut self, other: &Self)
Reset overscroll-behavior-y from the initial struct.
Sourcepub fn get_overscroll_behavior_y(&self) -> &T
pub fn get_overscroll_behavior_y(&self) -> &T
Get a reference to the computed value for overscroll-behavior-y.
Sourcepub fn slow_clone_overscroll_behavior_y(&self) -> T
pub fn slow_clone_overscroll_behavior_y(&self) -> T
Clone the computed value for overscroll-behavior-y. Prefer
get_overscroll_behavior_y where a reference is enough.
Sourcepub fn overscroll_behavior_y_equals(&self, other: &Self) -> bool
pub fn overscroll_behavior_y_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for overscroll-behavior-y.
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 get_perspective(&self) -> &T
pub fn get_perspective(&self) -> &T
Get a reference to the computed value for perspective.
Sourcepub fn slow_clone_perspective(&self) -> T
pub fn slow_clone_perspective(&self) -> T
Clone the computed value for perspective. Prefer
get_perspective where a reference is enough.
Sourcepub fn perspective_equals(&self, other: &Self) -> bool
pub fn perspective_equals(&self, other: &Self) -> bool
Whether self and other have the same 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 get_perspective_origin(&self) -> &T
pub fn get_perspective_origin(&self) -> &T
Get a reference to the computed value for perspective-origin.
Sourcepub fn slow_clone_perspective_origin(&self) -> T
pub fn slow_clone_perspective_origin(&self) -> T
Clone the computed value for perspective-origin. Prefer
get_perspective_origin where a reference is enough.
Sourcepub fn perspective_origin_equals(&self, other: &Self) -> bool
pub fn perspective_origin_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for perspective-origin.
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 get_position(&self) -> &T
pub fn get_position(&self) -> &T
Get a reference to the computed value for position.
Sourcepub fn slow_clone_position(&self) -> T
pub fn slow_clone_position(&self) -> T
Clone the computed value for position. Prefer
get_position where a reference is enough.
Sourcepub fn position_equals(&self, other: &Self) -> bool
pub fn position_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for position.
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 get_rotate(&self) -> &T
pub fn get_rotate(&self) -> &T
Get a reference to the computed value for rotate.
Sourcepub fn slow_clone_rotate(&self) -> T
pub fn slow_clone_rotate(&self) -> T
Clone the computed value for rotate. Prefer
get_rotate where a reference is enough.
Sourcepub fn rotate_equals(&self, other: &Self) -> bool
pub fn rotate_equals(&self, other: &Self) -> bool
Whether self and other have the same 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 slow_clone_scale(&self) -> T
pub fn slow_clone_scale(&self) -> T
Clone the computed value for scale. Prefer
get_scale where a reference is enough.
Sourcepub fn scale_equals(&self, other: &Self) -> bool
pub fn scale_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for scale.
Sourcepub fn set_touch_action(&mut self, v: T)
pub fn set_touch_action(&mut self, v: T)
Set touch-action.
Sourcepub fn copy_touch_action_from(&mut self, other: &Self)
pub fn copy_touch_action_from(&mut self, other: &Self)
Set touch-action from other struct.
Sourcepub fn reset_touch_action(&mut self, other: &Self)
pub fn reset_touch_action(&mut self, other: &Self)
Reset touch-action from the initial struct.
Sourcepub fn get_touch_action(&self) -> &T
pub fn get_touch_action(&self) -> &T
Get a reference to the computed value for touch-action.
Sourcepub fn slow_clone_touch_action(&self) -> T
pub fn slow_clone_touch_action(&self) -> T
Clone the computed value for touch-action. Prefer
get_touch_action where a reference is enough.
Sourcepub fn touch_action_equals(&self, other: &Self) -> bool
pub fn touch_action_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for touch-action.
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 get_transform(&self) -> &T
pub fn get_transform(&self) -> &T
Get a reference to the computed value for transform.
Sourcepub fn slow_clone_transform(&self) -> T
pub fn slow_clone_transform(&self) -> T
Clone the computed value for transform. Prefer
get_transform where a reference is enough.
Sourcepub fn transform_equals(&self, other: &Self) -> bool
pub fn transform_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for transform.
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 get_transform_origin(&self) -> &T
pub fn get_transform_origin(&self) -> &T
Get a reference to the computed value for transform-origin.
Sourcepub fn slow_clone_transform_origin(&self) -> T
pub fn slow_clone_transform_origin(&self) -> T
Clone the computed value for transform-origin. Prefer
get_transform_origin where a reference is enough.
Sourcepub fn transform_origin_equals(&self, other: &Self) -> bool
pub fn transform_origin_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for transform-origin.
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 get_transform_style(&self) -> &T
pub fn get_transform_style(&self) -> &T
Get a reference to the computed value for transform-style.
Sourcepub fn slow_clone_transform_style(&self) -> T
pub fn slow_clone_transform_style(&self) -> T
Clone the computed value for transform-style. Prefer
get_transform_style where a reference is enough.
Sourcepub fn transform_style_equals(&self, other: &Self) -> bool
pub fn transform_style_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for transform-style.
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 get_translate(&self) -> &T
pub fn get_translate(&self) -> &T
Get a reference to the computed value for translate.
Sourcepub fn slow_clone_translate(&self) -> T
pub fn slow_clone_translate(&self) -> T
Clone the computed value for translate. Prefer
get_translate where a reference is enough.
Sourcepub fn translate_equals(&self, other: &Self) -> bool
pub fn translate_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for translate.
Sourcepub fn set_will_change(&mut self, v: T)
pub fn set_will_change(&mut self, v: T)
Set will-change.
Sourcepub fn copy_will_change_from(&mut self, other: &Self)
pub fn copy_will_change_from(&mut self, other: &Self)
Set will-change from other struct.
Sourcepub fn reset_will_change(&mut self, other: &Self)
pub fn reset_will_change(&mut self, other: &Self)
Reset will-change from the initial struct.
Sourcepub fn get_will_change(&self) -> &T
pub fn get_will_change(&self) -> &T
Get a reference to the computed value for will-change.
Sourcepub fn slow_clone_will_change(&self) -> T
pub fn slow_clone_will_change(&self) -> T
Clone the computed value for will-change. Prefer
get_will_change where a reference is enough.
Sourcepub fn will_change_equals(&self, other: &Self) -> bool
pub fn will_change_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for will-change.
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 slow_clone_zoom(&self) -> T
pub fn slow_clone_zoom(&self) -> T
Clone the computed value for zoom. Prefer
get_zoom where a reference is enough.
Sourcepub fn zoom_equals(&self, other: &Self) -> bool
pub fn zoom_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for zoom.
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 get__servo_top_layer(&self) -> &T
pub fn get__servo_top_layer(&self) -> &T
Get a reference to the computed value for -servo-top-layer.
Sourcepub fn slow_clone__servo_top_layer(&self) -> T
pub fn slow_clone__servo_top_layer(&self) -> T
Clone the computed value for -servo-top-layer. Prefer
get__servo_top_layer where a reference is enough.
Sourcepub fn _servo_top_layer_equals(&self, other: &Self) -> bool
pub fn _servo_top_layer_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for -servo-top-layer.
Sourcepub fn set_scroll_behavior(&mut self, v: T)
pub fn set_scroll_behavior(&mut self, v: T)
Set scroll-behavior.
Sourcepub fn copy_scroll_behavior_from(&mut self, other: &Self)
pub fn copy_scroll_behavior_from(&mut self, other: &Self)
Set scroll-behavior from other struct.
Sourcepub fn reset_scroll_behavior(&mut self, other: &Self)
pub fn reset_scroll_behavior(&mut self, other: &Self)
Reset scroll-behavior from the initial struct.
Sourcepub fn get_scroll_behavior(&self) -> &T
pub fn get_scroll_behavior(&self) -> &T
Get a reference to the computed value for scroll-behavior.
Sourcepub fn slow_clone_scroll_behavior(&self) -> T
pub fn slow_clone_scroll_behavior(&self) -> T
Clone the computed value for scroll-behavior. Prefer
get_scroll_behavior where a reference is enough.
Sourcepub fn scroll_behavior_equals(&self, other: &Self) -> bool
pub fn scroll_behavior_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for scroll-behavior.
Sourcepub fn set_isolation(&mut self, v: T)
pub fn set_isolation(&mut self, v: T)
Set isolation.
Sourcepub fn copy_isolation_from(&mut self, other: &Self)
pub fn copy_isolation_from(&mut self, other: &Self)
Set isolation from other struct.
Sourcepub fn reset_isolation(&mut self, other: &Self)
pub fn reset_isolation(&mut self, other: &Self)
Reset isolation from the initial struct.
Sourcepub fn get_isolation(&self) -> &T
pub fn get_isolation(&self) -> &T
Get a reference to the computed value for isolation.
Sourcepub fn slow_clone_isolation(&self) -> T
pub fn slow_clone_isolation(&self) -> T
Clone the computed value for isolation. Prefer
get_isolation where a reference is enough.
Sourcepub fn isolation_equals(&self, other: &Self) -> bool
pub fn isolation_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for isolation.
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 get_backface_visibility(&self) -> &T
pub fn get_backface_visibility(&self) -> &T
Get a reference to the computed value for backface-visibility.
Sourcepub fn slow_clone_backface_visibility(&self) -> T
pub fn slow_clone_backface_visibility(&self) -> T
Clone the computed value for backface-visibility. Prefer
get_backface_visibility where a reference is enough.
Sourcepub fn backface_visibility_equals(&self, other: &Self) -> bool
pub fn backface_visibility_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for backface-visibility.
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 UnsafeUnpin 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§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