Athena C.5 Specifications

Browse online or download Specifications for Soundbar speakers Athena C.5. Athena C.5 Specifications User Manual

  • Download
  • Add to my manuals
  • Print

Summary of Contents

Page 1 - XVersion 11, Release 7

Athena Widget Set — C Language InterfaceXWindowSystemXVersion 11, Release 7libXaw 1.0.7Chris D. Petersonformerly MIT X Consortium

Page 2

Athena Widget Set libXaw 1.0.7Chapter 2Using WidgetsWidgets serveasthe primary tools for building a user interface or application environment. TheAthe

Page 3 - Acknowledgments

Athena Widget Set libXaw 1.0.7TextSink This object is responsible for displaying and clearing the drawing area. It alsoreports the configuration of the

Page 4

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default ValuedisplayCaret Output Boolean TruedisplayPosition TextPosition XawTextPosition 0height

Page 5 - Chapter 1

Athena Widget Set libXaw 1.0.7topMargin The amount of space, in pixels, between the edge of the windowand thecorresponding edge of the text within the

Page 6

Athena Widget Set libXaw 1.0.7the current window. The scrollbar will disappear when the text onceagain fits within the window.selectTypes Specifies the

Page 7

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default ValueeditType EditType EditMode NULLdestroyCallback All functions on this list are called

Page 8

Athena Widget Set libXaw 1.0.7w Specifies the TextSrc object.start Specifies the position of the first character to be removedfrom the text buffer.This i

Page 9

Athena Widget Set libXaw 1.0.7position Specifies the position to begin the search.dir Specifies the direction to search, may be either XawsdLeft to sear

Page 10 - Using Widgets

Athena Widget Set libXaw 1.0.75.11. TextSink ObjectApplication Header file <X11/Xaw/TextSink.h>Class Header file <X11/Xaw/TextSinkP.h>Class

Page 11

Athena Widget Set libXaw 1.0.7void DisplayText(w, x, y, pos1, pos2, highlight)Widget w;Position x, y;XawTextPosition pos1, pos2;Boolean highlight;w Sp

Page 12

Athena Widget Set libXaw 1.0.75.11.2.4. Finding aText Position GivenPixel ValuesTo find the text character position that will be rendered at a givenxlo

Page 13

Athena Widget Set libXaw 1.0.7app_con_return Returns the application context of this application, if non-NULL.application_class Specifies the class nam

Page 14

Athena Widget Set libXaw 1.0.75.11.2.5. Finding the Distance Between twoText PositionsTo find the distance in pixels between twotextpositions on the sa

Page 15

Athena Widget Set libXaw 1.0.7void SetTabs(w, tab_count, tabs)Widget w;int tab_count, *tabs;w Specifies the TextSink object.tab_count Specifies the numb

Page 16

Athena Widget Set libXaw 1.0.7Chapter 6Composite and Constraint WidgetsThese widgets may contain arbitrary widget children. Theyimplement a policyfor

Page 17

Athena Widget Set libXaw 1.0.7The Box widget provides geometry management of arbitrary widgets in a box of a specifieddimension. The children are rearr

Page 18

Athena Widget Set libXaw 1.0.7borderWidth The width of this widget’swindowborder.children A list of all this composite widget’scurrent children.colorm

Page 19

Athena Widget Set libXaw 1.0.7Class dialogWidgetClassClass Name DialogSuperclass FormThe Dialog widget implements a commonly used interaction semantic

Page 20

Athena Widget Set libXaw 1.0.7be used instead of the background color.borderColor A pixel value which indexesthe widget’scolormap to derive the border

Page 21

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default ValuevertDistance Thickness int defaultDistance resourcebottomleftrighttop What to do with

Page 22 - Chapter 3

Athena Widget Set libXaw 1.0.76.2.3.1. ExampleIf you wish to force the Dialog to neverresize one or more of its children then set left and rightto Xaw

Page 23

