本文へスキップ

SystemPopover

QuickGUI の内容を独立したネイティブ子ウィンドウに表示し、親ウィンドウの外側にも広げられます。

#インポート

quickgui から SystemPopover をインポートします。

use quickgui::*;

#使い方

SystemPopover::new(320.0, 240.0)

#構成

  • SystemPopover::root
  • SystemPopover::trigger
  • SystemPopover::content

#API リファレンス

項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。

SystemPopover

ソースを見る
pub fn new(width: f32, height: f32) -> Self
sizepub const fn size(self) -> Size—

Configures size for this part.

pub const fn size(self) -> Size
ソースを見る
placementpub const fn placement(mut self, placement: AnchorPlacement) -> Self—

Configures placement for this part.

pub const fn placement(mut self, placement: AnchorPlacement) -> Self
ソースを見る
gappub fn gap(mut self, gap: f32) -> Self—

Configures gap for this part.

pub fn gap(mut self, gap: f32) -> Self
ソースを見る
viewport_marginpub fn viewport_margin(mut self, margin: f32) -> Self—

Set the collision margin inside the display work area.

pub fn viewport_margin(mut self, margin: f32) -> Self
ソースを見る
dismiss_on_escapepub const fn dismiss_on_escape(mut self, dismiss: bool) -> Self—

Configures dismiss on escape for this part.

pub const fn dismiss_on_escape(mut self, dismiss: bool) -> Self
ソースを見る
dismiss_on_pointer_outsidepub const fn dismiss_on_pointer_outside(mut self, dismiss: bool) -> Self—

Configures dismiss on pointer outside for this part.

pub const fn dismiss_on_pointer_outside(mut self, dismiss: bool) -> Self
ソースを見る
offsetpub fn offset(mut self, x: f32, y: f32) -> Self—

Configures offset for this part.

pub fn offset(mut self, x: f32, y: f32) -> Self
ソースを見る
constraint_adjustmentpub const fn constraint_adjustment(mut self, constraints: PopoverConstraintAdjustment) -> Self—

Configures constraint adjustment for this part.

pub const fn constraint_adjustment(mut self, constraints: PopoverConstraintAdjustment) -> Self
ソースを見る
grabpub const fn grab(mut self, grab: bool) -> Self—

Select menu-style focus and outside/Escape dismissal. Passive tooltips and preview surfaces use `grab(false)` and own no event monitor.

pub const fn grab(mut self, grab: bool) -> Self
ソースを見る
accepts_key_focuspub const fn accepts_key_focus(mut self, accepts_key_focus: bool) -> Self—

Allow or forbid native key-window ownership after pointer interaction. `false` keeps an interactive child panel permanently non-key and also disables grabbing, which lets an owner-window text input retain keyboard and IME focus.

pub const fn accepts_key_focus(mut self, accepts_key_focus: bool) -> Self
ソースを見る
popover_optionspub fn popover_options(self) -> PopoverOptions—

Configures popover options for this part.

pub fn popover_options(self) -> PopoverOptions
ソースを見る
window_optionspub fn window_options(self, title: impl Into<String>) -> WindowOptions—

Build transparent, borderless window options without choosing application presentation.

pub fn window_options(self, title: impl Into<String>) -> WindowOptions
ソースを見る
openpub fn open<V: View>( self, cx: &mut EventContext, anchor: impl Into<ElementId>, title: impl Into<String>, view: V, ) -> Result<WindowHandle, WindowCommandError>—

Open the overflow-capable child using the latest retained bounds of `anchor`.

pub fn open<V: View>( self, cx: &mut EventContext, anchor: impl Into<ElementId>, title: impl Into<String>, view: V, ) -> Result<WindowHandle, WindowCommandError>
ソースを見る