Trait DataViewRendererMethods

Source
pub trait DataViewRendererMethods: ObjectMethods {
Show 18 methods // Provided methods fn enable_ellipsize(&self, mode: c_int) { ... } fn disable_ellipsize(&self) { ... } fn get_alignment(&self) -> c_int { ... } fn get_ellipsize_mode(&self) -> c_int { ... } fn get_owner(&self) -> Option<DataViewColumnIsOwned<false>> { ... } fn get_value(&self, value: *mut c_void) -> bool { ... } fn get_variant_type(&self) -> String { ... } fn is_compatible_variant_type(&self, variant_type: &str) -> bool { ... } fn set_alignment(&self, align: c_int) { ... } fn set_owner<D: DataViewColumnMethods>(&self, owner: Option<&D>) { ... } fn set_value(&self, value: *const c_void) -> bool { ... } fn set_value_adjuster(&self, transformer: *mut c_void) { ... } fn validate(&self, value: *mut c_void) -> bool { ... } fn has_editor_ctrl(&self) -> bool { ... } fn get_value_from_editor_ctrl<W: WindowMethods>( &self, editor: Option<&W>, value: *mut c_void, ) -> bool { ... } fn cancel_editing(&self) { ... } fn finish_editing(&self) -> bool { ... } fn get_editor_ctrl(&self) -> WeakRef<Window> { ... }
}
Expand description

This trait represents C++ wxDataViewRenderer class’s methods and inheritance.

See DataViewRendererIsOwned documentation for the class usage.

Provided Methods§

Source

fn enable_ellipsize(&self, mode: c_int)

Enable or disable replacing parts of the item text with ellipsis to make it fit the column width.

See C++ wxDataViewRenderer::EnableEllipsize()’s documentation.

Source

fn disable_ellipsize(&self)

Disable replacing parts of the item text with ellipsis.

See C++ wxDataViewRenderer::DisableEllipsize()’s documentation.

Source

fn get_alignment(&self) -> c_int

Source

fn get_ellipsize_mode(&self) -> c_int

Returns the ellipsize mode used by the renderer.

See C++ wxDataViewRenderer::GetEllipsizeMode()’s documentation.

Source

fn get_owner(&self) -> Option<DataViewColumnIsOwned<false>>

Returns pointer to the owning wxDataViewColumn.

See C++ wxDataViewRenderer::GetOwner()’s documentation.

Source

fn get_value(&self, value: *mut c_void) -> bool

This methods retrieves the value from the renderer in order to transfer the value back to the data model.

See C++ wxDataViewRenderer::GetValue()’s documentation.

Source

fn get_variant_type(&self) -> String

Returns a string with the type of the wxVariant supported by this renderer.

See C++ wxDataViewRenderer::GetVariantType()’s documentation.

Source

fn is_compatible_variant_type(&self, variant_type: &str) -> bool

Check if the given variant type is compatible with the type expected by this renderer.

See C++ wxDataViewRenderer::IsCompatibleVariantType()’s documentation.

Source

fn set_alignment(&self, align: c_int)

Sets the alignment of the renderer’s content.

See C++ wxDataViewRenderer::SetAlignment()’s documentation.

Source

fn set_owner<D: DataViewColumnMethods>(&self, owner: Option<&D>)

Sets the owning wxDataViewColumn.

See C++ wxDataViewRenderer::SetOwner()’s documentation.

Source

fn set_value(&self, value: *const c_void) -> bool

Set the value of the renderer (and thus its cell) to value.

See C++ wxDataViewRenderer::SetValue()’s documentation.

Source

fn set_value_adjuster(&self, transformer: *mut c_void)

Set the transformer object to be used to customize values before they are rendered.

See C++ wxDataViewRenderer::SetValueAdjuster()’s documentation.

Source

fn validate(&self, value: *mut c_void) -> bool

Before data is committed to the data model, it is passed to this method where it can be checked for validity.

See C++ wxDataViewRenderer::Validate()’s documentation.

Source

fn has_editor_ctrl(&self) -> bool

Source

fn get_value_from_editor_ctrl<W: WindowMethods>( &self, editor: Option<&W>, value: *mut c_void, ) -> bool

Source

fn cancel_editing(&self)

Source

fn finish_editing(&self) -> bool

Source

fn get_editor_ctrl(&self) -> WeakRef<Window>

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.

Implementors§