imgui::c

Struct ImGuiWindow

#[repr(C)]
pub struct ImGuiWindow {
Show 116 fields pub Ctx: *mut ImGuiContext, pub Name: *mut i8, pub ID: u32, pub Flags: i32, pub FlagsPreviousFrame: i32, pub ChildFlags: i32, pub WindowClass: ImGuiWindowClass, pub Viewport: *mut ImGuiViewportP, pub ViewportId: u32, pub ViewportPos: ImVec2, pub ViewportAllowPlatformMonitorExtend: i32, pub Pos: ImVec2, pub Size: ImVec2, pub SizeFull: ImVec2, pub ContentSize: ImVec2, pub ContentSizeIdeal: ImVec2, pub ContentSizeExplicit: ImVec2, pub WindowPadding: ImVec2, pub WindowRounding: f32, pub WindowBorderSize: f32, pub DecoOuterSizeX1: f32, pub DecoOuterSizeY1: f32, pub DecoOuterSizeX2: f32, pub DecoOuterSizeY2: f32, pub DecoInnerSizeX1: f32, pub DecoInnerSizeY1: f32, pub NameBufLen: i32, pub MoveId: u32, pub TabId: u32, pub ChildId: u32, pub Scroll: ImVec2, pub ScrollMax: ImVec2, pub ScrollTarget: ImVec2, pub ScrollTargetCenterRatio: ImVec2, pub ScrollTargetEdgeSnapDist: ImVec2, pub ScrollbarSizes: ImVec2, pub ScrollbarX: bool, pub ScrollbarY: bool, pub ViewportOwned: bool, pub Active: bool, pub WasActive: bool, pub WriteAccessed: bool, pub Collapsed: bool, pub WantCollapseToggle: bool, pub SkipItems: bool, pub Appearing: bool, pub Hidden: bool, pub IsFallbackWindow: bool, pub IsExplicitChild: bool, pub HasCloseButton: bool, pub ResizeBorderHovered: i8, pub ResizeBorderHeld: i8, pub BeginCount: i16, pub BeginCountPreviousFrame: i16, pub BeginOrderWithinParent: i16, pub BeginOrderWithinContext: i16, pub FocusOrder: i16, pub PopupId: u32, pub AutoFitFramesX: i8, pub AutoFitFramesY: i8, pub AutoFitOnlyGrows: bool, pub AutoPosLastDirection: i32, pub HiddenFramesCanSkipItems: i8, pub HiddenFramesCannotSkipItems: i8, pub HiddenFramesForRenderOnly: i8, pub DisableInputsFrames: i8, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>, pub SetWindowPosVal: ImVec2, pub SetWindowPosPivot: ImVec2, pub IDStack: ImVector_ImGuiID, pub DC: ImGuiWindowTempData, pub OuterRectClipped: ImRect, pub InnerRect: ImRect, pub InnerClipRect: ImRect, pub WorkRect: ImRect, pub ParentWorkRect: ImRect, pub ClipRect: ImRect, pub ContentRegionRect: ImRect, pub HitTestHoleSize: ImVec2ih, pub HitTestHoleOffset: ImVec2ih, pub LastFrameActive: i32, pub LastFrameJustFocused: i32, pub LastTimeActive: f32, pub ItemWidthDefault: f32, pub StateStorage: ImGuiStorage, pub ColumnsStorage: ImVector_ImGuiOldColumns, pub FontWindowScale: f32, pub FontDpiScale: f32, pub SettingsOffset: i32, pub DrawList: *mut ImDrawList, pub DrawListInst: ImDrawList, pub ParentWindow: *mut ImGuiWindow, pub ParentWindowInBeginStack: *mut ImGuiWindow, pub RootWindow: *mut ImGuiWindow, pub RootWindowPopupTree: *mut ImGuiWindow, pub RootWindowDockTree: *mut ImGuiWindow, pub RootWindowForTitleBarHighlight: *mut ImGuiWindow, pub RootWindowForNav: *mut ImGuiWindow, pub NavLastChildNavWindow: *mut ImGuiWindow, pub NavLastIds: [u32; 2], pub NavRectRel: [ImRect; 2], pub NavPreferredScoringPosRel: [ImVec2; 2], pub NavRootFocusScopeId: u32, pub MemoryDrawListIdxCapacity: i32, pub MemoryDrawListVtxCapacity: i32, pub MemoryCompacted: bool, pub _bitfield_align_2: [u8; 0], pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1]>, pub DockOrder: i16, pub DockStyle: ImGuiWindowDockStyle, pub DockNode: *mut ImGuiDockNode, pub DockNodeAsHost: *mut ImGuiDockNode, pub DockId: u32, pub DockTabItemStatusFlags: i32, pub DockTabItemRect: ImRect,
}

Fields§

