Struct i_slint_compiler::namedreference::NamedReference
source · pub struct NamedReference(_);
Expand description
Reference to a property or callback of a given name within an element.
Implementations§
source§impl NamedReference
impl NamedReference
pub fn new(element: &ElementRc, name: &str) -> Self
pub fn name(&self) -> &str
pub fn element(&self) -> ElementRc
pub fn ty(&self) -> Type
sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
return true if the property has a constant value for the lifetime of the program
sourcepub fn is_externally_modified(&self) -> bool
pub fn is_externally_modified(&self) -> bool
return true if we know that this property is changed by other means than its own binding
sourcepub fn mark_as_set(&self)
pub fn mark_as_set(&self)
Mark that this property is set somewhere in the code
Trait Implementations§
source§impl Clone for NamedReference
impl Clone for NamedReference
source§fn clone(&self) -> NamedReference
fn clone(&self) -> NamedReference
Returns a copy 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 more