From 272e57235cd60a2e65ac8258d96a02eb3939b687 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 25 Mar 2011 10:41:05 +0000 Subject: git update until 25 Mar 2011 xserver fontconfig glproto libXau libXft libXmu libfontenc libxcb mesa mkfontscale pixman randrproto xkeyboard-config xtrans xwininfo updated following packages: xproto-7.0.21 xineramaproto-1.2.1 libXt-1.1.1 libxkbfile-1.0.7 libXpm-3.5.9 libXfont-1.4.3 libXaw-1.0.9 bdftopcf-1.0.3 encodings-1.0.4 fixesproto-5.0 font-adobe-100dpi-1.0.3 font-adobe-75dpi-1.0.3 font-adobe-utopia-100dpi-1.0.4 font-adobe-utopia-75dpi-1.0.4 font-adobe-utopia-type1-1.0.4 font-alias-1.0.3 font-arabic-misc-1.0.3 font-bh-100dpi-1.0.3 font-bh-75dpi-1.0.3 font-bh-lucidatypewriter-100dpi-1.0.3 font-bh-lucidatypewriter-75dpi-1.0.3 font-bh-ttf-1.0.3 font-bh-type1-1.0.3 font-bitstream-100dpi-1.0.3 font-bitstream-75dpi-1.0.3 font-bitstream-speedo-1.0.2 font-bitstream-type1-1.0.3 font-cronyx-cyrillic-1.0.3 font-cursor-misc-1.0.3 font-daewoo-misc-1.0.3 font-dec-misc-1.0.3 font-ibm-type1-1.0.3 font-isas-misc-1.0.3 font-jis-misc-1.0.3 font-micro-misc-1.0.3 font-misc-cyrillic-1.0.3 font-misc-ethiopic-1.0.3 font-misc-meltho-1.0.3 font-misc-misc-1.1.2 font-mutt-misc-1.0.3 font-schumacher-misc-1.1.2 font-screen-cyrillic-1.0.4 font-sony-misc-1.0.3 font-sun-misc-1.0.3 font-util-1.2.0 font-winitzki-cyrillic-1.0.3 font-xfree86-type1-1.0.4 --- libXaw/specs/Sme.xml | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 libXaw/specs/Sme.xml (limited to 'libXaw/specs/Sme.xml') diff --git a/libXaw/specs/Sme.xml b/libXaw/specs/Sme.xml new file mode 100644 index 000000000..2d3d2f5f7 --- /dev/null +++ b/libXaw/specs/Sme.xml @@ -0,0 +1,207 @@ + +Sme Object + + + + + + + + + + +Application Header file <X11/Xaw/Sme.h> + +Class Header file <X11/Xaw/SmeP.h> + +Class smeObjectClass + +Class Name Sme + +Superclass RectObj + + + + + +The Sme object is the base class for all menu entries. While this +object is mainly intended to be subclassed, it may be used in a menu to +add blank space between menu entries. + + +Resources + + + +The resources associated with the SmeLine object are defined in this +section, and affect only the single menu entry specified by this object. +There are no new resources added for this class, as it picks up all its +resources from the RectObj class. + + + + + + + + + + + Name + Class + Type + Notes + Default Value + + + + + ancestorSensitive + AncestorSensitive + Boolean + + True + + + callback + Callback + XtCallbackList + + NULL + + + destroyCallback + Callback + XtCallbackList + + NULL + + + height + Height + Dimension + + 0 + + + international + International + Boolean + C + False + + + sensitive + Sensitive + Boolean + + True + + + width + Width + Dimension + + 1 + + + + + + + + + +Keep in mind that the SimpleMenu widget will force all menu items to +be the width of the widest entry. + + + + + +Subclassing the Sme Object + + + + +To Create a new Sme object class you will need to define three class methods. +These methods allow the SimpleMenu to highlight and unhighlight the +menu entry as the pointer cursor moves over it, as well as notify the +entry when the user has selected it. All of +these methods may be inherited from the Sme object, although the default +semantics are not very interesting. + + + + + + Highlight(\|) + + + + +Called to put the menu entry into the highlighted state. + + + + + + Unhighlight(\|) + + + + +Called to return the widget to its normal (unhighlighted) state. + + + + + + Notify(\|) + + + + +Called when the user selects this menu entry. + + + + + + + + +Other then these methods, creating a new object +is straight forward. Here is some information that may help you +avoid some common mistakes. + + + Objects can be zero pixels high. + + +Objects draw on their parent's window, therefore the Drawing dimensions +are different from those of widgets. For instance, y locations vary +from y to y + height, not 0 to height. + + + + + +XtSetValues calls may come from the application while the Sme is highlighted, +and if the SetValues method returns True, will result in an expose event. +The SimpleMenu may later call the menu entry's unhighlight +procedure. However, due to the asynchronous nature of +X, the expose event generated by XtSetValues will come after +this unhighlight. + + + + +Remember that your subclass of the Sme does not own the +window. Share the space with other menu entries, and refrain +from drawing outside the subclass's own section of the menu. + + + + + -- cgit v1.2.3