Skip to content

PixelUI.Window

Extends: PixelUI.Frame

A floating window widget with an optional title bar and dragging support. Extends Frame by adding chrome controls and layered ordering.

Properties

NameTypeDescription
draggablebooleanWhether the window can be dragged by the title bar
resizablebooleanWhether the window size can be adjusted via drag handles
closablebooleanWhether the window shows a close button
maximizablebooleanWhether the window shows a maximize/restore button
private_titleBar
private_titleLayoutCache
private_titleButtonRects
private_dragging
private_dragSource
private_dragIdentifier
private_dragOffsetX
private_dragOffsetY
private_resizing
private_resizeSource
private_resizeIdentifier
private_resizeEdges
private_resizeStart
private_isMaximized
private_restoreRect

Methods

new

lua
new()

_refreshTitleBarState

lua
_refreshTitleBarState()

_invalidateTitleLayout

lua
_invalidateTitleLayout()

_computeTitleLayout

lua
_computeTitleLayout()

_hitTestTitleButton

lua
_hitTestTitleButton()

_fillTitleBarPixels

lua
_fillTitleBarPixels()

_hitTestResize

lua
_hitTestResize()

_beginResize

lua
_beginResize()

_updateResize

lua
_updateResize()

_endResize

lua
_endResize()

_restoreFromMaximize

lua
_restoreFromMaximize()

_computeMaximizedGeometry

lua
_computeMaximizedGeometry()

maximize

lua
maximize()

restore

lua
restore()

toggleMaximize

lua
toggleMaximize()

close

lua
close()

_getVisibleTitleBarHeight

lua
_getVisibleTitleBarHeight()

setTitleBar

lua
setTitleBar()

getTitleBar

lua
getTitleBar()

setDraggable

lua
setDraggable()

isDraggable

lua
isDraggable()

setResizable

lua
setResizable()

isResizable

lua
isResizable()

setClosable

lua
setClosable()

isClosable

lua
isClosable()

setMaximizable

lua
setMaximizable()

isMaximizable

lua
isMaximizable()

setTitle

lua
setTitle()

getContentOffset

lua
getContentOffset()

setSize

lua
setSize()

setBorder

lua
setBorder()

bringToFront

lua
bringToFront()

_pointInTitleBar

lua
_pointInTitleBar()

_beginDrag

lua
_beginDrag()

_updateDragPosition

lua
_updateDragPosition()

_endDrag

lua
_endDrag()

draw

lua
draw()

handleEvent

lua
handleEvent()

Released under the MIT License.