• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ clutter_actor_queue_relayout函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中clutter_actor_queue_relayout函数的典型用法代码示例。如果您正苦于以下问题:C++ clutter_actor_queue_relayout函数的具体用法?C++ clutter_actor_queue_relayout怎么用?C++ clutter_actor_queue_relayout使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了clutter_actor_queue_relayout函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: penge_block_container_set_spacing

void
penge_block_container_set_spacing (PengeBlockContainer *pbc,
                                   gfloat               spacing)
{
  PengeBlockContainerPrivate *priv = GET_PRIVATE (pbc);

  priv->spacing = spacing;

  g_object_notify (G_OBJECT (pbc), "spacing");

  clutter_actor_queue_relayout (CLUTTER_ACTOR (pbc));
}
开发者ID:Cordia,项目名称:dawati-shell,代码行数:12,代码来源:penge-block-container.c


示例2: clutter_align_constraint_set_factor

/**
 * clutter_align_constraint_set_factor:
 * @align: a #ClutterAlignConstraint
 * @factor: the alignment factor, between 0.0 and 1.0
 *
 * Sets the alignment factor of the constraint
 *
 * The factor depends on the #ClutterAlignConstraint:align-axis property
 * and it is a value between 0.0 (meaning left, when
 * #ClutterAlignConstraint:align-axis is set to %CLUTTER_ALIGN_X_AXIS; or
 * meaning top, when #ClutterAlignConstraint:align-axis is set to
 * %CLUTTER_ALIGN_Y_AXIS) and 1.0 (meaning right, when
 * #ClutterAlignConstraint:align-axis is set to %CLUTTER_ALIGN_X_AXIS; or
 * meaning bottom, when #ClutterAlignConstraint:align-axis is set to
 * %CLUTTER_ALIGN_Y_AXIS). A value of 0.5 aligns in the middle in either
 * cases
 *
 * Since: 1.4
 */
void
clutter_align_constraint_set_factor (ClutterAlignConstraint *align,
                                     gfloat                  factor)
{
  g_return_if_fail (CLUTTER_IS_ALIGN_CONSTRAINT (align));

  align->factor = CLAMP (factor, 0.0, 1.0);

  if (align->actor != NULL)
    clutter_actor_queue_relayout (align->actor);

  _clutter_notify_by_pspec (G_OBJECT (align), obj_props[PROP_FACTOR]);
}
开发者ID:nobled,项目名称:clutter,代码行数:32,代码来源:clutter-align-constraint.c


示例3: mpl_panel_background_stage_allocation_cb

/*
 * Track size of stage
 */
static void
mpl_panel_background_stage_allocation_cb (ClutterActor *stage,
                                          GParamSpec   *spec,
                                          ClutterActor *background)
{
  gfloat width, height, swidth, sheight;

  clutter_actor_get_size (stage, &swidth, &sheight);
  clutter_actor_get_size (background, &width, &height);

  if (width != swidth || height != sheight)
    clutter_actor_queue_relayout (background);
}
开发者ID:dudochkin-victor,项目名称:mutter-netbook,代码行数:16,代码来源:mpl-panel-background.c


示例4: mx_table_actor_added

/*
 * ClutterContainer Implementation
 */
static void
mx_table_actor_added (ClutterContainer *container,
                      ClutterActor     *actor)
{
  MxTableChild *meta;

  meta = (MxTableChild *) clutter_container_get_child_meta (container, actor);

  /* default position of the actor is 0, 0 */
  _mx_table_update_row_col (MX_TABLE (container), meta);

  clutter_actor_queue_relayout (CLUTTER_ACTOR (container));
}
开发者ID:ManMower,项目名称:mx,代码行数:16,代码来源:mx-table.c


示例5: st_widget_recompute_style

static void
st_widget_recompute_style (StWidget    *widget,
                           StThemeNode *old_theme_node)
{
  StThemeNode *new_theme_node = st_widget_get_theme_node (widget);

  if (!old_theme_node ||
      !st_theme_node_geometry_equal (old_theme_node, new_theme_node))
    clutter_actor_queue_relayout ((ClutterActor *) widget);

  g_signal_emit (widget, signals[STYLE_CHANGED], 0);
  widget->priv->is_style_dirty = FALSE;
}
开发者ID:MarkieMark,项目名称:gnome-shell,代码行数:13,代码来源:st-widget.c


示例6: st_box_layout_set_align_end

