mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
actor: Add private get_effective_x_align() method
A method to retrieve the effective horizontal alignment of the actor, taking into consideration the text direction.
This commit is contained in:
parent
90032e0019
commit
473aaf7766
@ -295,6 +295,8 @@ void _clutter_actor_shader_pre_paint (ClutterActor *actor,
|
||||
gboolean repeat);
|
||||
void _clutter_actor_shader_post_paint (ClutterActor *actor);
|
||||
|
||||
ClutterActorAlign _clutter_actor_get_effective_x_align (ClutterActor *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __CLUTTER_ACTOR_PRIVATE_H__ */
|
||||
|
@ -7952,6 +7952,22 @@ effective_align (ClutterActorAlign align,
|
||||
return res;
|
||||
}
|
||||
|
||||
/*< private >
|
||||
* _clutter_actor_get_effective_x_align:
|
||||
* @self: a #ClutterActor
|
||||
*
|
||||
* Retrieves the effective horizontal alignment, taking into
|
||||
* consideration the text direction of @self.
|
||||
*
|
||||
* Return value: the effective horizontal alignment
|
||||
*/
|
||||
ClutterActorAlign
|
||||
_clutter_actor_get_effective_x_align (ClutterActor *self)
|
||||
{
|
||||
return effective_align (clutter_actor_get_x_align (self),
|
||||
clutter_actor_get_text_direction (self));
|
||||
}
|
||||
|
||||
static inline void
|
||||
adjust_for_margin (float margin_start,
|
||||
float margin_end,
|
||||
|
Loading…
Reference in New Issue
Block a user