[−]Struct ms_oforms::controls::form::stream::FormPropMask
Specifies the properties of the control that are not set to the file format default.
For each bit, a value of zero specifies that the corresponding property is the file format default and is not stored in the file.
Methods
impl FormPropMask
pub const BACK_COLOR: FormPropMask
Specifies whether the BackColor property is stored in the DataBlock.BackColor of the FormControl that contains this FormPropMask.
pub const FORE_COLOR: FormPropMask
Specifies whether the ForeColor property is stored in the DataBlock.ForeColor of the FormControl that contains this FormPropMask.
pub const NEXT_AVAILABLE_ID: FormPropMask
Specifies whether the NextAvailableID property is stored in the DataBlock.NextAvailableID of the FormControl that contains this FormPropMask.
pub const BOOLEAN_PROPERTIES: FormPropMask
Specifies whether the BooleanProperties property is stored in the DataBlock.BooleanProperties of the FormControl that contains this FormPropMask.
pub const BORDER_STYLE: FormPropMask
Specifies whether the BorderStyle property is stored in the DataBlock.BorderStyle of the FormControl that contains this FormPropMask.
pub const MOUSE_POINTER: FormPropMask
Specifies whether the MousePointer property is stored in the DataBlock.MousePointer of the FormControl that contains this FormPropMask.
pub const SCROLL_BARS: FormPropMask
Specifies whether the ScrollBars property is stored in the DataBlock.ScrollBars of the FormControl that contains this FormPropMask.
pub const DISPLAYED_SIZE: FormPropMask
Specifies whether the DisplayedSize property is stored in the ExtraDataBlock.DisplayedSize of the FormControl that contains this FormPropMask.
pub const LOGICAL_SIZE: FormPropMask
Specifies whether the LogicalSize property is stored in the ExtraDataBlock.LogicalSize of the FormControl that contains this FormPropMask.
pub const SCROLL_POSITION: FormPropMask
Specifies whether the ScrollPosition property is stored in the ExtraDataBlock.ScrollPosition of the FormControl that contains this FormPropMask.
pub const GROUP_CNT: FormPropMask
Specifies whether the GroupCount property is stored in the DataBlock.GroupCnt of the FormControl that contains this FormPropMask.
pub const MOUSE_ICON: FormPropMask
Specifies whether the MouseIcon property is stored in the StreamData.MouseIcon of the FormControl that contains this FormPropMask. When this bit is set to 1, a value of 0xFFFF MUST be stored in the DataBlock.MouseIcon of the FormControl.
pub const CYCLE: FormPropMask
Specifies whether the Cycle property is stored in the DataBlock.Cycle of the FormControl that contains this FormPropMask.
pub const SPECIAL_EFFECT: FormPropMask
Specifies whether the SpecialEffect property is stored in the DataBlock.SpecialEffect of the FormControl that contains this FormPropMask.
pub const BORDER_COLOR: FormPropMask
Specifies whether the BorderColor property is stored in the DataBlock.BorderColor of the FormControl that contains this FormPropMask.
pub const CAPTION: FormPropMask
Specifies whether the size and compression flag of the Caption property are stored in the DataBlock.LengthAndCompression of the FormControl that contains this FormPropMask and the Caption string is stored in the ExtraDataBlock.Caption of the FormControl.
pub const FONT: FormPropMask
Specifies whether the Font property is stored in the StreamData.GuidAndFont of the FormControl that contains this FormPropMask.
pub const PICTURE: FormPropMask
Specifies whether the Picture property is stored in the StreamData.Picture of the FormControl that contains this FormPropMask.
pub const ZOOM: FormPropMask
Specifies whether the Zoom property is stored in the DataBlock.Zoom of the FormControl that contains this FormPropMask.
pub const PICTURE_ALIGNMENT: FormPropMask
Specifies whether the PictureAlignment property is stored in the DataBlock.PictureAlignment of the FormControl that contains this FormPropMask.
pub const PICTURE_TILING: FormPropMask
Specifies whether the value of the PictureTiling property is not the file format default.
pub const PICTURE_SIZE_MODE: FormPropMask
Specifies whether the PictureSizeMode property is stored in the DataBlock.PictureSizeMode of the FormControl that contains this FormPropMask.
pub const SHAPE_COOKIE: FormPropMask
Specifies whether the ShapeCookie property is stored in the DataBlock.ShapeCookie of the FormControl that contains this FormPropMask.
pub const DRAW_BUFFER: FormPropMask
Specifies whether the DrawBuffer property is stored in the DataBlock.DrawBuffer of the FormControl that contains this FormPropMask. MUST be set to 1.
pub fn empty() -> FormPropMask
Returns an empty set of flags.
pub fn all() -> FormPropMask
Returns the set containing all flags.
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<FormPropMask>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> FormPropMask
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: FormPropMask) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: FormPropMask) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: FormPropMask)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: FormPropMask)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: FormPropMask)
Toggles the specified flags in-place.
pub fn set(&mut self, other: FormPropMask, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Clone for FormPropMask
fn clone(&self) -> FormPropMask
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Extend<FormPropMask> for FormPropMask
fn extend<T: IntoIterator<Item = FormPropMask>>(&mut self, iterator: T)
impl PartialEq<FormPropMask> for FormPropMask
fn eq(&self, other: &FormPropMask) -> bool
fn ne(&self, other: &FormPropMask) -> bool
impl PartialOrd<FormPropMask> for FormPropMask
fn partial_cmp(&self, other: &FormPropMask) -> Option<Ordering>
fn lt(&self, other: &FormPropMask) -> bool
fn le(&self, other: &FormPropMask) -> bool
fn gt(&self, other: &FormPropMask) -> bool
fn ge(&self, other: &FormPropMask) -> bool
impl Eq for FormPropMask
impl Ord for FormPropMask
fn cmp(&self, other: &FormPropMask) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Copy for FormPropMask
impl Debug for FormPropMask
impl Sub<FormPropMask> for FormPropMask
type Output = FormPropMask
The resulting type after applying the -
operator.
fn sub(self, other: FormPropMask) -> FormPropMask
Returns the set difference of the two sets of flags.
impl SubAssign<FormPropMask> for FormPropMask
fn sub_assign(&mut self, other: FormPropMask)
Disables all flags enabled in the set.
impl Not for FormPropMask
type Output = FormPropMask
The resulting type after applying the !
operator.
fn not(self) -> FormPropMask
Returns the complement of this set of flags.
impl BitAnd<FormPropMask> for FormPropMask
type Output = FormPropMask
The resulting type after applying the &
operator.
fn bitand(self, other: FormPropMask) -> FormPropMask
Returns the intersection between the two sets of flags.
impl BitOr<FormPropMask> for FormPropMask
type Output = FormPropMask
The resulting type after applying the |
operator.
fn bitor(self, other: FormPropMask) -> FormPropMask
Returns the union of the two sets of flags.
impl BitXor<FormPropMask> for FormPropMask
type Output = FormPropMask
The resulting type after applying the ^
operator.
fn bitxor(self, other: FormPropMask) -> FormPropMask
Returns the left flags, but with all the right flags toggled.
impl BitAndAssign<FormPropMask> for FormPropMask
fn bitand_assign(&mut self, other: FormPropMask)
Disables all flags disabled in the set.
impl BitOrAssign<FormPropMask> for FormPropMask
fn bitor_assign(&mut self, other: FormPropMask)
Adds the set of flags.
impl BitXorAssign<FormPropMask> for FormPropMask
fn bitxor_assign(&mut self, other: FormPropMask)
Toggles the set of flags.
impl Hash for FormPropMask
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromIterator<FormPropMask> for FormPropMask
fn from_iter<T: IntoIterator<Item = FormPropMask>>(iterator: T) -> FormPropMask
impl Octal for FormPropMask
impl Binary for FormPropMask
impl LowerHex for FormPropMask
impl UpperHex for FormPropMask
Auto Trait Implementations
impl Send for FormPropMask
impl Sync for FormPropMask
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,