Athena Widget Set libXaw 1.0.7Widget button = XtCreateManagedWidget(name, commandWidgetClass, w,NULL, ZERO);XtAddCallback(button, XtNcallback, func, c

Page 24

Athena Widget Set libXaw 1.0.7Forfurther information, see XToolkit Intrinsics — C Language Interface.2.4. Common ResourcesAlthough a widget can have u

Page 25

Athena Widget Set libXaw 1.0.7accelerators A list of event to action bindings to be executed by this widget, eventhough the event occurred in another

Page 26

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default Valueresizable Boolean Boolean FALSEright Edge XawEdgeType XawRubbertop Edge XawEdgeType X

Page 27

Athena Widget Set libXaw 1.0.7Edge Type Resource Name DescriptionXawChainTop ChainTop Edge remains a fixed distance from top of FormXawRubber Rubber Ed

Page 28

Athena Widget Set libXaw 1.0.7The default bindings for the Paned widget’sgrips are:Mouse button Pane to Resize - Vertical Pane to Resize - Horizontal1

Page 29

Athena Widget Set libXaw 1.0.7not be changed with XtSetValues,although it may be queried.background A pixel value which indexesthe widget’scolormap to

Page 30

Athena Widget Set libXaw 1.0.7lowerCursorupperCursor The cursor used to indicate which is the important pane to resize whenthe Paned widget is oriente

Page 31

Athena Widget Set libXaw 1.0.7showGrip If True then a grip will be shown for this pane. The grip associated withapane is either belowortothe right of

Page 32

Athena Widget Set libXaw 1.0.76.4.4.4. Special ConsiderationsWhen a user resizes a pane with the grips, the Paned widget assumes that this newsize is

Page 33

Athena Widget Set libXaw 1.0.7w Specifies the child pane.min Specifies the newminimum height of the child, expressed in pixels.max Specifies newmaximum h

Page 34

Athena Widget Set libXaw 1.0.76.5.1. ResourcesWhen creating a Porthole widget instance, the following resources are retrievedfrom the argu-ment list o

Page 35

Athena Widget Set libXaw 1.0.72.5.1. Cursor ConversionThe value for the cursorName resource is specified in the resource database as a string, and is o

Page 36

Athena Widget Set libXaw 1.0.7mappedWhenManaged If this resource is True,then the widget’swindowwill automatically bemapped by the Toolkit when it is

Page 37

Athena Widget Set libXaw 1.0.76.6.1. ResourcesWhen creating a Tree widget instance, the following resources are retrievedfrom the argumentlist or from

Page 38

Athena Widget Set libXaw 1.0.7gravity Specifies the side of the widget from which the tree should grow. Validvalues include WestGravity, NorthGravity,

Page 39

Athena Widget Set libXaw 1.0.7void XawTreeForceLayout(w)Widget w;w Specifies the Tree widget.6.7. Viewport WidgetApplication Header file <X11/Xaw/Vie

Page 40

Athena Widget Set libXaw 1.0.7accelerators A list of event to action bindings to be executed by this widget, eventhough the event occurred in another

Page 41

Athena Widget Set libXaw 1.0.7xyThe location of the upper left outside corner of this widget in its parent.6.7.2. Layout SemanticsThe Viewport widget

Page 42

Athena Widget Set libXaw 1.0.7Chapter 7Creating New Widgets (Subclassing)Written By: Ralph SwickAlthough the task of creating a newwidget may at first

Page 43

Athena Widget Set libXaw 1.0.7here. Section 1.4 of the Intrinsics should be read in conjunction with this section.All Athena widgets have three separa

Page 44

Athena Widget Set libXaw 1.0.7#define XtCTemplateResource "TemplateResource"/* declare specific TemplateWidget class and instance datatypes */

Page 45

Athena Widget Set libXaw 1.0.7#include <X11/Xaw/Template.h>/* include superclass private header file */#include <X11/CoreP.h>/* define uniqu

Page 46

Athena Widget Set libXaw 1.0.72.7. Processing EventsNowthat the application has created, managed and realized its widgets, it is ready to process thee

Page 47

Athena Widget Set libXaw 1.0.7#include <X11/IntrinsicP.h>#include <X11/StringDefs.h>#include "TemplateP.h"static XtResource reso

Page 48

Athena Widget Set libXaw 1.0.7The resource list for the ‘‘WindowWidget’’might look likethe following:static XtResource resources[] = {#define offset(fie

Page 49

Athena Widget Set libXaw 1.0.7/* expose */ Redisplay,The ‘‘WindowWidget’’will also declare three public procedures to return the drawing colors andthe

Page 50

Table of ContentsAcknowledgments ...

Page 51

Te x tSink Object ... 103Chapter 6 - Compos

Page 52

Athena Widget Set libXaw 1.0.7void XtManageChildren(children, num_children)WidgetList children;Cardinal num_children;children Specifies a list of child

Page 53

Athena Widget Set libXaw 1.0.7The arguments and values that are passed will depend on the widget being modified. Some wid-gets may not allowcertain res

Page 54

Athena Widget Set libXaw 1.0.7void XtAddCallback(w, callback_name,callback, client_data)Widget w;String callback_name;XtCallbackProc callback;XtPointe

Page 55

Athena Widget Set libXaw 1.0.7Forinformation about this function, see the XToolkit Intrinsics — C Language Interface.9. Link your application with lib

Page 56

Athena Widget Set libXaw 1.0.7of applications named xman. (Note that while typically twowidgets thatare siblings will have different names, it is not

Page 57

XWindowSystem is a trademark of The Open Group.Copyright © 1985, 1986, 1987, 1988, 1989, 1991, 1994 X ConsortiumPermission is hereby granted, free of

Page 58

Athena Widget Set libXaw 1.0.72.10.2.2. Creating Argument ListsTo set up an argument list for the inline specification of widget attributes, you may us

Page 59

Athena Widget Set libXaw 1.0.7Note that in this example, as in the previous example, XtNumber would return 10, not 2, andtherefore would not be useful

Page 60

Athena Widget Set libXaw 1.0.7Chapter 3Simple WidgetsEach of these widgets performs a specific user interface function. Theyare simple because theycann

Page 61

Athena Widget Set libXaw 1.0.73.1.1. ResourcesWhen creating a Command widget instance, the following resources are retrievedfrom the argu-ment list or

Page 62 - Chapter 4

Athena Widget Set libXaw 1.0.7be used instead of the background color.bitmap A bitmap to display instead of the label.The default size of the widgetwi

Page 63

Athena Widget Set libXaw 1.0.7international This is a boolean flag, only settable at widget creation time. Avalue offalse signals the widget to use pre

Page 64

Athena Widget Set libXaw 1.0.73.1.2. Command ActionsThe Command widget supports the following actions:•Switching the button’sinterior between the fore

Page 65

Athena Widget Set libXaw 1.0.7The Grip widget provides a small rectangular region in which user input events (such as Button-Press or ButtonRelease) m

Page 66

Athena Widget Set libXaw 1.0.7borderWidth The width of this widget’swindowborder.callback All routines on this list are called wheneverthe GripAction

Page 67

Athena Widget Set libXaw 1.0.7XEvent *event;String *params;Cardinal num_params;}XawGripCallDataRec, *XawGripCallData,GripCallDataRec, *GripCallData; /

Page 68

AcknowledgmentsManythanks go to Ralph Swick (Project Athena / Digital) who has contributed much time andeffort to this widget set. Previous versions o

Page 69

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default ValuedestroyCallback Callback XtCallbackList NULLencoding Encoding UnsignedChar XawTextEnc

Page 70

Athena Widget Set libXaw 1.0.7cursorName The name of the symbol to use to represent the pointer cursor.Thisresource will override the cursor resource

Page 71

Athena Widget Set libXaw 1.0.7resize Specifies whether the widget should attempt to resize to its preferreddimensions wheneverits resources are modified

Page 72

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default ValueinsensitiveBorder Insensitive Pixmap GreyPixmapinternalHeight Height Dimension 2inter

Page 73

Athena Widget Set libXaw 1.0.7defaultColumns The default number of columns. This value is used when neither thewidth nor the height of the List widget

Page 74

Athena Widget Set libXaw 1.0.7screen The screen on which this widget is displayed. This is not a settableresource.sensitive Whether or not the toolkit

Page 75

Athena Widget Set libXaw 1.0.7void XawListChange(w, list, nitems, longest, resize)Widget w;String * list;int nitems, longest;Boolean resize;w Specifies

Page 76 - Text Widgets

Athena Widget Set libXaw 1.0.73.4.8. RestrictionsManyprogrammers create a ‘‘scrolled list’’byputting a List widget with manyentries as a childof a Vie

Page 77

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default Valueinternational International Boolean C FalselineWidth LineWidth Dimension 0mappedWhenM

Page 78

Athena Widget Set libXaw 1.0.7defaultScale The percentage size that the Panner widget should have relative tothesize of the canvas.depth The depth of

Page 79

The R6 edition of this document has been edited to reflect changes brought about by researchstaffofthe Omron Corporation, with special recognition to L

Page 80

Athena Widget Set libXaw 1.0.73.5.2. Panner ActionsThe actions supported by the Panner widget are:start() This action begins movement of the slider.st

Page 81

Athena Widget Set libXaw 1.0.73.6. Repeater WidgetApplication header file <X11/Xaw/Repeater.h>Class header file <X11/Xaw/RepeaterP.h>Class r

Page 82

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default Valueresize Resize Boolean Truescreen Screen Pointer R Parent’sScreensensitive Sensitive B

Page 83

Athena Widget Set libXaw 1.0.7interval has reached minimumDelay milliseconds.depth The depth of this widget’swindow.destroyCallback All functions on t

Page 84

Athena Widget Set libXaw 1.0.7minimumDelay The minimum time between callbacks in milliseconds.pointerColor A pixel value which indexesthe widget’scolo

Page 85

Athena Widget Set libXaw 1.0.7<Btn1Up>: stop( )unset( )3.7. Scrollbar WidgetApplication header file <X11/Xaw/Scrollbar.h>Class header file &

Page 86

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default Valueheight Height Dimension A depends on orientationinsensitiveBorder Insensitive Pixmap

Page 87

Athena Widget Set libXaw 1.0.72.4.1)depth The depth of this widget’swindow.destroyCallback All functions on this list are called when this widget is d

Page 88

Athena Widget Set libXaw 1.0.7thumb This pixmap is used to tile (or stipple) the thumb of the scrollbar.Ifnotiling is desired, then set this resource

Page 89

Athena Widget Set libXaw 1.0.7void ScrollProc(scrollbar, client_data, position)Widget scrollbar;XtPointer client_data;XtPointer position;/*int */scrol

Page 90

Chapter 1Athena Widgets and The IntrinsicsThe X Toolkit is made up of twodistinct pieces, the Xt Intrinsics and a widget set. The Athenawidget set is

Page 91

Athena Widget Set libXaw 1.0.73.7.5. Setting Float ResourcesThe shown and topOfThumb resources are of type float.These resources can be difficult to get

Page 92

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default Valuedepth Depth int C Parent’sDepthdestroyCallback Callback XtCallbackList NULLheight Hei

Page 93

Athena Widget Set libXaw 1.0.7mappedWhenManaged If this resource is True,then the widget’swindowwill automatically bemapped by the Toolkit when it is

Page 94

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default ValueinsensitiveBorder Insensitive Pixmap GreyPixmapinternational International Boolean C

Page 95

Athena Widget Set libXaw 1.0.7width The height and width of this widget in pixels.highlight Apixel value which indexesthe widget’scolormap to derive t

Page 96

Athena Widget Set libXaw 1.0.7This function is used by the StripChart to call an application routine. The routine will pass thevalue to be graphed bac

Page 97

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default Valuefont Font XFontStruct XtDefaultFontfontSet FontSet XFontSet XtDefaultFontSetforegroun

Page 98

Athena Widget Set libXaw 1.0.7callback A list of routines to be called when the notify action is invoked.colormap The colormap that this widget will u

Page 99

Athena Widget Set libXaw 1.0.7label Specifies the text string to be displayed in the widget’swindowifnobit-map is specified. The default is the name of

Page 100

Athena Widget Set libXaw 1.0.7yThe location of the upper left outside corner of this widget in its parent.3.10.2. Toggle ActionsThe Toggle widget supp

Page 101

Athena Widget Set libXaw 1.0.7•Model•Conventions used in this manual•Format of the Widget Reference Chapters1.2. TerminologyIn addition to the terms a

Page 102

Athena Widget Set libXaw 1.0.73.10.4. Radio GroupsThere are typically twotypes of radio groups desired by applications. The default translations forth

Page 103

Athena Widget Set libXaw 1.0.7XawToggleSetCurrent locates the Toggle widget to be set by matching radio_data against theradioData for each Toggle in t

Page 104

Athena Widget Set libXaw 1.0.7Chapter 4MenusThe Athena widget set provides support for single paned non-hierarchical popup and pulldownmenus. Since me

Page 105

Athena Widget Set libXaw 1.0.7Class simpleMenuWidgetClassClass Name SimpleMenuSuperclass OverrideShellThe SimpleMenu widget is a container for the men

Page 106

Athena Widget Set libXaw 1.0.7ancestorSensitive The sensitivity state of the ancestors of this widget. Awidget is insensi-tive ifeither it or anyofits

Page 107

Athena Widget Set libXaw 1.0.7whether or not a windowmanager may interpose itself between this win-dowand the root windowofthe display.For more inform

Page 108

Athena Widget Set libXaw 1.0.7notify() Notifies the menu entry that is currently highlighted that is has beenselected. It is the responsibility of the

Page 109

Athena Widget Set libXaw 1.0.7Widget XawSimpleMenuGetActiveEntry(w)Widget w;w Specifies the SimpleMenu widget.This function returns the menu entry that

Page 110

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default Valuewidth Width Dimension ATextWidth + marginsancestorSensitive The sensitivity state of

Page 111

Athena Widget Set libXaw 1.0.7The default value for this resource (25) causes the default height to be125% of the height of the font.4.4. SmeLine Obje

Page 112 - Chapter 6

Athena Widget Set libXaw 1.0.7WidgetAn object providing a user-interface abstraction (for example, a Scrollbar widget).Widget classThe general group t

Page 113

Athena Widget Set libXaw 1.0.7Class Name SmeSuperclass RectObjThe Sme object is the base class for all menu entries. While this object is mainly inten

Page 114

Athena Widget Set libXaw 1.0.73) XtSetValues calls may come from the application while the Sme is highlighted, and if the Set-Values method returns Tr

