Carlos Garnacho
d0f681e898
GtkStyleContext: Add gtk_style_context_new().
2010-12-04 15:38:22 +01:00
Carlos Garnacho
68bfb94f69
Change semantics of the methods to check whether an animation is running.
...
It actually messed up with the state being actually set, and having a
transition animation running for it. Now this dichotomy is removed, and
gtk_style_context_state_is_running() only checks whether an animation is
running, leaving state checking to flags & GTK_STATE_FLAG_*.
2010-12-04 15:38:22 +01:00
Carlos Garnacho
a79626b7fb
Add theming docs
...
Both API and file format is documented, there's still missing
a migration doc though.
2010-12-04 15:38:21 +01:00
Carlos Garnacho
59b0fa8133
Remove GtkOrientation parameter from gtk_render_handle().
...
The case for paned can be guessed out from the height and width,
for handlebox the orientation parameter doesn't make much sense,
and this way it could also be used for resize grips.
2010-12-04 15:38:21 +01:00
Carlos Garnacho
c575733eda
GtkStyleContext: Fix animation framework to work with the new draw() semantics.
...
Invalidation region coalescing now happens recursively as draw() runs, and the
widget's x/y as now drawing coordinates are 0,0 based.
2010-12-04 15:38:18 +01:00
Carlos Garnacho
ac73a8f7a8
GtkStyleContext: Add gtk_style_context_reset_widgets()
...
This function recalculates the style for all widgets on a screen.
2010-12-04 15:38:15 +01:00
Carlos Garnacho
49ac732a18
GtkStyleContext: Add gtk_style_context_[add|remove]_provider_for_screen()
...
These functions allow per-screen style providers. also, the changed signal
will be emitted whenever a style context changes.
2010-12-04 15:38:14 +01:00
Carlos Garnacho
9f84e101bf
GtkStyleContext: Add gtk_style_context_invalidate().
...
This function will regenerate all styling information.
2010-12-04 15:38:12 +01:00
Carlos Garnacho
61a0544b8b
GtkStyleContext: Add animation machinery.
...
Animation regions are confined through gtk_style_context_[push|pop]_animatable_region,
anything that's painted between these calls will be invalidated if an animation starts
for any of the regions in the stack.
gtk_style_context_notify_state_change() may be called from widgets to indicate a
change for a given GtkStateType, in that case an animation will be started if there
is an animation description for the widget/state.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
bbd0c5a2a2
GtkStyleContext: Declare gtk_style_context_list_classes() in header.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
4781f94de2
Move all theming stack to use GtkStateFlags.
...
This support goes from the theming engines, which are able to retrieve
style for different combined states to the CSS provider, where several
state pseudo-classes may be specified, such as:
GtkButton:active:prelight {}
2010-12-04 15:37:37 +01:00
Carlos Garnacho
a3637ec60d
s/child class/region/ everywhere.
...
"Child class" is an invented term anyway, and it conceptually defines
identifiable regions in widgets.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
9108739c9b
GtkStyleContext: Add gtk_style_context_[gs]et_junction_sides().
...
These functions will help widgets specify how does one element being painted
relate to other contiguous elements.
2010-12-04 15:37:31 +01:00
Carlos Garnacho
143c4b3b60
GtkStyleContext: Add gtk_style_context_lookup_color().
...
gtk_style_lookup_color() now uses this function internally.
2010-12-04 15:37:30 +01:00
Carlos Garnacho
dc216ffb00
GtkStyleContext: Add gtk_style_context_[gs]et_direction().
2010-12-04 15:37:27 +01:00
Carlos Garnacho
c712480912
GtkStyleContext: Add varargs functions for getting widget style properties.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
475f0fc266
GtkStyleContext: Add gtk_style_context_save/restore().
...
This API will be used to have savepoints when adding and removing
style classes information.
2010-12-04 15:37:18 +01:00
Carlos Garnacho
758c3e18cc
GtkStyleContext: Add gtk_style_context_[gs]et_screen()
2010-12-04 15:37:17 +01:00
Carlos Garnacho
41650933fd
GtkStyleContext: Add priv pointer to object struct.
2010-12-04 15:37:17 +01:00
Carlos Garnacho
a256171d34
GtkStyleContext: Add gtk_style_context_lookup_icon_set().
2010-12-04 15:37:16 +01:00
Carlos Garnacho
03370c6e0c
GtkStyleContext: Add methods to get style property values.
2010-12-04 15:37:13 +01:00
Carlos Garnacho
104caa74f0
GtkStyleContext: Add gtk_style_context_list_child_classes().
2010-12-04 15:37:09 +01:00
Carlos Garnacho
f60e3f3a8a
Move GtkChildClassFlags to gtkenums.h.
2010-12-04 15:37:06 +01:00
Carlos Garnacho
f8c74ae54b
GtkStyleContext: Add gtk_render_handle().
2010-12-04 15:36:59 +01:00
Carlos Garnacho
160821042c
GtkStyleContext: Add gtk_render_extension().
2010-12-04 15:36:59 +01:00
Carlos Garnacho
88492a50d6
GtkStyleContext: Add gtk_render_frame_gap().
2010-12-04 15:36:58 +01:00
Carlos Garnacho
6a1b54f8bf
GtkStyleContext: Add gtk_render_slider().
2010-12-04 15:36:57 +01:00
Carlos Garnacho
86727adc4d
GtkStyleContext: Add gtk_render_line().
2010-12-04 15:36:57 +01:00
Carlos Garnacho
f80fbbd829
GtkStyleContext: Add gtk_render_layout().
2010-12-04 15:36:56 +01:00
Carlos Garnacho
0486f5bbc0
GtkStyleContext: Add gtk_render_focus().
2010-12-04 15:36:56 +01:00
Carlos Garnacho
9c3b079c1c
GtkStyleContext: Add gtk_render_expander().
2010-12-04 15:36:55 +01:00
Carlos Garnacho
b4c8eba480
GtkStyleContext: Add gtk_render_frame().
2010-12-04 15:36:55 +01:00
Carlos Garnacho
25488633ec
GtkStyleContext: Add gtk_render_background().
2010-12-04 15:36:54 +01:00
Carlos Garnacho
01a8e06842
GtkStyleContext: Add gtk_render_arrow().
2010-12-04 15:36:54 +01:00
Carlos Garnacho
1c15b140a9
GtkStyleContext: Add gtk_render_option().
2010-12-04 15:36:53 +01:00
Carlos Garnacho
401625b8b3
GtkStyleContext: Add gtk_render_check().
2010-12-04 15:36:53 +01:00
Carlos Garnacho
1d2aa61407
GtkStyleContext: Add child style classes.
...
Child style classes are like style classes, but with additional positional
information. This would be usually set by the parent container.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
9a76d1a332
GtkStyleContext: Add style classes.
...
Style classes are the replacement of detail strings.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
b7e6ae3983
GtkStyleContext: Add gtk_style_context_[gs]et_path()
...
This relates a GtkStyleContext with a widget path, so
all style querying would happen based on it.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
835cc7049c
GtkStyleContext: Add getters and setter for state.
2010-12-04 15:36:51 +01:00
Carlos Garnacho
1a3d964615
GtkStyleContext: Add methods to query composed style.
2010-12-04 15:36:49 +01:00
Carlos Garnacho
2b425d89c8
Add GtkStyleContext.
...
GtkStyleContext will conglomerate the information of several
GtkStyleProviders for widgets and theme engines to query it.
2010-12-04 15:36:48 +01:00