pub struct PopupManager { /* private fields */ }Implementations§
Source§impl PopupManager
impl PopupManager
pub fn new( context: PopupContext, display_metrics: Rc<RefCell<DisplayMetrics>>, ) -> Self
pub fn request_popup( &self, handle: PopupHandle, config: PopupConfig, width: f32, height: f32, ) -> PopupHandle
pub fn has_pending_popup(&self) -> bool
pub fn scale_factor(&self) -> f32
pub fn output_size(&self) -> PhysicalSize
pub fn update_scale_factor(&self, scale_factor: f32)
pub fn update_output_size(&self, output_size: PhysicalSize)
pub fn create_pending_popup( self: &Rc<Self>, queue_handle: &QueueHandle<AppState>, parent_layer_surface: &ZwlrLayerSurfaceV1, last_pointer_serial: u32, ) -> Result<Rc<PopupWindow>>
pub fn render_popups(&self) -> Result<()>
pub const fn has_xdg_shell(&self) -> bool
pub fn mark_all_popups_dirty(&self)
pub fn find_popup_key_by_surface_id( &self, surface_id: &ObjectId, ) -> Option<usize>
pub fn find_popup_key_by_fractional_scale_id( &self, fractional_scale_id: &ObjectId, ) -> Option<usize>
pub fn get_popup_window(&self, key: usize) -> Option<Rc<PopupWindow>>
pub fn find_popup_key_by_xdg_popup_id( &self, xdg_popup_id: &ObjectId, ) -> Option<usize>
pub fn find_popup_key_by_xdg_surface_id( &self, xdg_surface_id: &ObjectId, ) -> Option<usize>
pub fn update_popup_viewport( &self, key: usize, logical_width: i32, logical_height: i32, )
pub fn commit_popup_surface(&self, key: usize)
pub fn mark_popup_configured(&self, key: usize)
pub fn close(&self, handle: PopupHandle) -> Result<()>
pub fn find_by_surface(&self, surface_id: &ObjectId) -> Option<PopupHandle>
pub fn find_by_fractional_scale( &self, fractional_scale_id: &ObjectId, ) -> Option<PopupHandle>
pub fn find_by_xdg_popup(&self, xdg_popup_id: &ObjectId) -> Option<PopupHandle>
pub fn find_by_xdg_surface( &self, xdg_surface_id: &ObjectId, ) -> Option<PopupHandle>
pub fn get_active_window( &self, surface: &WlSurface, main_surface_id: &ObjectId, ) -> ActiveWindow
pub fn update_scale_for_fractional_scale_object( &self, fractional_scale_proxy: &WpFractionalScaleV1, scale_120ths: u32, )
Auto Trait Implementations§
impl !Freeze for PopupManager
impl !RefUnwindSafe for PopupManager
impl !Send for PopupManager
impl !Sync for PopupManager
impl Unpin for PopupManager
impl !UnwindSafe for PopupManager
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more