§Ctx: *mut ImGuiContext§Name: *mut i8§ID: u32§Flags: i32§FlagsPreviousFrame: i32§ChildFlags: i32§WindowClass: ImGuiWindowClass§Viewport: *mut ImGuiViewportP§ViewportId: u32§ViewportPos: ImVec2§ViewportAllowPlatformMonitorExtend: i32§Pos: ImVec2§Size: ImVec2§SizeFull: ImVec2§ContentSize: ImVec2§ContentSizeIdeal: ImVec2§ContentSizeExplicit: ImVec2§WindowPadding: ImVec2§WindowRounding: f32§WindowBorderSize: f32§DecoOuterSizeX1: f32§DecoOuterSizeY1: f32§DecoOuterSizeX2: f32§DecoOuterSizeY2: f32§DecoInnerSizeX1: f32§DecoInnerSizeY1: f32§NameBufLen: i32§MoveId: u32§TabId: u32§ChildId: u32§Scroll: ImVec2§ScrollMax: ImVec2§ScrollTarget: ImVec2§ScrollTargetCenterRatio: ImVec2§ScrollTargetEdgeSnapDist: ImVec2§ScrollbarSizes: ImVec2§ScrollbarX: bool§ScrollbarY: bool§ViewportOwned: bool§Active: bool§WasActive: bool§WriteAccessed: bool§Collapsed: bool§WantCollapseToggle: bool§SkipItems: bool§Appearing: bool§Hidden: bool§IsFallbackWindow: bool§IsExplicitChild: bool§HasCloseButton: bool§ResizeBorderHovered: i8§ResizeBorderHeld: i8§BeginCount: i16§BeginCountPreviousFrame: i16§BeginOrderWithinParent: i16§BeginOrderWithinContext: i16§FocusOrder: i16§PopupId: u32§AutoFitFramesX: i8§AutoFitFramesY: i8§AutoFitOnlyGrows: bool§AutoPosLastDirection: i32§HiddenFramesCanSkipItems: i8§HiddenFramesCannotSkipItems: i8§HiddenFramesForRenderOnly: i8§DisableInputsFrames: i8§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§SetWindowPosVal: ImVec2§SetWindowPosPivot: ImVec2§IDStack: ImVector_ImGuiID§DC: ImGuiWindowTempData§OuterRectClipped: ImRect§InnerRect: ImRect§InnerClipRect: ImRect§WorkRect: ImRect§ParentWorkRect: ImRect§ClipRect: ImRect§ContentRegionRect: ImRect§HitTestHoleSize: ImVec2ih§HitTestHoleOffset: ImVec2ih§LastFrameActive: i32§LastFrameJustFocused: i32§LastTimeActive: f32§ItemWidthDefault: f32§StateStorage: ImGuiStorage§ColumnsStorage: ImVector_ImGuiOldColumns§FontWindowScale: f32§FontDpiScale: f32§SettingsOffset: i32§DrawList: *mut ImDrawList§DrawListInst: ImDrawList§ParentWindow: *mut ImGuiWindow§ParentWindowInBeginStack: *mut ImGuiWindow§RootWindow: *mut ImGuiWindow§RootWindowPopupTree: *mut ImGuiWindow§RootWindowDockTree: *mut ImGuiWindow§RootWindowForTitleBarHighlight: *mut ImGuiWindow§RootWindowForNav: *mut ImGuiWindow§NavLastChildNavWindow: *mut ImGuiWindow§NavLastIds: [u32; 2]§NavRectRel: [ImRect; 2]§NavPreferredScoringPosRel: [ImVec2; 2]§NavRootFocusScopeId: u32§MemoryDrawListIdxCapacity: i32§MemoryDrawListVtxCapacity: i32§MemoryCompacted: bool§_bitfield_align_2: [u8; 0]§_bitfield_2: __BindgenBitfieldUnit<[u8; 1]>§DockOrder: i16§DockStyle: ImGuiWindowDockStyle§DockNode: *mut ImGuiDockNode§DockNodeAsHost: *mut ImGuiDockNode§DockId: u32§DockTabItemStatusFlags: i32§DockTabItemRect: ImRect

Implementations§

§

impl ImGuiWindow

pub fn SetWindowPosAllowFlags(&self) -> i32

pub fn set_SetWindowPosAllowFlags(&mut self, val: i32)

pub fn SetWindowSizeAllowFlags(&self) -> i32

pub fn set_SetWindowSizeAllowFlags(&mut self, val: i32)

pub fn SetWindowCollapsedAllowFlags(&self) -> i32

pub fn set_SetWindowCollapsedAllowFlags(&mut self, val: i32)

pub fn SetWindowDockAllowFlags(&self) -> i32

pub fn set_SetWindowDockAllowFlags(&mut self, val: i32)

pub fn new_bitfield_1( SetWindowPosAllowFlags: i32, SetWindowSizeAllowFlags: i32, SetWindowCollapsedAllowFlags: i32, SetWindowDockAllowFlags: i32, ) -> __BindgenBitfieldUnit<[u8; 4]>

pub fn DockIsActive(&self) -> bool

pub fn set_DockIsActive(&mut self, val: bool)

pub fn DockNodeIsVisible(&self) -> bool

pub fn set_DockNodeIsVisible(&mut self, val: bool)

pub fn DockTabIsVisible(&self) -> bool

pub fn set_DockTabIsVisible(&mut self, val: bool)

pub fn DockTabWantClose(&self) -> bool

pub fn set_DockTabWantClose(&mut self, val: bool)

pub fn new_bitfield_2( DockIsActive: bool, DockNodeIsVisible: bool, DockTabIsVisible: bool, DockTabWantClose: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

§

impl Clone for ImGuiWindow

§

fn clone(&self) -> ImGuiWindow

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ImGuiWindow

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Copy for ImGuiWindow

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.