java.lang.Object
io.qt.QtObject
io.qt.gui.QPainterStateGuard
- All Implemented Interfaces:
QtObjectInterface
,AutoCloseable
RAII convenience class for balanced QPainter::save() and QPainter::restore() calls
Java wrapper for Qt class QPainterStateGuard
- Since:
- This class was introduced in Qt 6.9.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQPainterStateGuard::InitialState
-
Constructor Summary
ConstructorsConstructorDescriptionQPainterStateGuard
(QPainter painter) Overloaded constructor forQPainterStateGuard(io.qt.gui.QPainter, io.qt.gui.QPainterStateGuard.InitialState)
withstate = io.qt.gui.QPainterStateGuard.InitialState.Save
.QPainterStateGuard
(QPainter painter, QPainterStateGuard.InitialState state) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
close()
Deletes the underlying native object.final void
restore()
final void
save()
final void
swap
(QPainterStateGuard other) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QPainterStateGuard
- Parameters:
painter
-state
-
-
QPainterStateGuard
Overloaded constructor for
QPainterStateGuard(io.qt.gui.QPainter, io.qt.gui.QPainterStateGuard.InitialState)
withstate = io.qt.gui.QPainterStateGuard.InitialState.Save
.
-
-
Method Details
-
restore
-
save
-
swap
- Parameters:
other
-
-
close
Deletes the underlying native object.- Specified by:
close
in interfaceAutoCloseable
-