📄 gtkhandlebox.html
字号:
ALIGN="LEFT"VALIGN="TOP">a <AHREF="gtkhandlebox.html">GtkHandleBox</A></TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>type</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the shadow type. </TD></TR></TBODY></TABLE><P></P></DIV></DIV><HR><DIVCLASS="REFSECT2"><ANAME="AEN27009"></A><H3><ANAME="GTK-HANDLE-BOX-SET-HANDLE-POSITION"></A>gtk_handle_box_set_handle_position ()</H3><TABLEBORDER="0"BGCOLOR="#D6E8FF"WIDTH="100%"CELLPADDING="6"><TR><TD><PRECLASS="PROGRAMLISTING">void gtk_handle_box_set_handle_position (<AHREF="gtkhandlebox.html">GtkHandleBox</A> *handle_box, <AHREF="gtk-standard-enumerations.html#GTKPOSITIONTYPE">GtkPositionType</A> position);</PRE></TD></TR></TABLE><P>Sets the side of the handlebox where the handle is drawn.</P><DIVCLASS="INFORMALTABLE"><ANAME="AEN27016"></A><P></P><TABLEBORDER="0"WIDTH="100%"BGCOLOR="#FFD0D0"CELLSPACING="0"CELLPADDING="4"CLASS="CALSTABLE"><TBODY><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>handle_box</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">a <AHREF="gtkhandlebox.html">GtkHandleBox</A></TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>position</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the side of the handlebox where the handle should be drawn. </TD></TR></TBODY></TABLE><P></P></DIV></DIV><HR><DIVCLASS="REFSECT2"><ANAME="AEN27030"></A><H3><ANAME="GTK-HANDLE-BOX-SET-SNAP-EDGE"></A>gtk_handle_box_set_snap_edge ()</H3><TABLEBORDER="0"BGCOLOR="#D6E8FF"WIDTH="100%"CELLPADDING="6"><TR><TD><PRECLASS="PROGRAMLISTING">void gtk_handle_box_set_snap_edge (<AHREF="gtkhandlebox.html">GtkHandleBox</A> *handle_box, <AHREF="gtk-standard-enumerations.html#GTKPOSITIONTYPE">GtkPositionType</A> edge);</PRE></TD></TR></TABLE><P>Sets the snap edge of a handlebox. The snap edge isthe edge of the detached child that must be alignedwith the corresponding edge of the "ghost" leftbehind when the child was detached to reattachthe torn-off window. Usually, the snap edge shouldbe chosen so that it stays in the same place onthe screen when the handlebox is torn off.</P><P>If the snap edge is not set, then an appropriate valuewill be guessed from the handle position. If thehandle position is <TTCLASS="LITERAL">GTK_POS_RIGHT</TT> or <TTCLASS="LITERAL">GTK_POS_LEFT</TT>,then the snap edge will be <TTCLASS="LITERAL">GTK_POS_TOP</TT>, otherwiseit will be <TTCLASS="LITERAL">GTK_POS_LEFT</TT>.</P><DIVCLASS="INFORMALTABLE"><ANAME="AEN27042"></A><P></P><TABLEBORDER="0"WIDTH="100%"BGCOLOR="#FFD0D0"CELLSPACING="0"CELLPADDING="4"CLASS="CALSTABLE"><TBODY><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>handle_box</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">a <AHREF="gtkhandlebox.html">GtkHandleBox</A></TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>edge</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the snap edge, or -1 to unset the value; in whichcase GTK+ will try to guess an appropriate valuein the future. </TD></TR></TBODY></TABLE><P></P></DIV></DIV></DIV><DIVCLASS="REFSECT1"><ANAME="AEN27056"></A><H2>Args</H2><P></P><DIVCLASS="VARIABLELIST"><DL><DT><ANAME="GTKHANDLEBOX--SHADOW"></A>"<TTCLASS="LITERAL">shadow</TT>" (<AHREF="gtk-standard-enumerations.html#GTKSHADOWTYPE">GtkShadowType</A> : Read / Write)</DT><DD><P>Determines the shadow type for the handlebox.</P></DD></DL></DIV></DIV><DIVCLASS="REFSECT1"><ANAME="AEN27066"></A><H2>Signals</H2><DIVCLASS="REFSECT2"><ANAME="AEN27068"></A><H3><ANAME="GTKHANDLEBOX-CHILD-ATTACHED"></A>The "child-attached" signal</H3><TABLEBORDER="0"BGCOLOR="#D6E8FF"WIDTH="100%"CELLPADDING="6"><TR><TD><PRECLASS="PROGRAMLISTING">void user_function (<AHREF="gtkhandlebox.html">GtkHandleBox</A> *handlebox, <AHREF="gtkwidget.html">GtkWidget</A> *widget, <AHREF=../glib/glib-basic-types.html#GPOINTER>gpointer</A> user_data);</PRE></TD></TR></TABLE><P>This signal is emitted when the contents of thehandlebox are reattached to the main window.</P><DIVCLASS="INFORMALTABLE"><ANAME="AEN27076"></A><P></P><TABLEBORDER="0"WIDTH="100%"BGCOLOR="#FFD0D0"CELLSPACING="0"CELLPADDING="4"CLASS="CALSTABLE"><TBODY><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>handlebox</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the object which received the signal.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>widget</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the child widget of the handlebox. (this argument provides no extra information and is here only for backwards-compatibility) </TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>user_data</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">user data set when the signal handler was connected.</TD></TR></TBODY></TABLE><P></P></DIV></DIV><HR><DIVCLASS="REFSECT2"><ANAME="AEN27093"></A><H3><ANAME="GTKHANDLEBOX-CHILD-DETACHED"></A>The "child-detached" signal</H3><TABLEBORDER="0"BGCOLOR="#D6E8FF"WIDTH="100%"CELLPADDING="6"><TR><TD><PRECLASS="PROGRAMLISTING">void user_function (<AHREF="gtkhandlebox.html">GtkHandleBox</A> *handlebox, <AHREF="gtkwidget.html">GtkWidget</A> *widget, <AHREF=../glib/glib-basic-types.html#GPOINTER>gpointer</A> user_data);</PRE></TD></TR></TABLE><P>This signal is emitted when the contents of thehandlebox are detached from the main window.</P><DIVCLASS="INFORMALTABLE"><ANAME="AEN27101"></A><P></P><TABLEBORDER="0"WIDTH="100%"BGCOLOR="#FFD0D0"CELLSPACING="0"CELLPADDING="4"CLASS="CALSTABLE"><TBODY><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>handlebox</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the object which received the signal.</TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>widget</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">the child widget of the handlebox. (this argument provides no extra information and is here only for backwards-compatibility) </TD></TR><TR><TDWIDTH="20%"ALIGN="RIGHT"VALIGN="TOP"><TTCLASS="PARAMETER"><I>user_data</I></TT> :</TD><TDWIDTH="80%"ALIGN="LEFT"VALIGN="TOP">user data set when the signal handler was connected.</TD></TR></TBODY></TABLE><P></P></DIV></DIV></DIV><DIVCLASS="NAVFOOTER"><BRCLEAR="all"><BR><TABLEWIDTH="100%"BORDER="0"BGCOLOR="#000000"CELLPADDING="1"CELLSPACING="0"><TR><TDWIDTH="25%"BGCOLOR="#C00000"ALIGN="left"><AHREF="gtkgammacurve.html"><FONTCOLOR="#FFFFFF"SIZE="3"><B><<< Previous Page</B></FONT></A></TD><TDWIDTH="25%"BGCOLOR="#0000C0"ALIGN="center"><FONTCOLOR="#FFFFFF"SIZE="3"><B><AHREF="index.html"><FONTCOLOR="#FFFFFF"SIZE="3"><B>Home</B></FONT></A></B></FONT></TD><TDWIDTH="25%"BGCOLOR="#00C000"ALIGN="center"><FONTCOLOR="#FFFFFF"SIZE="3"><B><AHREF="gtkobjects.html"><FONTCOLOR="#FFFFFF"SIZE="3"><B>Up</B></FONT></A></B></FONT></TD><TDWIDTH="25%"BGCOLOR="#C00000"ALIGN="right"><AHREF="gtkhbuttonbox.html"><FONTCOLOR="#FFFFFF"SIZE="3"><B>Next Page >>></B></FONT></A></TD></TR><TR><TDCOLSPAN="2"ALIGN="left"><FONTCOLOR="#FFFFFF"SIZE="3"><B>GtkGammaCurve</B></FONT></TD><TDCOLSPAN="2"ALIGN="right"><FONTCOLOR="#FFFFFF"SIZE="3"><B>GtkHButtonBox</B></FONT></TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -