LayoutP.h File Reference

#include <X11/Xaw3d/Layout.h>
#include <X11/ConstrainP.h>

Include dependency graph for LayoutP.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _Expr
struct  _Glue
struct  _BoxParams
struct  _Box
struct  _SubInfo
struct  _LayoutClassPart
struct  _LayoutClassRec
struct  _LayoutConstraintsRec
struct  LayoutPart
struct  _LayoutRec

Defines

#define GlueEqual(a, b)   ((a).order == (b).order && (a).value == (b).value)
#define AddGlue(r, a, b)
#define MinGlue(r, a, b)
#define SubGlue(r, a, b)
#define ZeroGlue(g)   ((g).value = 0, (g).order = 0, (g).expr = 0)
#define IsZeroGlue(g)   ((g).value == 0)
#define QuarkToWidget(l, q)
#define New(t)   (t *) XtCalloc(1,sizeof (t))
#define Dispose(p)   XtFree((char *) p)
#define Some(t, n)   (t*) XtMalloc(sizeof(t) * n)
#define More(p, t, n)   ((p)? (t *) XtRealloc((char *) p, sizeof(t)*n):Some(t,n)
#define SubInfo(w)   (&(((LayoutConstraints) (w)->core.constraints)->layout))

Typedefs

typedef enum _BoxType BoxType
typedef enum _LayoutDirection LayoutDirection
typedef enum _Operator Operator
typedef enum _ExprType ExprType
typedef _ExprExprPtr
typedef _Expr ExprRec
typedef _Glue GlueRec
typedef _GlueGluePtr
typedef _BoxParams BoxParamsRec
typedef _BoxParamsBoxParamsPtr
typedef _BoxBoxPtr
typedef BoxPtr LayoutPtr
typedef _Box LBoxRec
typedef _SubInfo SubInfoRec
typedef _SubInfoSubInfoPtr
typedef _LayoutClassPart LayoutClassPart
typedef _LayoutClassRec LayoutClassRec
typedef _LayoutConstraintsRec LayoutConstraintsRec
typedef _LayoutConstraintsRecLayoutConstraints
typedef _LayoutRec LayoutRec

Enumerations

enum  _BoxType { BoxBox, WidgetBox, GlueBox, VariableBox }
enum  _LayoutDirection { LayoutHorizontal = 0, LayoutVertical = 1 }
enum  _Operator {
  Plus, Minus, Times, Divide,
  Percent
}
enum  _ExprType {
  Constant, Binary, Unary, Width,
  Height, Variable
}

Variables

LayoutClassRec layoutClassRec


Define Documentation

#define AddGlue ( r,
a,
b   ) 

Value:

if (a.order == b.order) { \
                            r.order = a.order; \
                            r.value = a.value + b.value; \
                        } else { \
                            if (a.order > b.order) \
                                r = a; \
                            else \
                                r = b; \
                        }

Definition at line 43 of file LayoutP.h.

Referenced by ComputeNaturalSizes().

#define Dispose ( p   )     XtFree((char *) p)

Definition at line 171 of file LayoutP.h.

Referenced by DisposeExpr(), and LayoutFreeLayout().

#define GlueEqual ( a,
b   )     ((a).order == (b).order && (a).value == (b).value)

Definition at line 41 of file LayoutP.h.

#define IsZeroGlue ( g   )     ((g).value == 0)

Definition at line 79 of file LayoutP.h.

#define MinGlue ( r,
a,
b   ) 

Value:

if (a.order == b.order) { \
                            r.order = a.order; \
                            if (a.value > b.value) \
                                r.value = b.value; \
                            else \
                                r.value = a.value; \
                        } else { \
                            if (a.order > b.order) \
                                r = b; \
                            else \
                                r = a; \
                        }

Definition at line 53 of file LayoutP.h.

Referenced by ComputeNaturalSizes().

