mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
GtkStyleContext: Store animation region for a bunch of paint operations.
This commit is contained in:
parent
fecc079087
commit
7583f31609
@ -2002,6 +2002,8 @@ gtk_render_option (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_option (priv->theming_engine, cr,
|
||||
x, y, width, height);
|
||||
@ -2024,6 +2026,8 @@ gtk_render_arrow (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, size, size);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_arrow (priv->theming_engine, cr,
|
||||
angle, x, y, size);
|
||||
@ -2046,6 +2050,8 @@ gtk_render_background (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_background (priv->theming_engine, cr, x, y, width, height);
|
||||
}
|
||||
@ -2067,6 +2073,8 @@ gtk_render_frame (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_frame (priv->theming_engine, cr, x, y, width, height);
|
||||
}
|
||||
@ -2088,6 +2096,8 @@ gtk_render_expander (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_expander (priv->theming_engine, cr, x, y, width, height);
|
||||
}
|
||||
@ -2109,6 +2119,8 @@ gtk_render_focus (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_focus (priv->theming_engine, cr, x, y, width, height);
|
||||
}
|
||||
@ -2172,6 +2184,8 @@ gtk_render_slider (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_slider (priv->theming_engine, cr, x, y, width, height, orientation);
|
||||
}
|
||||
@ -2196,6 +2210,8 @@ gtk_render_frame_gap (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_frame_gap (priv->theming_engine, cr,
|
||||
x, y, width, height, gap_side,
|
||||
@ -2220,6 +2236,8 @@ gtk_render_extension (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_extension (priv->theming_engine, cr, x, y, width, height, gap_side);
|
||||
}
|
||||
@ -2242,6 +2260,8 @@ gtk_render_handle (GtkStyleContext *context,
|
||||
priv = context->priv;
|
||||
engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
|
||||
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_handle (priv->theming_engine, cr, x, y, width, height, orientation);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user