Page 115

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default ValueinternalHeight Height Dimension 2internalWidth Width Dimension 4international Interna

Page 116

Athena Widget Set libXaw 1.0.7cursorName The name of the symbol to use to represent the pointer cursor.Thisresource will override the cursor resource

Page 117

Athena Widget Set libXaw 1.0.7spring_loaded. The MenuButton widget does not copythe value of thisresource into newly allocated memory.The application

Page 118

Athena Widget Set libXaw 1.0.7procedure. If no argument is passed, WhenUnset is assumed.unhighlight() Displays the internal highlight border in the co

Page 119

Athena Widget Set libXaw 1.0.7Chapter 5Text WidgetsThe Textwidget provides a windowthat will allowanapplication to display and edit one or morelines o

Page 120

Athena Widget Set libXaw 1.0.7Ctrl-o Newline And Backup Meta-< Beginning Of FileCtrl-p Previous Line Meta-> End Of FileCtrl-r Search/Replace Bac

Page 121

Athena Widget Set libXaw 1.0.7Using these special key sequences should allowsimple searches without everremoving one’shands from the keyboard.Near the

Page 122

Athena Widget Set libXaw 1.0.7Label labelTe x ttextCommand insertCommand cancel5.1.4. Text Selections for UsersThe text widgets have a textselection m

