Trait IListBoxConcept
pub trait IListBoxConcept: Inherits<Object> + Inherits<ListBoxConcept> {
type Base: MetaInherits<Node>;
Show 26 methods
// Provided methods
fn add_content_item(&self, abstract_item: &Self::Base) -> Result<(), Error> { ... }
fn remove_content_item(
&self,
abstract_item: &Self::Base,
) -> Result<bool, Error> { ... }
fn remove_all_content_items(&self) -> Result<(), Error> { ... }
fn get_content_item_count(&self) -> Result<u64, Error> { ... }
fn get_content_item(&self, index: u64) -> Result<Weak<Self::Base>, Error> { ... }
unsafe fn get_content_item_unchecked(
&self,
index: u64,
) -> Result<Weak<Self::Base>, Error> { ... }
fn notify_item_added(&self, index: u64) -> Result<(), Error> { ... }
fn notify_item_removed(&self, index: u64) -> Result<(), Error> { ... }
fn notify_item_replaced(&self, index: u64) -> Result<(), Error> { ... }
fn notify_item_count_changed(&self) -> Result<(), Error> { ... }
fn get_item_count(&self) -> Result<i32, Error> { ... }
fn set_item_count(&self, value: i32) -> Result<(), Error> { ... }
fn get_keep_alive_item_count(&self) -> Result<i32, Error> { ... }
fn set_keep_alive_item_count(&self, value: i32) -> Result<(), Error> { ... }
fn get_selected_item_index(&self) -> Result<i32, Error> { ... }
fn set_selected_item_index(&self, value: i32) -> Result<(), Error> { ... }
fn get_selection_behavior(&self) -> Result<SelectionBehavior, Error> { ... }
fn set_selection_behavior(
&self,
value: SelectionBehavior,
) -> Result<(), Error> { ... }
fn get_item_generator_type_name(&self) -> Result<KanziString, Error> { ... }
fn set_item_generator_type_name(
&self,
value: impl AsRef<KanziStr>,
) -> Result<(), Error> { ... }
fn get_item_container_generator_type_name(
&self,
) -> Result<KanziString, Error> { ... }
fn set_item_container_generator_type_name(
&self,
value: impl AsRef<KanziStr>,
) -> Result<(), Error> { ... }
fn get_item_template(&self) -> Result<Option<Weak<Resource>>, Error> { ... }
fn set_item_template(&self, value: Option<&Resource>) -> Result<(), Error> { ... }
fn get_item_container_template(
&self,
) -> Result<Option<Weak<Resource>>, Error> { ... }
fn set_item_container_template(
&self,
value: Option<&Resource>,
) -> Result<(), Error> { ... }
}Expand description
Properties and messages for list boxes.
See: For general documentation about list boxes, see ListBoxConceptImpl.
Required Associated Types§
type Base: MetaInherits<Node>
Provided Methods§
fn add_content_item(&self, abstract_item: &Self::Base) -> Result<(), Error>
fn remove_content_item(&self, abstract_item: &Self::Base) -> Result<bool, Error>
fn remove_all_content_items(&self) -> Result<(), Error>
fn get_content_item_count(&self) -> Result<u64, Error>
fn get_content_item(&self, index: u64) -> Result<Weak<Self::Base>, Error>
fn get_content_item(&self, index: u64) -> Result<Weak<Self::Base>, Error>
§Errors
Returns an INDEX_OUT_OF_BOUNDS error if the index is out of bounds.
unsafe fn get_content_item_unchecked(
&self,
index: u64,
) -> Result<Weak<Self::Base>, Error>
unsafe fn get_content_item_unchecked( &self, index: u64, ) -> Result<Weak<Self::Base>, Error>
§Safety
The caller must ensure that index < self.get_content_item_count().
fn notify_item_added(&self, index: u64) -> Result<(), Error>
fn notify_item_added(&self, index: u64) -> Result<(), Error>
§Errors
Returns an INDEX_OUT_OF_BOUNDS error if the index is out of bounds.
fn notify_item_removed(&self, index: u64) -> Result<(), Error>
fn notify_item_removed(&self, index: u64) -> Result<(), Error>
§Errors
Returns an INDEX_OUT_OF_BOUNDS error if the index is out of bounds.
fn notify_item_replaced(&self, index: u64) -> Result<(), Error>
fn notify_item_replaced(&self, index: u64) -> Result<(), Error>
§Errors
Returns an INDEX_OUT_OF_BOUNDS error if the index is out of bounds.
fn notify_item_count_changed(&self) -> Result<(), Error>
fn notify_item_count_changed(&self) -> Result<(), Error>
Invalidates layout if the item container is changed.
fn get_item_count(&self) -> Result<i32, Error>
fn get_item_count(&self) -> Result<i32, Error>
See: ITEM_COUNT_PROPERTY
fn set_item_count(&self, value: i32) -> Result<(), Error>
fn set_item_count(&self, value: i32) -> Result<(), Error>
See: ITEM_COUNT_PROPERTY
fn get_keep_alive_item_count(&self) -> Result<i32, Error>
fn get_keep_alive_item_count(&self) -> Result<i32, Error>
fn set_keep_alive_item_count(&self, value: i32) -> Result<(), Error>
fn set_keep_alive_item_count(&self, value: i32) -> Result<(), Error>
fn get_selected_item_index(&self) -> Result<i32, Error>
fn get_selected_item_index(&self) -> Result<i32, Error>
fn set_selected_item_index(&self, value: i32) -> Result<(), Error>
fn set_selected_item_index(&self, value: i32) -> Result<(), Error>
fn get_selection_behavior(&self) -> Result<SelectionBehavior, Error>
fn get_selection_behavior(&self) -> Result<SelectionBehavior, Error>
fn set_selection_behavior(&self, value: SelectionBehavior) -> Result<(), Error>
fn set_selection_behavior(&self, value: SelectionBehavior) -> Result<(), Error>
fn get_item_generator_type_name(&self) -> Result<KanziString, Error>
fn get_item_generator_type_name(&self) -> Result<KanziString, Error>
fn get_item_container_generator_type_name(&self) -> Result<KanziString, Error>
fn get_item_container_generator_type_name(&self) -> Result<KanziString, Error>
fn set_item_container_generator_type_name(
&self,
value: impl AsRef<KanziStr>,
) -> Result<(), Error>
fn set_item_container_generator_type_name( &self, value: impl AsRef<KanziStr>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.