📄 atkrelation.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"><title>AtkRelation</title><meta name="generator" content="DocBook XSL Stylesheets V1.48"><meta name="generator" content="GTK-Doc V1.1 (XML mode)"><style type="text/css"> .synopsis, .classsynopsis { background: #eeeeee; border: solid 1px #aaaaaa; padding: 0.5em; } .programlisting { background: #eeeeff; border: solid 1px #aaaaff; padding: 0.5em; } .variablelist { padding: 4px; margin-left: 3em; } .navigation { background: #ffeeee; border: solid 1px #ffaaaa; margin-top: 0.5em; margin-bottom: 0.5em; } .navigation a { color: #770000; } .navigation a:visited { color: #550000; } .navigation .title { font-size: 200%; } </style><link rel="home" href="index.html" title="ATK Library Reference Manual"><link rel="up" href="atk.html" title="ATK Library"><link rel="previous" href="AtkRegistry.html" title="AtkRegistry"><link rel="next" href="AtkRelationSet.html" title="AtkRelationSet"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="AtkRegistry.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="atk.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">ATK Library Reference Manual</th><td><a accesskey="n" href="AtkRelationSet.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry"><a name="AtkRelation"></a><div class="titlepage"></div><div class="refnamediv"><h2>AtkRelation</h2><p>AtkRelation — An object used to describe a relation between a object and one or moreother objects.</p></div><div class="refsynopsisdiv"><h2><h1 class="title"><a name="id283924"></a>Synopsis</h1></h2><pre class="synopsis">struct <a href="AtkRelation.html#AtkRelation-struct">AtkRelation</a>;enum <a href="AtkRelation.html#AtkRelationType">AtkRelationType</a>;<a href="AtkRelation.html#AtkRelationType">AtkRelationType</a> <a href="AtkRelation.html#atk-relation-type-register">atk_relation_type_register</a> (const gchar *name);G_CONST_RETURN gchar* <a href="AtkRelation.html#atk-relation-type-get-name">atk_relation_type_get_name</a> (<a href="AtkRelation.html#AtkRelationType">AtkRelationType</a> type);<a href="AtkRelation.html#AtkRelationType">AtkRelationType</a> <a href="AtkRelation.html#atk-relation-type-for-name">atk_relation_type_for_name</a> (const gchar *name);<a href="AtkRelation.html" title="AtkRelation">AtkRelation</a>* <a href="AtkRelation.html#atk-relation-new">atk_relation_new</a> (<a href="AtkObject.html" title="AtkObject">AtkObject</a> **targets, gint n_targets, <a href="AtkRelation.html#AtkRelationType">AtkRelationType</a> relationship);<a href="AtkRelation.html#AtkRelationType">AtkRelationType</a> <a href="AtkRelation.html#atk-relation-get-relation-type">atk_relation_get_relation_type</a> (<a href="AtkRelation.html" title="AtkRelation">AtkRelation</a> *relation);GPtrArray* <a href="AtkRelation.html#atk-relation-get-target">atk_relation_get_target</a> (<a href="AtkRelation.html" title="AtkRelation">AtkRelation</a> *relation);</pre></div><div class="refsect1"><h2>Object Hierarchy</h2><pre class="synopsis"> GObject +----AtkRelation</pre></div><div class="refsect1"><h2>Properties</h2><pre class="synopsis"> "<a href="AtkRelation.html#AtkRelation--relation-type">relation-type</a>" <a href="AtkRelation.html#AtkRelationType">AtkRelationType</a> : Read / Write "<a href="AtkRelation.html#AtkRelation--target">target</a>" GValueArray : Read / Write</pre></div><div class="refsect1"><h2>Description</h2><p>An AtkRelation describes a relation between an object and one or moreother objects. The actual relations that an object has with other objectsare defined as an AtkRelationSet, which is a set of AtkRelations.</p></div><div class="refsect1"><h2>Details</h2><div class="refsect2"><h3><a name="AtkRelation-struct"></a>struct AtkRelation</h3><a class="indexterm" name="id285395"></a><pre class="programlisting">struct AtkRelation;</pre><p>The AtkRelation structure should not be accessed directly.</p></div><hr><div class="refsect2"><h3><a name="AtkRelationType"></a>enum AtkRelationType</h3><a class="indexterm" name="id285422"></a><pre class="programlisting">typedef enum{ ATK_RELATION_NULL = 0, ATK_RELATION_CONTROLLED_BY, ATK_RELATION_CONTROLLER_FOR, ATK_RELATION_LABEL_FOR, ATK_RELATION_LABELLED_BY, ATK_RELATION_MEMBER_OF, ATK_RELATION_NODE_CHILD_OF, ATK_RELATION_FLOWS_TO, ATK_RELATION_FLOWS_FROM, ATK_RELATION_SUBWINDOW_OF, ATK_RELATION_EMBEDS, ATK_RELATION_EMBEDDED_BY, ATK_RELATION_POPUP_FOR, ATK_RELATION_LAST_DEFINED} AtkRelationType;</pre><p>Describes the type of the relation</p><p></p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><tt>ATK_RELATION_NULL</tt></span></td><td></td></tr><tr><td><span class="term"><tt>ATK_RELATION_CONTROLLED_BY</tt></span></td><td> Indicates an object controlled by one or more target objects.</td></tr><tr><td><span class="term"><tt>ATK_RELATION_CONTROLLER_FOR</tt></span></td><td> Indicates an object is an controller for one or more target objects.</td></tr><tr><td><span class="term"><tt>ATK_RELATION_LABEL_FOR</tt></span></td><td> Indicates an object is a label for one or more target objects.</td></tr><tr><td><span class="term"><tt>ATK_RELATION_LABELLED_BY</tt></span></td><td> Indicates an object is labelled by one or more target objects.</td></tr><tr><td><span class="term"><tt>ATK_RELATION_MEMBER_OF</tt></span></td><td> Indicates an object is a member of a group of one or more target objects.</td></tr><tr><td><span class="term"><tt>ATK_RELATION_NODE_CHILD_OF</tt></span></td><td> Indicates an object is a cell in a treetable which is displayed because a cell in the same column is expanded and identifies that cell.</td></tr><tr><td><span class="term"><tt>ATK_RELATION_FLOWS_TO</tt></span></td><td> Indicates that the object has content that flows logically to another AtkObject in a sequential way, (for instance text-flow).</td></tr><tr><td><span class="term"><tt>ATK_RELATION_FLOWS_FROM</tt></span></td><td> Indicates that the object has content that flows logically from another AtkObject in a sequential way, (for instance text-flow).</td></tr><tr><td><span class="term"><tt>ATK_RELATION_SUBWINDOW_OF</tt></span></td><td> [not sure about this one, ask Peter]</td></tr><tr><td><span class="term"><tt>ATK_RELATION_EMBEDS</tt></span></td><td> Indicates that the object visually embeds another object's content, i.e. this object's content flows around another's content.</td></tr><tr><td><span class="term"><tt>ATK_RELATION_EMBEDDED_BY</tt></span></td><td> Inverse of <tt>ATK_RELATION_EMBEDS</tt>, indicates that this object's content is visualy embedded in another object.</td></tr><tr><td><span class="term"><tt>ATK_RELATION_POPUP_FOR</tt></span></td><td> Indicates that an object is a popup for another object.</td></tr><tr><td><span class="term"><tt>ATK_RELATION_LAST_DEFINED</tt></span></td><td></td></tr></tbody></table></div></div><hr><div class="refsect2"><h3><a name="atk-relation-type-register"></a>atk_relation_type_register ()</h3><a class="indexterm" name="id285785"></a><pre class="programlisting"><a href="AtkRelation.html#AtkRelationType">AtkRelationType</a> atk_relation_type_register (const gchar *name);</pre><p>Associate <i><tt>name</tt></i> with a new <a href="AtkRelation.html#AtkRelationType">AtkRelationType</a></p><p></p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>name</tt></i>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -