pub struct Photo<Inst: TkInstance> { /* private fields */ }Implementations§
source§impl<Inst: TkInstance> Photo<Inst>
impl<Inst: TkInstance> Photo<Inst>
pub fn from_name(inst: Inst, name: &str) -> Option<Self>
pub fn blank(&self) -> InterpResult<()>
pub fn cget<Opt>(&self, _name_fn: fn(_: Obj) -> Opt) -> InterpResult<Obj>where Opt: TkOption + Into<TkPhotoOpt>,
pub fn configure<Opts>( &self, opts: impl Into<PathOptsWidgets<Opts, ()>> ) -> InterpResult<()>where Opts: IntoHomoTuple<TkPhotoOpt> + IntoHomoTuple<OptPair>,
pub fn copy<Opts>( &self, source_image: &Photo<Inst>, opts: impl Into<PathOptsWidgets<Opts, ()>> ) -> InterpResult<()>where Opts: IntoHomoTuple<TkPhotoCopyOpt> + IntoHomoTuple<OptPair>,
pub fn data<Opts>( &self, opts: impl Into<PathOptsWidgets<Opts, ()>> ) -> InterpResult<Obj>where Opts: IntoHomoTuple<TkPhotoDataOpt> + IntoHomoTuple<OptPair>,
pub fn get( &self, x: c_int, y: c_int ) -> Result<TkRGB, Enum2<DeError, InterpError>>
pub fn put<Opts>( &self, data: Obj, opts: impl Into<PathOptsWidgets<Opts, ()>> ) -> InterpResult<()>where Opts: IntoHomoTuple<TkPhotoPutOpt> + IntoHomoTuple<OptPair>,
pub fn read<Opts>( &self, filename: impl AsRef<Path>, opts: impl Into<PathOptsWidgets<Opts, ()>> ) -> InterpResult<()>where Opts: IntoHomoTuple<TkPhotoReadOpt> + IntoHomoTuple<OptPair>,
pub fn redither(&self) -> InterpResult<()>
pub fn transparency_get(&self, x: c_int, y: c_int) -> InterpResult<bool>
pub fn transparency_set( &self, x: c_int, y: c_int, transparent: bool ) -> InterpResult<()>
pub fn write<Opts>( &self, filename: impl AsRef<Path>, opts: impl Into<PathOptsWidgets<Opts, ()>> ) -> InterpResult<()>where Opts: IntoHomoTuple<TkPhotoWriteOpt> + IntoHomoTuple<OptPair>,
Trait Implementations§
Auto Trait Implementations§
impl<Inst> RefUnwindSafe for Photo<Inst>where Inst: RefUnwindSafe,
impl<Inst> !Send for Photo<Inst>
impl<Inst> !Sync for Photo<Inst>
impl<Inst> Unpin for Photo<Inst>where Inst: Unpin,
impl<Inst> UnwindSafe for Photo<Inst>where Inst: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more