#define More ( p,
t,
n   )     ((p)? (t *) XtRealloc((char *) p, sizeof(t)*n):Some(t,n)

Definition at line 173 of file LayoutP.h.

#define New ( t   )     (t *) XtCalloc(1,sizeof (t))

Definition at line 170 of file LayoutP.h.

#define QuarkToWidget ( l,
 ) 

Value:

XtNameToWidget((Widget) l, \
                                           (char *) XrmQuarkToString(q));

Definition at line 81 of file LayoutP.h.

Referenced by ComputeNaturalSizes(), and Evaluate().

#define Some ( t,
n   )     (t*) XtMalloc(sizeof(t) * n)

Definition at line 172 of file LayoutP.h.

#define SubGlue ( r,
a,
b   ) 

Value:

if (a.order == b.order) { \
                            r.order = a.order; \
                            r.value = a.value - b.value; \
                        } else { \
                            if (a.order > b.order) \
                                r = a; \
                            else { \
                                r.order = b.order; \
                                r.value = -b.value; \
                            } \
                        }

Definition at line 66 of file LayoutP.h.

#define SubInfo ( w   )     (&(((LayoutConstraints) (w)->core.constraints)->layout))

Definition at line 207 of file LayoutP.h.

Referenced by ComputeNaturalSizes(), Evaluate(), GeometryManager(), GetDesiredSize(), and SetSizes().

#define ZeroGlue ( g   )     ((g).value = 0, (g).order = 0, (g).expr = 0)

Definition at line 78 of file LayoutP.h.

Referenced by ComputeNaturalSizes().


Typedef Documentation

typedef struct _BoxParams * BoxParamsPtr

typedef struct _BoxParams BoxParamsRec

typedef struct _Box* BoxPtr

Definition at line 134 of file LayoutP.h.

typedef enum _BoxType BoxType

typedef struct _Expr* ExprPtr

Definition at line 103 of file LayoutP.h.

typedef struct _Expr ExprRec

typedef enum _ExprType ExprType

typedef struct _Glue * GluePtr

typedef struct _Glue GlueRec

typedef struct _LayoutClassPart LayoutClassPart

typedef struct _LayoutClassRec LayoutClassRec

typedef struct _LayoutConstraintsRec * LayoutConstraints

typedef struct _LayoutConstraintsRec LayoutConstraintsRec

typedef enum _LayoutDirection LayoutDirection

typedef BoxPtr LayoutPtr

Definition at line 136 of file LayoutP.h.

typedef struct _LayoutRec LayoutRec

typedef struct _Box LBoxRec

typedef enum _Operator Operator

typedef struct _SubInfo * SubInfoPtr

typedef struct _SubInfo SubInfoRec


Enumeration Type Documentation

enum _BoxType

Enumerator:
BoxBox 
WidgetBox 
GlueBox 
VariableBox 

Definition at line 84 of file LayoutP.h.

enum _ExprType

Enumerator:
Constant 
Binary 
Unary 
Width 
Height 
Variable 

Definition at line 94 of file LayoutP.h.

00094                        {
00095     Constant,
00096     Binary,
00097     Unary,
00098     Width,
00099     Height,
00100     Variable
00101 } ExprType;

enum _LayoutDirection

Enumerator:
LayoutHorizontal 
LayoutVertical 

Definition at line 86 of file LayoutP.h.

00086                               {
00087     LayoutHorizontal = 0, LayoutVertical = 1
00088 } LayoutDirection;

enum _Operator

Enumerator:
Plus 
Minus 
Times 
Divide 
Percent 

Definition at line 90 of file LayoutP.h.

00090                        {
00091     Plus, Minus, Times, Divide, Percent
00092 } Operator;


Variable Documentation

LayoutClassRec layoutClassRec

Definition at line 111 of file Layout.c.


Generated on Sun Mar 4 16:01:16 2007 for Scilab [trunk] by  doxygen 1.5.1