Page 123

Athena Widget Set libXaw 1.0.71.5. Format of the Widget Reference ChaptersThe majority of this document is a reference guide for the Athena widget set

Page 124

Athena Widget Set libXaw 1.0.7beginning-of-file select-endend-of-file extend-startscroll-one-line-up extend-adjustscroll-one-line-down extend-endinsert-

Page 125

Athena Widget Set libXaw 1.0.7next-page( )previous-page( ) These actions move the insert point up or down one page in thefile. One page is defined as th

Page 126

Athena Widget Set libXaw 1.0.7ev e nt) or text cursor location (if triggered by a key event).extend-adjust( ) This action allows a selection started w

Page 127

Athena Widget Set libXaw 1.0.7insert-char( ) This action may only be attached to a key event. When the inter-national resource is false,this action ca

Page 128

Athena Widget Set libXaw 1.0.7only on Textwidgets that use ASCII text.transpose-characters( ) This action will swap the position of the character to t

Page 129

Athena Widget Set libXaw 1.0.7XawselectPara-graphSelects the entire paragraph.XawselectPosition Selects the current pointer position.XawselectWord Sel

Page 130

Athena Widget Set libXaw 1.0.7:Meta<Key>H: backward-kill-word( ) \n\:Meta<Key>\<: beginning-of-file( ) \n\:Meta<Key>\>: end-of-

