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§
Sourcefn enable_ellipsize(&self, mode: c_int)
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.
Sourcefn disable_ellipsize(&self)
fn disable_ellipsize(&self)
Disable replacing parts of the item text with ellipsis.
See C++ wxDataViewRenderer::DisableEllipsize()
’s documentation.
Sourcefn get_alignment(&self) -> c_int
fn get_alignment(&self) -> c_int
Returns the alignment.
Sourcefn get_ellipsize_mode(&self) -> c_int
fn get_ellipsize_mode(&self) -> c_int
Returns the ellipsize mode used by the renderer.
See C++ wxDataViewRenderer::GetEllipsizeMode()
’s documentation.
Sourcefn get_owner(&self) -> Option<DataViewColumnIsOwned<false>>
fn get_owner(&self) -> Option<DataViewColumnIsOwned<false>>
Returns pointer to the owning wxDataViewColumn.
Sourcefn get_value(&self, value: *mut c_void) -> bool
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.
Sourcefn get_variant_type(&self) -> String
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.
Sourcefn is_compatible_variant_type(&self, variant_type: &str) -> bool
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.
Sourcefn set_alignment(&self, align: c_int)
fn set_alignment(&self, align: c_int)
Sets the alignment of the renderer’s content.
Sourcefn set_owner<D: DataViewColumnMethods>(&self, owner: Option<&D>)
fn set_owner<D: DataViewColumnMethods>(&self, owner: Option<&D>)
Sets the owning wxDataViewColumn.
Sourcefn set_value(&self, value: *const c_void) -> bool
fn set_value(&self, value: *const c_void) -> bool
Set the value of the renderer (and thus its cell) to value.
Sourcefn set_value_adjuster(&self, transformer: *mut c_void)
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.
Sourcefn validate(&self, value: *mut c_void) -> bool
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.
Sourcefn get_value_from_editor_ctrl<W: WindowMethods>(
&self,
editor: Option<&W>,
value: *mut c_void,
) -> bool
fn get_value_from_editor_ctrl<W: WindowMethods>( &self, editor: Option<&W>, value: *mut c_void, ) -> bool
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.