SystemPopover
QuickGUI の内容を独立したネイティブ子ウィンドウに表示し、親ウィンドウの外側にも広げられます。
#インポート
quickgui から SystemPopover をインポートします。
use quickgui::*;#使い方
SystemPopover::new(320.0, 240.0)#構成
SystemPopover::rootSystemPopover::triggerSystemPopover::content
#API リファレンス
項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。
SystemPopover
ソースを見るpub fn new(width: f32, height: f32) -> Selfsizepub 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—
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—
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—
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>ソースを見る