Page 131

Athena Widget Set libXaw 1.0.7ptr Contains the string to be referenced by the Textwidget.format This flag indicates whether the data pointed to by ptr

Page 132

Athena Widget Set libXaw 1.0.7end Specifies the ending character position of the text replacement.text Specifies the text to be inserted into the file.Th

Page 133

Athena Widget Set libXaw 1.0.7void XawTextEnableRedisplay(w)Widget w;w Specifies the Textwidget.The XawTextEnableRedisplay function flushes anychanges d

Page 134

Athena Widget Set libXaw 1.0.7DDonot modify this resource. While setting this resource will work, it can cause unex-pected behavior.When this symbol a

Page 135

Athena Widget Set libXaw 1.0.7To obtain the current position of the insertion point, use XawTextGetInsertionPoint:XawTextPosition XawTextGetInsertionP

Page 136 - Written By: Ralph Swick

Athena Widget Set libXaw 1.0.7management), and a ‘‘Sink’’(which handles the display). There are currently twosupportedsources, the AsciiSrc and MultiS

Page 137

Athena Widget Set libXaw 1.0.7Name Class Type Notes Default ValuetextSink TextSink Widget An AsciiSinktextSource TextSource Widget An AsciiSrctopMargi

Page 138

Athena Widget Set libXaw 1.0.7dataCompression The AsciiSrc uses an algorithm that may cause the text buffer to growtoabout twice the size of the actua

Page 139

Athena Widget Set libXaw 1.0.7pointerColorBackground A pixel value which indexesthe widget’scolormap to derive thebackground color of the pointer symb

Page 140

Athena Widget Set libXaw 1.0.7resources to point to an MultiSink and MultiSrc respectively.Wheninternational is set to false the AsciiTextwidget initi

Page 141

Athena Widget Set libXaw 1.0.7The AsciiSrc can be either of twotypes: XawAsciiFile or XawAsciiString.AsciiSrc objects of type XawAsciiFile read the te

Page 142

Athena Widget Set libXaw 1.0.7If this resource is True,the AsciiSrc will compress its data to the mini-mum size required every time the text string is

Page 143 - Table of Contents

Athena Widget Set libXaw 1.0.7memory by freeing this string as soon as you are done with it by calling XawAsciiSource-FreeString.void XawAsciiSourceFr

Page 144

Athena Widget Set libXaw 1.0.7with MultiSink differences noted only as theyoccur.The AsciiSink will display all printing char-acters in an 8 bit font,

Comments to this Manuals

No comments