Trait tk::ttk_widget::TtkCommonTraits
source · pub trait TtkCommonTraits<TK: TkInstance>where
Self: Deref<Target = Widget<TK>>,{
// Provided methods
fn identify_element(
&self,
x: c_int,
y: c_int
) -> InterpResult<Option<String>> { ... }
fn instate(&self, state_spec: impl Into<TtkStateSpec>) -> InterpResult<bool> { ... }
fn instate_run(
&self,
state_spec: impl Into<TtkStateSpec>,
script: impl Into<Obj>
) -> InterpResult<()> { ... }
fn set_state(&self, state_spec: impl Into<TtkStateSpec>) -> InterpResult<()> { ... }
fn state(
&self
) -> Result<TtkStateSpec, Enum3<InterpError, NotList, TtkStateParseError>> { ... }
}Provided Methods§
fn identify_element(&self, x: c_int, y: c_int) -> InterpResult<Option<String>>
fn instate(&self, state_spec: impl Into<TtkStateSpec>) -> InterpResult<bool>
fn instate_run( &self, state_spec: impl Into<TtkStateSpec>, script: impl Into<Obj> ) -> InterpResult<()>
fn set_state(&self, state_spec: impl Into<TtkStateSpec>) -> InterpResult<()>
fn state( &self ) -> Result<TtkStateSpec, Enum3<InterpError, NotList, TtkStateParseError>>
Object Safety§
This trait is not object safe.