and [gdk.draw_context.DrawContext.endFrame] calls.
DrawContext.isInFrame
bool isInFrame()Returns true if context is in the process of drawing to its surface.
This is the case between calls to [gdk.draw_context.DrawContext.beginFrame] and [gdk.draw_context.DrawContext.endFrame]. In this situation, drawing commands may be effecting the contents of the context's surface.
Returns
true if the context is between [gdk.draw_context.DrawContext.beginFrame]