/**
 * st_box_layout_set_align_end:
 * @box: A #StBoxLayout
 * @align_end: %TRUE if the layout should use align-end
 *
 * Set the value of the #StBoxLayout::align-end property.
 *
 */
void
st_box_layout_set_align_end (StBoxLayout *box,
                             gboolean     align_end)
{
    g_return_if_fail (ST_IS_BOX_LAYOUT (box));

    if (box->priv->is_align_end != align_end)
    {
        box->priv->is_align_end = align_end;
        clutter_actor_queue_relayout ((ClutterActor*) box);

        g_object_notify (G_OBJECT (box), "align-end");
    }
}
开发者ID:nil84,项目名称:Cinnamon,代码行数:22,代码来源:st-box-layout.c


示例7: st_box_layout_set_vertical

/**
 * st_box_layout_set_vertical:
 * @box: A #StBoxLayout
 * @vertical: %TRUE if the layout should be vertical
 *
 * Set the value of the #StBoxLayout::vertical property
 *
 */
void
st_box_layout_set_vertical (StBoxLayout *box,
                            gboolean     vertical)
{
  g_return_if_fail (ST_IS_BOX_LAYOUT (box));

  if (box->priv->is_vertical != vertical)
    {
      box->priv->is_vertical = vertical;
      clutter_actor_queue_relayout ((ClutterActor*) box);

      g_object_notify (G_OBJECT (box), "vertical");
    }
}
开发者ID:MarxGonzalez,项目名称:Cinnamon,代码行数:22,代码来源:st-box-layout.c


示例8: st_box_layout_set_pack_start

/**
 * st_box_layout_set_pack_start:
 * @box: A #StBoxLayout
 * @pack_start: %TRUE if the layout should use pack-start
 *
 * Set the value of the #StBoxLayout::pack-start property.
 *
 */
void
st_box_layout_set_pack_start (StBoxLayout *box,
                              gboolean     pack_start)
{
  g_return_if_fail (ST_IS_BOX_LAYOUT (box));

  if (box->priv->is_pack_start != pack_start)
    {
      box->priv->is_pack_start = pack_start;
      clutter_actor_queue_relayout ((ClutterActor*) box);

      g_object_notify (G_OBJECT (box), "pack-start");
    }
}
开发者ID:MarxGonzalez,项目名称:Cinnamon,代码行数:22,代码来源:st-box-layout.c


示例9: shell_embedded_window_check_resize

static void
shell_embedded_window_check_resize (GtkContainer *container)
{
  ShellEmbeddedWindow *window = SHELL_EMBEDDED_WINDOW (container);

  /* Check resize is called when a resize is queued on something
   * inside the GtkWindow; we need to make sure that in response
   * to this gtk_widget_size_request() and then
   * gtk_widget_size_allocate() are called; we defer to the Clutter
   * logic and assume it will do the right thing.
   */
  if (window->priv->actor)
    clutter_actor_queue_relayout (CLUTTER_ACTOR (window->priv->actor));
}
开发者ID:PeterDaveHello,项目名称:deepin-gnome-shell,代码行数:14,代码来源:shell-embedded-window.c


示例10: clutter_gdk_set_stage_foreign

/**
 * clutter_gdk_set_stage_foreign:
 * @stage: a #ClutterStage
 * @window: an existing #GdkWindow
 *
 * Target the #ClutterStage to use an existing external #GdkWindow
 *
 * Return value: %TRUE if foreign window is valid
 *
 * Since: 1.10
 */
gboolean
clutter_gdk_set_stage_foreign (ClutterStage *stage,
                               GdkWindow    *window)
{
  ForeignWindowClosure closure;
  ClutterStageGdk *stage_gdk;
  ClutterStageWindow *impl;
  ClutterActor *actor;

  g_return_val_if_fail (CLUTTER_IS_STAGE (stage), FALSE);
  g_return_val_if_fail (!CLUTTER_ACTOR_IN_DESTRUCTION (stage), FALSE);
  g_return_val_if_fail (GDK_IS_WINDOW (window), FALSE);

  impl = _clutter_stage_get_window (stage);
  if (!CLUTTER_IS_STAGE_GDK (impl))
    {
      g_critical ("The Clutter backend is not a GDK backend");
      return FALSE;
    }

  stage_gdk = CLUTTER_STAGE_GDK (impl);

  if (g_object_get_data (G_OBJECT (window), "clutter-stage-window") != NULL)
    {
      g_critical ("The provided GdkWindow is already in use by another ClutterStage");
      return FALSE;
    }

  closure.stage_gdk = stage_gdk;
  closure.window = g_object_ref (window);

  actor = CLUTTER_ACTOR (stage);

  _clutter_actor_rerealize (actor,
                            set_foreign_window_callback,
                            &closure);

  /* Queue a relayout - so the stage will be allocated the new
   * window size.
   *
   * Note also that when the stage gets allocated the new
   * window size that will result in the stage's
   * priv->viewport being changed, which will in turn result
   * in the Cogl viewport changing when _clutter_do_redraw
   * calls _clutter_stage_maybe_setup_viewport().
   */
  clutter_actor_queue_relayout (actor);

  return TRUE;
}
开发者ID:ebassi,项目名称:clutter,代码行数:61,代码来源:clutter-stage-gdk.c


