Frame widget

Application Header file <Xraw/Frame.h>
Class Header file <Xraw/FrameP.h>
Class frameWidgetClass
Class Name Frame
Superclass Container --> Constraint --> Composit --> Core

Table of Contents


    The Frame widget is a simple manager intened to fulfil a geometry location its children using the fraction method and to paint aesthetic border around itself.

Frame example

    The picture presents the Frame widget making the fraction geometry managment policy for its five children, each of which is too the Frame making the simple geometry managment policy for its own child (the Label widget).


New Resources

Name Class Type Notes Default Value
hSpace HSpace Dimension CSG 4
layoutPolicy LayoutPolicy XawLayoutPolicy CG XawSINGLE
frameType FrameType XawFrameType CSG XawCHISELED
vSpace VSpace Dimension CSG 4
xFraction Fraction int CSG 100
yFraction Fraction int CSG 100
hSpace
vSpace
Specifies the amount of space left between the outermost children and the edge of the Frame widget.
layoutPolicy Specifies how children widgets will be located on the Frame widget.
XawSINGLE The first managed child widget will be located on the Frame. Other ones will not be visible. The Frame widget will resize this child each time when it will be resized itselt by its parent widget.
XawCENTER It is indentical as beyond, except that child widget will always placed in the center of the Frame widget with its original size and it will be shrinked only when its original size larger then the parent size.
XawFRACTION All managed children widget will be put on screen, relative positions of they will be calculated base on xFraction and yFraction resource of the Frame widget and its own constraint fraction resources.
xFraction
yFraction
Specifies the count of fractions that horizontal or vertical space of the Frame widget will devided on.
frameType Specifies the type of border will be used to enclose space of the Frame widget.
The value may be one of these: XawRAISED, XawSUNKEN, XawCHISELED, XawLEDGED, XawTACK.

Inherited Resources

Container class resources
Name Class Type Notes Default Value
bottomShadowPixel BottomShadowPixel Pixel CSG Dinamic
bottomShadowPixmap BottomShadowPixmap Pixmap CSG UnspecifiedPixmap
shadowWidth ShadowWidth Dimension CSG 0
topShadowPixmap TopShadowPixmap Pixmap CSG UnspecifiedPixmap
topShadowPixel TopShadowPixel Pixel CSG Dinamic
userData UserData XtPointer CSG NULL
 
Composit class resources
Name Class Type Notes Default Value
children ReadOnly WidgetList G NULL
insertPosition InsertPosition XtOrderProc CSG Insert new children at the end of the child list
numChildren ReadOnly Cardinal G 0
 
Core class resources
Name Class Type Notes Default Value
accelerators Accelerators XtAccelerators CSG NULL
ancestorSensitive AncestorSensitive Boolean G True
background Background Pixel CSG XtDefaultBackground
backgroundPixmap Pixmap Pixmap CSG XtUnspecifiedPixmap
borderColor BorderColor Pixel CSG XtDefaultForeground
borderPixmap Pixmap Pixmap CSG XtUnspecifiedPixmap
borderWidth BorderWidth Dimension CSG 0
colormap Colormap Colormap CG Parent's Colormap
depth Depth int CG Parent's Depth
destroyCallback Callback XtCallbackList C NULL
height Height Dimension CSG 0
initialResourcesPersistent InitialResourcesPersistent Boolean C True
mappedWhenManaged MappedWhenManaged Boolean CSG True
screen Screen Screen CG Parent's Screen
sensitive Sensitive Boolean CSG True
translations Translations XtTranslations CSG NULL
width Width Dimension CSG 0
x Position Position CSG 0
y Position Position CSG 0


Constraint Resources

    Each child of the Frame widget may request layout resources be applied to it. These constraint resources allow the Frame widget's children to specify individual layout requirements.

Name Class Type Notes Default Value
bottom Fraction int CSG 1
left Fraction int CSG 0
right Fraction int CSG 1
top Fraction int CSG 0
bottom
left
right
top
What fraction of the Frame widget this edge of the child should be placed to when the parent is resized.
This resource may be any integet number from 0 till xFraction for left and right, and from 0 till yFraction for top and bottom. Look the example.


Callback Information

This version of Frame widget does not define any callback resource.

Frame Actions

This version of Frame widget does not define any actions.

Convenience Routines

This version of Frame widget does not define any convenience routine.

[ Xraw home ]   [ Xraw widget class hierarchy ]


Vladimir T. Romanovski
romsky@hp1.oea.ihep.su