New upstream version 3.23.0
This commit is contained in:
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>GtkFrame: GTK+ 3 Reference Manual</title>
|
||||
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
||||
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
||||
<link rel="up" href="Ornaments.html" title="Ornaments">
|
||||
<link rel="prev" href="Ornaments.html" title="Ornaments">
|
||||
<link rel="next" href="GtkSeparator.html" title="GtkSeparator">
|
||||
<meta name="generator" content="GTK-Doc V1.27 (XML mode)">
|
||||
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
@ -209,53 +209,27 @@ placing a child in the label position by specifying “label” as the
|
||||
“type” attribute of a <child> element. A normal content child can
|
||||
be specified without specifying a <child> type attribute.</p>
|
||||
<p>An example of a UI definition fragment with GtkFrame:</p>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7
|
||||
8</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="symbol"><</span><span class="usertype">object</span><span class="normal"> class</span><span class="symbol">=</span><span class="string">"GtkFrame"</span><span class="symbol">></span>
|
||||
<span class="normal"> </span><span class="symbol"><</span><span class="usertype">child</span><span class="normal"> type</span><span class="symbol">=</span><span class="string">"label"</span><span class="symbol">></span>
|
||||
<span class="normal"> </span><span class="symbol"><</span><span class="usertype">object</span><span class="normal"> class</span><span class="symbol">=</span><span class="string">"GtkLabel"</span><span class="normal"> id</span><span class="symbol">=</span><span class="string">"frame-label"</span><span class="symbol">/></span>
|
||||
<span class="normal"> </span><span class="symbol"></</span><span class="normal">child</span><span class="symbol">></span>
|
||||
<span class="normal"> </span><span class="symbol"><</span><span class="normal">child</span><span class="symbol">></span>
|
||||
<span class="normal"> </span><span class="symbol"><</span><span class="usertype">object</span><span class="normal"> class</span><span class="symbol">=</span><span class="string">"GtkEntry"</span><span class="normal"> id</span><span class="symbol">=</span><span class="string">"frame-content"</span><span class="symbol">/></span>
|
||||
<span class="normal"> </span><span class="symbol"></</span><span class="normal">child</span><span class="symbol">></span>
|
||||
<span class="symbol"></</span><span class="normal">object</span><span class="symbol">></span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
<object class="GtkFrame">
|
||||
<child type="label">
|
||||
<object class="GtkLabel" id="frame-label"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkEntry" id="frame-content"/>
|
||||
</child>
|
||||
</object>
|
||||
</pre></div>
|
||||
<p></p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="id-1.3.15.2.9.4"></a><h3>CSS nodes</h3>
|
||||
<div class="informalexample">
|
||||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="listing_lines" align="right"><pre>1
|
||||
2
|
||||
3
|
||||
4</pre></td>
|
||||
<td class="listing_code"><pre class="programlisting"><span class="normal">frame </span>
|
||||
<span class="normal">├── border</span><span class="symbol">[.</span><span class="normal">flat</span><span class="symbol">]</span>
|
||||
<span class="normal">├── </span><span class="symbol"><</span><span class="usertype">label</span><span class="normal"> widget</span><span class="symbol">></span>
|
||||
<span class="normal">╰── </span><span class="symbol"><</span><span class="normal">child</span><span class="symbol">></span></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="informalexample"><pre class="programlisting">
|
||||
frame
|
||||
├── border[.flat]
|
||||
├── <label widget>
|
||||
╰── <child>
|
||||
</pre></div>
|
||||
<p></p>
|
||||
<p>GtkFrame has a main CSS node named “frame” and a subnode named “border”. The
|
||||
“border” node is used to draw the visible border. You can set the appearance
|
||||
@ -286,7 +260,7 @@ If <em class="parameter"><code>label</code></em>
|
||||
</colgroup>
|
||||
<tbody><tr>
|
||||
<td class="parameter_name"><p>label</p></td>
|
||||
<td class="parameter_description"><p>the text to use as the label of the frame. </p></td>
|
||||
<td class="parameter_description"><p> the text to use as the label of the frame. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
@ -321,7 +295,7 @@ new <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">Gtk
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>label</p></td>
|
||||
<td class="parameter_description"><p>the text to use as the label of the frame. </p></td>
|
||||
<td class="parameter_description"><p> the text to use as the label of the frame. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -352,7 +326,7 @@ will appear embedded in the top edge of the frame as a title.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>label_widget</p></td>
|
||||
<td class="parameter_description"><p>the new label widget. </p></td>
|
||||
<td class="parameter_description"><p> the new label widget. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -461,7 +435,7 @@ to <a class="link" href="GtkFrame.html#gtk-frame-new" title="gtk_frame_new ()">
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-frame-get-label.returns"></a><h4>Returns</h4>
|
||||
<p>the text in the label, or <code class="literal">NULL</code> if there
|
||||
<p> the text in the label, or <code class="literal">NULL</code> if there
|
||||
was no label widget or the lable widget was not
|
||||
a <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>. This string is owned by GTK+ and
|
||||
must not be modified or freed. </p>
|
||||
@ -493,13 +467,13 @@ gtk_frame_get_label_align (<em class="parameter"><code><a class="link" href="Gtk
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>xalign</p></td>
|
||||
<td class="parameter_description"><p>location to store X alignment of
|
||||
<td class="parameter_description"><p> location to store X alignment of
|
||||
frame’s label, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="parameter_name"><p>yalign</p></td>
|
||||
<td class="parameter_description"><p>location to store X alignment of
|
||||
<td class="parameter_description"><p> location to store X alignment of
|
||||
frame’s label, or <code class="literal">NULL</code>. </p></td>
|
||||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||||
</tr>
|
||||
@ -531,7 +505,7 @@ gtk_frame_get_label_widget (<em class="parameter"><code><a class="link" href="Gt
|
||||
</div>
|
||||
<div class="refsect3">
|
||||
<a name="gtk-frame-get-label-widget.returns"></a><h4>Returns</h4>
|
||||
<p>the label widget, or <code class="literal">NULL</code> if
|
||||
<p> the label widget, or <code class="literal">NULL</code> if
|
||||
there is none. </p>
|
||||
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||||
</div>
|
||||
@ -643,6 +617,6 @@ gtk_frame_get_shadow_type (<em class="parameter"><code><a class="link" href="Gtk
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<hr>Generated by GTK-Doc V1.27</div>
|
||||
<hr>Generated by GTK-Doc V1.25</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user