示例11: _down_callback

static gboolean
_down_callback (MxMenu *self)
{
    MxMenuPrivate *priv = self->priv;
    gint last_id_offset = (priv->children->len - 1) -
                          (priv->last_shown_id - priv->id_offset);

    if(last_id_offset > priv->id_offset)
    {
        priv->id_offset++;
        clutter_actor_queue_relayout (CLUTTER_ACTOR(self));
    }
    return TRUE;
}
开发者ID:jonnylamb,项目名称:mx,代码行数:14,代码来源:mx-menu.c


示例12: st_table_child_set_y_align

/**
 * st_table_child_set_y_align:
 * @table: A #StTable
 * @child: A #ClutterActor
 * @align: A #StAlign value
 *
 * Set the value of the y-align property. This will only have an effect if
 * y-fill value is set to FALSE.
 *
 */
void
st_table_child_set_y_align (StTable      *table,
                            ClutterActor *child,
                            StAlign       align)
{
  StTableChild *meta;

  g_return_if_fail (ST_IS_TABLE (table));
  g_return_if_fail (CLUTTER_IS_ACTOR (child));

  meta = get_child_meta (table, child);

  meta->y_align = align;
  clutter_actor_queue_relayout (child);
}
开发者ID:MarkieMark,项目名称:gnome-shell,代码行数:25,代码来源:st-table-child.c


示例13: penge_block_container_set_min_tile_size

void
penge_block_container_set_min_tile_size (PengeBlockContainer *pbc,
                                         gfloat               width,
                                         gfloat               height)
{
  PengeBlockContainerPrivate *priv = GET_PRIVATE (pbc);

  priv->min_tile_width = width;
  priv->min_tile_height = height;

  g_object_notify (G_OBJECT (pbc), "min-tile-width");
  g_object_notify (G_OBJECT (pbc), "min-tile-height");

  clutter_actor_queue_relayout (CLUTTER_ACTOR (pbc));
}
开发者ID:Cordia,项目名称:dawati-shell,代码行数:15,代码来源:penge-block-container.c


示例14: st_box_layout_style_changed

static void
st_box_layout_style_changed (StWidget *self)
{
  StBoxLayoutPrivate *priv = ST_BOX_LAYOUT (self)->priv;
  StThemeNode *theme_node = st_widget_get_theme_node (self);
  int old_spacing = priv->spacing;
  double spacing;

  spacing = st_theme_node_get_length (theme_node, "spacing");
  priv->spacing = (int)(spacing + 0.5);
  if (priv->spacing != old_spacing)
    clutter_actor_queue_relayout (CLUTTER_ACTOR (self));

  ST_WIDGET_CLASS (st_box_layout_parent_class)->style_changed (self);
}
开发者ID:MarxGonzalez,项目名称:Cinnamon,代码行数:15,代码来源:st-box-layout.c


示例15: mnb_zones_preview_clear

void
mnb_zones_preview_clear (MnbZonesPreview *preview)
{

  MnbZonesPreviewPrivate *priv = preview->priv;

  while (priv->workspace_bins)
    {
      clutter_actor_destroy (CLUTTER_ACTOR (priv->workspace_bins->data));
      priv->workspace_bins = g_list_delete_link (priv->workspace_bins,
                                                 priv->workspace_bins);
    }

  clutter_actor_queue_relayout (CLUTTER_ACTOR (preview));
}
开发者ID:dudochkin-victor,项目名称:mutter-netbook,代码行数:15,代码来源:mnb-zones-preview.c


示例16: champlain_viewport_init

