EditText

Struct EditText 

Source
pub struct EditText<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> EditText<'a>

Source

pub fn new() -> Self

Source

pub fn bounds(&self) -> &Rectangle<Twips>

Source

pub fn with_bounds(self, bounds: Rectangle<Twips>) -> Self

Source

pub fn id(&self) -> CharacterId

Source

pub fn with_id(self, id: CharacterId) -> Self

Source

pub fn font_id(&self) -> Option<CharacterId>

Source

pub fn font_class(&self) -> Option<&'a SwfStr>

Source

pub fn height(&self) -> Option<Twips>

Source

pub fn with_default_font(self) -> Self

Source

pub fn with_font_id(self, font_id: CharacterId, height: Twips) -> Self

Source

pub fn with_font_class(self, font_class: &'a SwfStr, height: Twips) -> Self

Source

pub fn color(&self) -> Option<&Color>

Source

pub fn with_color(self, color: Option<Color>) -> Self

Source

pub fn max_length(&self) -> Option<u16>

Source

pub fn with_max_length(self, max_length: Option<u16>) -> Self

Source

pub fn layout(&self) -> Option<&TextLayout>

Source

pub fn with_layout(self, layout: Option<TextLayout>) -> Self

Source

pub fn variable_name(&self) -> &'a SwfStr

Source

pub fn with_variable_name(self, variable_name: &'a SwfStr) -> Self

Source

pub fn initial_text(&self) -> Option<&'a SwfStr>

Source

pub fn with_initial_text(self, initial_text: Option<&'a SwfStr>) -> Self

Source

pub fn flags(&self) -> EditTextFlag

Source

pub fn is_auto_size(&self) -> bool

Source

pub fn with_is_auto_size(self, value: bool) -> Self

Source

pub fn use_outlines(&self) -> bool

Source

pub fn with_use_outlines(self, value: bool) -> Self

Source

pub fn has_border(&self) -> bool

Source

pub fn with_has_border(self, value: bool) -> Self

Source

pub fn is_html(&self) -> bool

Source

pub fn with_is_html(self, value: bool) -> Self

Source

pub fn is_multiline(&self) -> bool

Source

pub fn with_is_multiline(self, value: bool) -> Self

Source

pub fn is_password(&self) -> bool

Source

pub fn with_is_password(self, value: bool) -> Self

Source

pub fn is_read_only(&self) -> bool

Source

pub fn with_is_read_only(self, value: bool) -> Self

Source

pub fn is_selectable(&self) -> bool

Source

pub fn with_is_selectable(self, value: bool) -> Self

Source

pub fn was_static(&self) -> bool

Source

pub fn with_was_static(self, value: bool) -> Self

Source

pub fn is_word_wrap(&self) -> bool

Source

pub fn with_is_word_wrap(self, value: bool) -> Self

Trait Implementations§

Source§

impl<'a> Clone for EditText<'a>

Source§

fn clone(&self) -> EditText<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for EditText<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EditText<'_>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'a> PartialEq for EditText<'a>

Source§

fn eq(&self, other: &EditText<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Eq for EditText<'a>

Source§

impl<'a> StructuralPartialEq for EditText<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for EditText<'a>

§

impl<'a> RefUnwindSafe for EditText<'a>

§

impl<'a> Send for EditText<'a>

§

impl<'a> Sync for EditText<'a>

§

impl<'a> Unpin for EditText<'a>

§

impl<'a> UnwindSafe for EditText<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.