?? frame.h
字號:
/* $Id: Frame.h,v 1.2 1998/12/15 06:35:52 falk Exp $ * * This widget manages one child widget, placing a decorative border * around it. The frame may have an optional title, which will be placed * at the top, breaking the decoration. The title may be any widget, but * is normally some sort of label widget. * * Border styles are as follow: * * None no border * Solid solid border in foreground color * Raised raised 3d look * Lowered pressed 3d look * Ridge raised ridge * Groove indented groove * Trough indented groove with flat bottom. */#ifndef _Frame_h#define _Frame_h#include <X11/Xmu/Converters.h>/*********************************************************************** * * Frame Widget (subclass of CompositeClass) * ***********************************************************************//* Parameters: Name Class RepType Default Value ---- ----- ------- ------------- shadowType ShadowType ShadowType solid shadowWidth ShadowWidth Dimension foreground Foreground Pixel XtDefaultForeground title Title Widget NULL justify Justify XtJustify left marginWidth Margin Dimension 0 marginHeight Margin Dimension 0 allowResize AllowResize Boolean True beNiceToColormap BeNiceToColormap Boolean False topShadowContrast TopShadowContrast int 20 bottomShadowContrast BottomShadowContrast int 40 background Background Pixel XtDefaultBackground border BorderColor Pixel XtDefaultForeground borderWidth BorderWidth Dimension 0 destroyCallback Callback Pointer NULL mappedWhenManaged MappedWhenManaged Boolean True width Width Dimension 0 height Height Dimension 0 x Position Position 0 y Position Position 0 Notes: 1 internalWidth, internalHeight specify the margins around the child widget 2 allowResize specifies if child widget is allowed to resize itself. 3 BeNiceToColormap causes the Frame widget to use fewer colors.*//* New fields */#ifndef XtNtitle#define XtNtitle "title"#define XtCTitle "Title"#endif#ifndef XtNshadowType#define XtNshadowType "shadowType"#define XtCShadowType "ShadowType"#define XtRShadowType "ShadowType"#endif#ifndef XtNallowResize#define XtNallowResize "allowResize"#endif#ifndef XtCAllowResize#define XtCAllowResize "AllowResize"#endif#ifndef XtNmarginWidth#define XtNmarginWidth "marginWidth"#define XtNmarginHeight "marginHeight"#endif#ifndef XtNshadowWidth#define XtNshadowWidth "shadowWidth"#define XtCShadowWidth "ShadowWidth"#define XtNtopShadowPixel "topShadowPixel"#define XtCTopShadowPixel "TopShadowPixel"#define XtNbottomShadowPixel "bottomShadowPixel"#define XtCBottomShadowPixel "BottomShadowPixel"#define XtNtopShadowContrast "topShadowContrast"#define XtCTopShadowContrast "TopShadowContrast"#define XtNbottomShadowContrast "bottomShadowContrast"#define XtCBottomShadowContrast "BottomShadowContrast"#endif#ifndef XtNinsensitiveContrast#define XtNinsensitiveContrast "insensitiveContrast"#define XtCInsensitiveContrast "InsensitiveContrast"#endif#ifndef XtNtopShadowPixmap#define XtNtopShadowPixmap "topShadowPixmap"#define XtCTopShadowPixmap "TopShadowPixmap"#define XtNbottomShadowPixmap "bottomShadowPixmap"#define XtCBottomShadowPixmap "BottomShadowPixmap"#endif#ifndef XtNbeNiceToColormap#define XtNbeNiceToColormap "beNiceToColormap"#define XtCBeNiceToColormap "BeNiceToColormap"#define XtNbeNiceToColourmap "beNiceToColormap"#define XtCBeNiceToColourmap "BeNiceToColormap"#endiftypedef enum { Blank, /* no border */ Solid, /* solid border in foreground color */ Raised, /* raised 3d look */ Lowered, /* pressed 3d look */ Ridge, /* raised ridge */ Groove, /* indented groove */ Plateau, /* raised ridge with flat top */ Trough} /* indented groove with flat bottom */ XtShadowType ;/* Class record constants */extern WidgetClass frameWidgetClass;typedef struct _FrameClassRec *FrameWidgetClass;typedef struct _FrameRec *FrameWidget;#endif /* _Frame_h */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -