📄 atkcomponent.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>AtkComponent</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="AtkAction.html" title="AtkAction"><link rel="next" href="AtkDocument.html" title="AtkDocument"></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="AtkAction.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="AtkDocument.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry"><a name="AtkComponent"></a><div class="titlepage"></div><div class="refnamediv"><h2>AtkComponent</h2><p>AtkComponent — The ATK interface provided by UI components which occupy a physical area onthe screen.</p></div><div class="refsynopsisdiv"><h2><h1 class="title"><a name="id190512"></a>Synopsis</h1></h2><pre class="synopsis">struct <a href="AtkComponent.html#AtkComponent-struct">AtkComponent</a>;guint <a href="AtkComponent.html#atk-component-add-focus-handler">atk_component_add_focus_handler</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, AtkFocusHandler handler);gboolean <a href="AtkComponent.html#atk-component-contains">atk_component_contains</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, gint x, gint y, <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coord_type);void <a href="AtkComponent.html#atk-component-get-extents">atk_component_get_extents</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, gint *x, gint *y, gint *width, gint *height, <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coord_type);<a href="AtkObject.html#AtkLayer">AtkLayer</a> <a href="AtkComponent.html#atk-component-get-layer">atk_component_get_layer</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component);gint <a href="AtkComponent.html#atk-component-get-mdi-zorder">atk_component_get_mdi_zorder</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component);void <a href="AtkComponent.html#atk-component-get-position">atk_component_get_position</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, gint *x, gint *y, <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coord_type);void <a href="AtkComponent.html#atk-component-get-size">atk_component_get_size</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, gint *width, gint *height);gboolean <a href="AtkComponent.html#atk-component-grab-focus">atk_component_grab_focus</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component);<a href="AtkObject.html" title="AtkObject">AtkObject</a>* <a href="AtkComponent.html#atk-component-ref-accessible-at-point">atk_component_ref_accessible_at_point</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, gint x, gint y, <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coord_type);void <a href="AtkComponent.html#atk-component-remove-focus-handler">atk_component_remove_focus_handler</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, guint handler_id);gboolean <a href="AtkComponent.html#atk-component-set-extents">atk_component_set_extents</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, gint x, gint y, gint width, gint height, <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coord_type);gboolean <a href="AtkComponent.html#atk-component-set-position">atk_component_set_position</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, gint x, gint y, <a href="AtkUtil.html#AtkCoordType">AtkCoordType</a> coord_type);gboolean <a href="AtkComponent.html#atk-component-set-size">atk_component_set_size</a> (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, gint width, gint height);</pre></div><div class="refsect1"><h2>Object Hierarchy</h2><pre class="synopsis"> GInterface +----AtkComponent</pre></div><div class="refsect1"><h2>Known Implementations</h2><p>AtkComponent is implemented by <a href="AtkNoOpObject.html" title="AtkNoOpObject">AtkNoOpObject</a>.</p></div><div class="refsect1"><h2>Description</h2><p><a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> should be implemented by most if not all UI elements withan actual on-screen presence, i.e. components which can be said to havea screen-coordinate bounding box. Virtually all widgets will need tohave <a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> implementations provided for their corresponding<a href="AtkObject.html" title="AtkObject">AtkObject</a> class. In short, only UI elements which are *not* GUIelements will omit this ATK interface.</p><p>A possible exception might be textual information with a transparentbackground, in which case text glyph bounding box information isprovided by <a href="AtkText.html" title="AtkText">AtkText</a>.</p></div><div class="refsect1"><h2>Details</h2><div class="refsect2"><h3><a name="AtkComponent-struct"></a>struct AtkComponent</h3><a class="indexterm" name="id264295"></a><pre class="programlisting">struct AtkComponent;</pre><p>The AtkComponent structure does not contain any fields.</p></div><hr><div class="refsect2"><h3><a name="atk-component-add-focus-handler"></a>atk_component_add_focus_handler ()</h3><a class="indexterm" name="id264318"></a><pre class="programlisting">guint atk_component_add_focus_handler (<a href="AtkComponent.html" title="AtkComponent">AtkComponent</a> *component, AtkFocusHandler handler);</pre><p>Add the specified handler to the set of functions to be called when this object receives focus events (in or out). If the handler isalready added it is not added again</p><p></p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>component</tt></i>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -