label = gtk_label_new ("This wrapping label is always given a specific aspect ratio by the aspect frame. The specific aspect ratio can be controlled by dragging the slider. The picture is always given its natural aspect ratio. Try resizing the window to see how the two aspect frames react to different available sizes, and how the box distributes space between them.");
gtk_label_set_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_max_width_chars (GTK_LABEL (label), 50);
aspect_frame = gtk_aspect_frame_new (0.5, 0.5, 1.5, FALSE);
g_object_bind_property (gtk_range_get_adjustment (GTK_RANGE (scale)), "value",
aspect_frame, "ratio", 0);
gtk_aspect_frame_set_child (GTK_ASPECT_FRAME (aspect_frame), label);
gtk_widget_set_hexpand (aspect_frame, TRUE);
gtk_box_append (GTK_BOX (box), aspect_frame);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.