mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Add XfeTabDrawRaised().
This commit is contained in:
parent
19868a15c8
commit
43071cc7a5
@ -880,9 +880,33 @@ FillTabHorizontal(Widget w,Pixmap pixmap,Dimension width,Dimension height)
|
||||
/* XfeTab Public Methods */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
Widget
|
||||
XfeCreateTab(Widget parent,char *name,Arg *args,Cardinal count)
|
||||
/* extern */ Widget
|
||||
XfeCreateTab(Widget pw,char * name,Arg * av,Cardinal ac)
|
||||
{
|
||||
return (XtCreateWidget(name,xfeTabWidgetClass,parent,args,count));
|
||||
return XtCreateWidget(name,xfeTabWidgetClass,pw,av,ac);
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* extern */ void
|
||||
XfeTabDrawRaised(Widget w,Boolean raised)
|
||||
{
|
||||
Boolean pointer_inside_save;
|
||||
|
||||
assert( _XfeIsAlive(w) );
|
||||
assert( XfeIsTab(w) );
|
||||
|
||||
/* Make sure the widget is realized before drawing anything */
|
||||
if (!_XfeIsRealized(w))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* Pretend the pointer is in/out according to 'raised' and expose */
|
||||
pointer_inside_save = _XfePointerInside(w);
|
||||
|
||||
_XfePointerInside(w) = raised;
|
||||
|
||||
XfeExpose(w,NULL,NULL);
|
||||
|
||||
_XfePointerInside(w) = pointer_inside_save;
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
@ -56,10 +56,14 @@ typedef struct _XfeTabRec * XfeTabWidget;
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
extern Widget
|
||||
XfeCreateTab (Widget parent,
|
||||
XfeCreateTab (Widget pw,
|
||||
String name,
|
||||
Arg * args,
|
||||
Cardinal num_args);
|
||||
Arg * av,
|
||||
Cardinal ac);
|
||||
/*----------------------------------------------------------------------*/
|
||||
extern void
|
||||
XfeTabDrawRaised (Widget w,
|
||||
Boolean raised);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
|
Loading…
Reference in New Issue
Block a user