static void
champlain_viewport_init (ChamplainViewport *self)
{
  self->priv = GET_PRIVATE (self);

  self->priv->sync_adjustments = TRUE;

  self->priv->child = NULL;
  self->priv->content_group = clutter_group_new ();
  clutter_actor_set_parent (CLUTTER_ACTOR (self->priv->content_group), CLUTTER_ACTOR (self));
  clutter_actor_queue_relayout (CLUTTER_ACTOR (self));

  g_signal_connect (self, "notify::clip",
      G_CALLBACK (clip_notify_cb), self);
}
开发者ID:PabloCastellano,项目名称:libchamplain,代码行数:15,代码来源:champlain-viewport.c


示例17: clutter_bind_constraint_set_offset

/**
 * clutter_bind_constraint_set_offset:
 * @constraint: a #ClutterBindConstraint
 * @offset: the offset to apply, in pixels
 *
 * Sets the offset to be applied to the constraint
 *
 * Since: 1.4
 */
void
clutter_bind_constraint_set_offset (ClutterBindConstraint *constraint,
                                    gfloat                 offset)
{
  g_return_if_fail (CLUTTER_IS_BIND_CONSTRAINT (constraint));

  if (fabs (constraint->offset - offset) < 0.00001f)
    return;

  constraint->offset = offset;

  if (constraint->actor != NULL)
    clutter_actor_queue_relayout (constraint->actor);

  g_object_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_OFFSET]);
}
开发者ID:Distrotech,项目名称:clutter,代码行数:25,代码来源:clutter-bind-constraint.c


示例18: clutter_bind_constraint_set_coordinate

/**
 * clutter_bind_constraint_set_coordinate:
 * @constraint: a #ClutterBindConstraint
 * @coordinate: the coordinate to bind
 *
 * Sets the coordinate to bind in the constraint
 *
 * Since: 1.4
 */
void
clutter_bind_constraint_set_coordinate (ClutterBindConstraint *constraint,
                                        ClutterBindCoordinate  coordinate)
{
  g_return_if_fail (CLUTTER_IS_BIND_CONSTRAINT (constraint));

  if (constraint->coordinate == coordinate)
    return;

  constraint->coordinate = coordinate;

  if (constraint->actor != NULL)
    clutter_actor_queue_relayout (constraint->actor);

  g_object_notify_by_pspec (G_OBJECT (constraint), obj_props[PROP_COORDINATE]);
}
开发者ID:Distrotech,项目名称:clutter,代码行数:25,代码来源:clutter-bind-constraint.c


示例19: clutter_path_constraint_set_offset

/**
 * clutter_path_constraint_set_offset:
 * @constraint: a #ClutterPathConstraint
 * @offset: the offset along the path
 *
 * Sets the offset along the #ClutterPath used by @constraint.
 *
 * Since: 1.6
 */
void
clutter_path_constraint_set_offset (ClutterPathConstraint *constraint,
                                    gfloat                 offset)
{
  g_return_if_fail (CLUTTER_IS_PATH_CONSTRAINT (constraint));

  if (constraint->offset == offset)
    return;

  constraint->offset = offset;

  if (constraint->actor != NULL)
    clutter_actor_queue_relayout (constraint->actor);

  _clutter_notify_by_pspec (G_OBJECT (constraint), path_properties[PROP_OFFSET]);
}
开发者ID:nobled,项目名称:clutter,代码行数:25,代码来源:clutter-path-constraint.c


示例20: clutter_constraint_notify

static void
clutter_constraint_notify (GObject    *gobject,
                           GParamSpec *pspec)
{
  if (strcmp (pspec->name, "enabled") == 0)
    {
      ClutterActorMeta *meta = CLUTTER_ACTOR_META (gobject);
      ClutterActor *actor = clutter_actor_meta_get_actor (meta);

      if (actor != NULL)
        clutter_actor_queue_relayout (actor);
    }

  if (G_OBJECT_CLASS (clutter_constraint_parent_class)->notify != NULL)
    G_OBJECT_CLASS (clutter_constraint_parent_class)->notify (gobject, pspec);
}
开发者ID:ChrisCummins,项目名称:clutter,代码行数:16,代码来源:clutter-constraint.c



注:本文中的clutter_actor_queue_relayout函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ clutter_actor_set_opacity函数代码示例发布时间:2022-05-30
下一篇:
C++ clutter_actor_queue_redraw函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap