#include "magick/studio.h"#include "magick/color.h"#include "magick/color-private.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/image.h"#include "magick/magick.h"#include "magick/memory_.h"#include "magick/PreRvIcccm.h"#include "magick/string_.h"#include "magick/token.h"#include "magick/utility.h"#include "magick/xwindow-private.h"#include "magick/widget.h"
Go to the source code of this file.
Data Structures | |
| struct | _XWidgetInfo |
Defines | |
| #define | AreaIsActive(matte_info, position) |
| #define | Extent(s) ((int) strlen(s)) |
| #define | MatteIsActive(matte_info, position) |
| #define | MaxTextWidth ((unsigned int) (255*XTextWidth(font_info,"_",1))) |
| #define | MinTextWidth (26*XTextWidth(font_info,"_",1)) |
| #define | QuantumMargin MagickMax(font_info->max_bounds.width,12) |
| #define | WidgetTextWidth(font_info, text) ((unsigned int) XTextWidth(font_info,text,Extent(text))) |
| #define | WindowIsActive(window_info, position) |
| #define | CancelButtonText "Cancel" |
| #define | ColornameText "Name:" |
| #define | ColorPatternText "Pattern:" |
| #define | GrabButtonText "Grab" |
| #define | ResetButtonText "Reset" |
| #define | tile_width 112 |
| #define | tile_height 70 |
| #define | CancelButtonText "Cancel" |
| #define | DismissButtonText "Dismiss" |
| #define | YesButtonText "Yes" |
| #define | CancelButtonText "Cancel" |
| #define | CancelButtonText "Cancel" |
| #define | DirectoryText "Directory:" |
| #define | FilenameText "File name:" |
| #define | GrabButtonText "Grab" |
| #define | FormatButtonText "Format" |
| #define | HomeButtonText "Home" |
| #define | UpButtonText "Up" |
| #define | BackButtonText "Back" |
| #define | CancelButtonText "Cancel" |
| #define | FontnameText "Name:" |
| #define | FontPatternText "Pattern:" |
| #define | ResetButtonText "Reset" |
| #define | CancelButtonText "Cancel" |
| #define | DismissButtonText "Dismiss" |
| #define | Timeout 8 |
| #define | ApplyButtonText "Apply" |
| #define | CacheButtonText "%lu mega-bytes of memory in the undo edit cache " |
| #define | CancelButtonText "Cancel" |
| #define | NumberPreferences 8 |
| #define | DismissButtonText "Dismiss" |
Typedefs | |
| typedef struct _XWidgetInfo | XWidgetInfo |
Enumerations | |
| enum | WidgetState { ControlState = 0x0001, InactiveWidgetState = 0x0004, JumpListState = 0x0008, RedrawActionState = 0x0010, RedrawListState = 0x0020, RedrawWidgetState = 0x0040, UpdateListState = 0x0100 } |
Functions | |
| static void | XDrawMatte (Display *, const XWindowInfo *, const XWidgetInfo *) |
| static void | XSetBevelColor (Display *, const XWindowInfo *, const MagickStatusType) |
| static void | XSetMatteColor (Display *, const XWindowInfo *, const MagickStatusType) |
| static void | XSetTextColor (Display *, const XWindowInfo *, const MagickStatusType) |
| MagickExport void | DestroyXWidget (void) |
| static void | XDrawBevel (Display *display, const XWindowInfo *window_info, const XWidgetInfo *bevel_info) |
| static int | MagickAbsoluteValue (const int x) |
| static int | MagickMax (const int x, const int y) |
| static int | MagickMin (const int x, const int y) |
| static void | XDrawBeveledButton (Display *display, const XWindowInfo *window_info, const XWidgetInfo *button_info) |
| static void | XDrawBeveledMatte (Display *display, const XWindowInfo *window_info, const XWidgetInfo *matte_info) |
| static void | XDrawMatteText (Display *display, const XWindowInfo *window_info, XWidgetInfo *text_info) |
| static void | XDrawTriangleEast (Display *display, const XWindowInfo *window_info, const XWidgetInfo *triangle_info) |
| static void | XDrawTriangleNorth (Display *display, const XWindowInfo *window_info, const XWidgetInfo *triangle_info) |
| static void | XDrawTriangleSouth (Display *display, const XWindowInfo *window_info, const XWidgetInfo *triangle_info) |
| static void | XDrawWidgetText (Display *display, const XWindowInfo *window_info, XWidgetInfo *text_info) |
| static void | XEditText (Display *display, XWidgetInfo *text_info, const KeySym key_symbol, char *text, const unsigned long state) |
| static void | XGetWidgetInfo (const char *text, XWidgetInfo *widget_info) |
| static void | XHighlightWidget (Display *display, const XWindowInfo *window_info, const int x, const int y) |
| static int | XScreenEvent (Display *display, XEvent *event, char *data) |
| MagickExport void | XColorBrowserWidget (Display *display, XWindows *windows, const char *action, char *reply) |
| MagickExport int | XCommandWidget (Display *display, XWindows *windows, const char **selections, XEvent *event) |
| MagickExport int | XConfirmWidget (Display *display, XWindows *windows, const char *reason, const char *description) |
| MagickExport int | XDialogWidget (Display *display, XWindows *windows, const char *action, const char *query, char *reply) |
| MagickExport void | XFileBrowserWidget (Display *display, XWindows *windows, const char *action, char *reply) |
| static int | FontCompare (const void *x, const void *y) |
| MagickExport void | XFontBrowserWidget (Display *display, XWindows *windows, const char *action, char *reply) |
| MagickExport void | XInfoWidget (Display *display, XWindows *windows, const char *activity) |
| MagickExport void | XListBrowserWidget (Display *display, XWindows *windows, XWindowInfo *window_info, const char **list, const char *action, const char *query, char *reply) |
| MagickExport int | XMenuWidget (Display *display, XWindows *windows, const char *title, const char **selections, char *item) |
| MagickExport void | XNoticeWidget (Display *display, XWindows *windows, const char *reason, const char *description) |
| MagickExport MagickBooleanType | XPreferencesWidget (Display *display, XResourceInfo *resource_info, XWindows *windows) |
| MagickExport void | XProgressMonitorWidget (Display *display, XWindows *windows, const char *task, const MagickOffsetType offset, const MagickSizeType span) |
| MagickExport void | XTextViewWidget (Display *display, const XResourceInfo *resource_info, XWindows *windows, const MagickBooleanType mono, const char *title, const char **textlist) |
Variables | |
| static XWidgetInfo | monitor_info |
| static XWidgetInfo | submenu_info |
| static XWidgetInfo * | selection_info = (XWidgetInfo *) NULL |
| static XWidgetInfo | toggle_info |
| static const int | BorderOffset = 4 |
| static const int | DoubleClick = 250 |
| #define ApplyButtonText "Apply" |
Referenced by XPreferencesWidget().
| #define AreaIsActive | ( | matte_info, | |||
| position | ) |
( \ ((position.y >= (int) (matte_info.y-matte_info.bevel_width)) && \ (position.y < (int) (matte_info.y+matte_info.height+matte_info.bevel_width))) \ ? MagickTrue : MagickFalse)
Definition at line 63 of file widget.c.
Referenced by XColorBrowserWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), and XTextViewWidget().
| #define BackButtonText "Back" |
Referenced by XFontBrowserWidget().
| #define CacheButtonText "%lu mega-bytes of memory in the undo edit cache " |
Referenced by XPreferencesWidget().
| #define CancelButtonText "Cancel" |
| #define CancelButtonText "Cancel" |
| #define CancelButtonText "Cancel" |
| #define CancelButtonText "Cancel" |
| #define CancelButtonText "Cancel" |
| #define CancelButtonText "Cancel" |
| #define CancelButtonText "Cancel" |
| #define ColornameText "Name:" |
Referenced by XColorBrowserWidget().
| #define ColorPatternText "Pattern:" |
Referenced by XColorBrowserWidget().
| #define DirectoryText "Directory:" |
Referenced by XFileBrowserWidget().
| #define DismissButtonText "Dismiss" |
| #define DismissButtonText "Dismiss" |
| #define DismissButtonText "Dismiss" |
Referenced by XConfirmWidget(), XNoticeWidget(), and XTextViewWidget().
| #define Extent | ( | s | ) | ((int) strlen(s)) |
Definition at line 67 of file widget.c.
Referenced by XColorBrowserWidget(), XConfirmWidget(), XDialogWidget(), XDrawBeveledButton(), XDrawMatteText(), XDrawTriangleEast(), XDrawWidgetText(), XEditText(), XFileBrowserWidget(), XFontBrowserWidget(), XGetWidgetInfo(), XListBrowserWidget(), XNoticeWidget(), and XTextViewWidget().
| #define FilenameText "File name:" |
Referenced by XFileBrowserWidget().
| #define FontnameText "Name:" |
Referenced by XFontBrowserWidget().
| #define FontPatternText "Pattern:" |
Referenced by XFontBrowserWidget().
| #define FormatButtonText "Format" |
Referenced by XFileBrowserWidget().
| #define GrabButtonText "Grab" |
| #define GrabButtonText "Grab" |
Referenced by XColorBrowserWidget(), and XFileBrowserWidget().
| #define HomeButtonText "Home" |
Referenced by XFileBrowserWidget().
| #define MatteIsActive | ( | matte_info, | |||
| position | ) |
( \ ((position.x >= (int) (matte_info.x-matte_info.bevel_width)) && \ (position.y >= (int) (matte_info.y-matte_info.bevel_width)) && \ (position.x < (int) (matte_info.x+matte_info.width+matte_info.bevel_width)) && \ (position.y < (int) (matte_info.y+matte_info.height+matte_info.bevel_width))) \ ? MagickTrue : MagickFalse)
Definition at line 68 of file widget.c.
Referenced by XColorBrowserWidget(), XCommandWidget(), XConfirmWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), XMenuWidget(), XNoticeWidget(), XPreferencesWidget(), and XTextViewWidget().
| #define MaxTextWidth ((unsigned int) (255*XTextWidth(font_info,"_",1))) |
Definition at line 74 of file widget.c.
Referenced by XColorBrowserWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), and XTextViewWidget().
| #define MinTextWidth (26*XTextWidth(font_info,"_",1)) |
Definition at line 75 of file widget.c.
Referenced by XColorBrowserWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), and XTextViewWidget().
| #define NumberPreferences 8 |
Referenced by XPreferencesWidget().
| #define QuantumMargin MagickMax(font_info->max_bounds.width,12) |
Definition at line 76 of file widget.c.
Referenced by XColorBrowserWidget(), XCommandWidget(), XConfirmWidget(), XDialogWidget(), XDrawBeveledButton(), XDrawMatteText(), XDrawTriangleEast(), XDrawWidgetText(), XFileBrowserWidget(), XFontBrowserWidget(), XInfoWidget(), XListBrowserWidget(), XMenuWidget(), XNoticeWidget(), XPreferencesWidget(), and XTextViewWidget().
| #define ResetButtonText "Reset" |
| #define ResetButtonText "Reset" |
Referenced by XColorBrowserWidget(), and XFontBrowserWidget().
| #define tile_height 70 |
Referenced by IntegralRotateImage(), and XCommandWidget().
| #define tile_width 112 |
Referenced by IntegralRotateImage(), and XCommandWidget().
| #define Timeout 8 |
Referenced by XNoticeWidget().
| #define UpButtonText "Up" |
Referenced by XFileBrowserWidget().
| #define WidgetTextWidth | ( | font_info, | |||
| text | ) | ((unsigned int) XTextWidth(font_info,text,Extent(text))) |
Definition at line 77 of file widget.c.
Referenced by XColorBrowserWidget(), XCommandWidget(), XConfirmWidget(), XDialogWidget(), XDrawBeveledButton(), XDrawMatteText(), XDrawWidgetText(), XFileBrowserWidget(), XFontBrowserWidget(), XInfoWidget(), XListBrowserWidget(), XMenuWidget(), XNoticeWidget(), XPreferencesWidget(), and XTextViewWidget().
| #define WindowIsActive | ( | window_info, | |||
| position | ) |
( \ ((position.x >= 0) && (position.y >= 0) && \ (position.x < (int) window_info.width) && \ (position.y < (int) window_info.height)) ? MagickTrue : MagickFalse)
Definition at line 79 of file widget.c.
Referenced by XMenuWidget().
| #define YesButtonText "Yes" |
Referenced by XConfirmWidget().
| typedef struct _XWidgetInfo XWidgetInfo |
| enum WidgetState |
| MagickExport void DestroyXWidget | ( | void | ) |
Definition at line 187 of file widget.c.
References RelinquishMagickMemory(), and selection_info.
Referenced by DestroyXResources().
| static int FontCompare | ( | const void * | x, | |
| const void * | y | |||
| ) | [static] |
Definition at line 5454 of file widget.c.
Referenced by XFontBrowserWidget().
| static int MagickAbsoluteValue | ( | const int | x | ) | [inline, static] |
Definition at line 313 of file widget.c.
Referenced by XSetTextColor().
| static int MagickMax | ( | const int | x, | |
| const int | y | |||
| ) | [inline, static] |
Definition at line 320 of file widget.c.
Referenced by XColorBrowserWidget(), XCommandWidget(), XConfirmWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), XMenuWidget(), XNoticeWidget(), XPreferencesWidget(), and XTextViewWidget().
| static int MagickMin | ( | const int | x, | |
| const int | y | |||
| ) | [inline, static] |
Definition at line 327 of file widget.c.
Referenced by XColorBrowserWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), and XTextViewWidget().
| MagickExport void XColorBrowserWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char * | action, | |||
| char * | reply | |||
| ) |
Definition at line 1617 of file widget.c.
References AcquireExceptionInfo(), _XWidgetInfo::active, _XWindowInfo::annotate_context, AreaIsActive, _XWidgetInfo::bevel_width, BorderOffset, CancelButtonText, _XWidgetInfo::center, ColornameText, ColorPatternText, ControlState, CopyMagickString(), _XWidgetInfo::cursor, DestroyString(), DoubleClick, ExitState, Extent, _XWindowInfo::font_info, FormatMagickString(), GetColorList(), GetMagickModule, GrabButtonText, _XWidgetInfo::height, _XWindowInfo::height, _XWidgetInfo::highlight, _XWidgetInfo::id, _XWindowInfo::id, InactiveWidgetState, JumpListState, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickTrue, _XWindowInfo::map_info, _XWindowInfo::mapped, _XWidgetInfo::marker, _XPixelInfo::matte_color, MatteIsActive, _XWidgetInfo::max_y, MaxTextExtent, MaxTextWidth, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWidgetInfo::min_y, MinTextWidth, _XWindowInfo::name, _XWindowInfo::pixel_info, QuantumMargin, _XWidgetInfo::raised, RedrawActionState, RedrawListState, RedrawWidgetState, RelinquishMagickMemory(), ResetButtonText, _XWindowInfo::screen, selection_info, SuspendTime, _XWidgetInfo::text, TraceEvent, _XWidgetInfo::trough, UpdateConfigurationState, UpdateListState, _XWindowInfo::visual_info, _XWindows::widget, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWindows::wm_take_focus, _XWidgetInfo::x, _XWindowInfo::x, XBell, XBestPixel(), XChangeProperty, XCheckIfEvent, XCheckMaskEvent, XCheckRefreshWindows(), XConstrainWindowPosition(), XConvertSelection, XDelay(), XDialogWidget(), XDrawBeveledButton(), XDrawBeveledMatte(), XDrawMatte(), XDrawMatteText(), XDrawString, XDrawTriangleNorth(), XDrawTriangleSouth(), XDrawWidgetText(), XEditText(), XFree, XGetSelectionOwner, XGetWidgetInfo(), XGetWindowColor(), XGetWindowProperty, XHighlightWidget(), XIfEvent, XLookupString, XMapRaised, XNoticeWidget(), XParseColor, XReconfigureWMWindow, XScreenEvent(), XSendEvent, XSetCursorState(), XSetInputFocus, XSetSelectionOwner, XSetWMIconName, XSetWMName, XStringListToTextProperty, XTextWidth, _XWidgetInfo::y, and _XWindowInfo::y.
| MagickExport int XCommandWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char ** | selections, | |||
| XEvent * | event | |||
| ) |
Definition at line 2808 of file widget.c.
References AcquireQuantumMemory(), _XWidgetInfo::active, _XWindowInfo::annotate_context, _XWidgetInfo::bevel_width, BorderOffset, _XWidgetInfo::center, _XWindows::command, _XWindowInfo::data, DefaultState, _XWindowInfo::font_info, GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWindowInfo::id, LogMagickEvent(), MagickFalse, MagickMax(), MagickTrue, _XWindowInfo::mapped, MatteIsActive, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWindowInfo::name, QuantumMargin, _XWidgetInfo::raised, RedrawWidgetState, RelinquishMagickMemory(), ResourceLimitError, _XWindowInfo::screen, selection_info, submenu_info, SuspendTime, ThrowXWindowFatalException, tile_height, tile_width, toggle_info, TraceEvent, UpdateConfigurationState, _XWindows::widget, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWidgetInfo::x, _XWindowInfo::x, XCheckMaskEvent, XCheckWindowEvent, XClearWindow, XConstrainWindowPosition(), XCopyPlane, XCreatePixmapFromBitmapData, XDelay(), XDrawBeveledButton(), XDrawTriangleEast(), XFree, XFreePixmap, XGetWidgetInfo(), XHighlightWidget(), XReconfigureWMWindow, XSetWMIconName, XSetWMName, XStringListToTextProperty, XWithdrawWindow, _XWindowInfo::y, and _XWidgetInfo::y.
Referenced by XCheckRefreshWindows(), XProgressMonitorWidget(), and XScreenEvent().
| MagickExport int XConfirmWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char * | reason, | |||
| const char * | description | |||
| ) |
Definition at line 3234 of file widget.c.
References _XWindowInfo::annotate_context, BorderOffset, CancelButtonText, ConcatenateMagickString(), CopyMagickString(), DismissButtonText, Extent, _XWindowInfo::font_info, GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWindowInfo::id, InactiveWidgetState, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickMax(), MagickTrue, _XWindowInfo::mapped, MatteIsActive, MaxTextExtent, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWindowInfo::name, QuantumMargin, _XWidgetInfo::raised, RedrawWidgetState, _XWindowInfo::screen, _XWidgetInfo::text, TraceEvent, UpdateConfigurationState, _XWindows::widget, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWindows::wm_take_focus, _XWidgetInfo::x, _XWindowInfo::x, XCheckMaskEvent, XCheckRefreshWindows(), XConstrainWindowPosition(), XDrawBeveledButton(), XDrawString, XFree, XGetWidgetInfo(), XHighlightWidget(), XIfEvent, XLookupString, XMapRaised, XReconfigureWMWindow, XScreenEvent(), XSetCursorState(), XSetInputFocus, XSetWMIconName, XSetWMName, XStringListToTextProperty, XWithdrawWindow, _XWidgetInfo::y, _XWindowInfo::y, and YesButtonText.
| MagickExport int XDialogWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char * | action, | |||
| const char * | query, | |||
| char * | reply | |||
| ) |
Definition at line 3642 of file widget.c.
References _XWidgetInfo::bevel_width, BorderOffset, CancelButtonText, _XWidgetInfo::center, ControlState, CopyMagickString(), _XWidgetInfo::cursor, DoubleClick, Extent, _XWindowInfo::font_info, GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWidgetInfo::highlight, _XWindowInfo::id, InactiveWidgetState, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickMax(), MagickTrue, _XWindowInfo::mapped, _XWidgetInfo::marker, MatteIsActive, MaxTextExtent, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWindowInfo::name, QuantumMargin, _XWidgetInfo::raised, RedrawWidgetState, _XWindowInfo::screen, _XWidgetInfo::text, TraceEvent, UpdateConfigurationState, _XWindows::widget, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWindows::wm_take_focus, _XWidgetInfo::x, _XWindowInfo::x, XBell, XChangeProperty, XCheckMaskEvent, XCheckRefreshWindows(), XConstrainWindowPosition(), XConvertSelection, XDrawBeveledButton(), XDrawBeveledMatte(), XDrawMatteText(), XDrawWidgetText(), XEditText(), XFree, XGetSelectionOwner, XGetWidgetInfo(), XGetWindowProperty, XHighlightWidget(), XIfEvent, XLookupString, XMapRaised, XReconfigureWMWindow, XScreenEvent(), XSendEvent, XSetCursorState(), XSetInputFocus, XSetSelectionOwner, XSetWMIconName, XSetWMName, XStringListToTextProperty, XTextWidth, _XWidgetInfo::y, and _XWindowInfo::y.
Referenced by XColorBrowserWidget(), and XFileBrowserWidget().
| static void XDrawBevel | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const XWidgetInfo * | bevel_info | |||
| ) | [static] |
Definition at line 223 of file widget.c.
References _XWidgetInfo::bevel_width, _XWidgetInfo::height, _XWindowInfo::id, _XWidgetInfo::raised, _XWindowInfo::widget_context, _XWidgetInfo::width, _XWidgetInfo::x, XFillPolygon, XSetBevelColor(), XSetFillStyle, and _XWidgetInfo::y.
Referenced by XDrawBeveledButton(), XDrawBeveledMatte(), and XMenuWidget().
| static void XDrawBeveledButton | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const XWidgetInfo * | button_info | |||
| ) | [static] |
Definition at line 334 of file widget.c.
References _XWidgetInfo::bevel_width, _XWidgetInfo::center, _XWindowInfo::depth, Extent, _XWindowInfo::font_info, _XWidgetInfo::height, _XWindowInfo::id, MagickFalse, MagickTrue, _XWindowInfo::pixel_info, QuantumMargin, _XWidgetInfo::raised, SuspendTime, _XWidgetInfo::text, _XPixelInfo::trough_color, _XWindowInfo::widget_context, WidgetTextWidth, _XWidgetInfo::width, _XWidgetInfo::x, XDelay(), XDrawBevel(), XDrawRectangle, XDrawString, XFillRectangle, XSetClipMask, XSetClipRectangles, XSetForeground, XSetMatteColor(), XSetTextColor(), and _XWidgetInfo::y.
Referenced by XColorBrowserWidget(), XCommandWidget(), XConfirmWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), XNoticeWidget(), XPreferencesWidget(), and XTextViewWidget().
| static void XDrawBeveledMatte | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const XWidgetInfo * | matte_info | |||
| ) | [static] |
Definition at line 436 of file widget.c.
References XDrawBevel(), and XDrawMatte().
Referenced by XColorBrowserWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XInfoWidget(), XListBrowserWidget(), and XTextViewWidget().
| static void XDrawMatte | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const XWidgetInfo * | matte_info | |||
| ) | [static] |
Definition at line 474 of file widget.c.
References _XWindowInfo::depth, _XWidgetInfo::height, _XWindowInfo::highlight_context, _XWindowInfo::id, MagickFalse, _XWindowInfo::pixel_info, _XWidgetInfo::trough, _XPixelInfo::trough_color, _XWindowInfo::widget_context, _XWidgetInfo::width, _XWidgetInfo::x, XFillRectangle, XSetForeground, and _XWidgetInfo::y.
Referenced by XColorBrowserWidget(), XDrawBeveledMatte(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), and XTextViewWidget().
| static void XDrawMatteText | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| XWidgetInfo * | text_info | |||
| ) | [static] |
Definition at line 522 of file widget.c.
References _XWindowInfo::annotate_context, _XWidgetInfo::cursor, Extent, _XWindowInfo::font_info, _XWidgetInfo::height, _XWidgetInfo::highlight, _XWindowInfo::highlight_context, _XWindowInfo::id, MagickFalse, _XWidgetInfo::marker, QuantumMargin, _XWidgetInfo::text, _XWindowInfo::widget_context, WidgetTextWidth, _XWidgetInfo::width, _XWidgetInfo::x, XDrawLine, XDrawString, XFillRectangle, XSetClipMask, XSetClipRectangles, XSetMatteColor(), XSetTextColor(), XTextWidth, and _XWidgetInfo::y.
Referenced by XColorBrowserWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), and XListBrowserWidget().
| static void XDrawTriangleEast | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const XWidgetInfo * | triangle_info | |||
| ) | [static] |
Definition at line 660 of file widget.c.
References _XWidgetInfo::bevel_width, Extent, _XWindowInfo::font_info, _XWidgetInfo::height, _XWindowInfo::id, MagickTrue, QuantumMargin, _XWidgetInfo::raised, _XWidgetInfo::text, _XWindowInfo::widget_context, _XWidgetInfo::width, _XWidgetInfo::x, XDrawString, XFillPolygon, XSetBevelColor(), XSetFillStyle, XSetMatteColor(), XSetTextColor(), and _XWidgetInfo::y.
Referenced by XCommandWidget(), XMenuWidget(), and XPreferencesWidget().
| static void XDrawTriangleNorth | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const XWidgetInfo * | triangle_info | |||
| ) | [static] |
Definition at line 786 of file widget.c.
References _XWidgetInfo::bevel_width, _XWidgetInfo::height, _XWindowInfo::id, _XWidgetInfo::raised, _XWindowInfo::widget_context, _XWidgetInfo::width, _XWidgetInfo::x, XFillPolygon, XSetBevelColor(), XSetFillStyle, XSetMatteColor(), and _XWidgetInfo::y.
Referenced by XColorBrowserWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), and XTextViewWidget().
| static void XDrawTriangleSouth | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const XWidgetInfo * | triangle_info | |||
| ) | [static] |
Definition at line 896 of file widget.c.
References _XWidgetInfo::bevel_width, _XWidgetInfo::height, _XWindowInfo::id, _XWidgetInfo::raised, _XWindowInfo::widget_context, _XWidgetInfo::width, _XWidgetInfo::x, XFillPolygon, XSetBevelColor(), XSetFillStyle, XSetMatteColor(), and _XWidgetInfo::y.
Referenced by XColorBrowserWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), and XTextViewWidget().
| static void XDrawWidgetText | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| XWidgetInfo * | text_info | |||
| ) | [static] |
Definition at line 1005 of file widget.c.
References _XWindowInfo::annotate_context, _XWidgetInfo::center, Extent, _XWindowInfo::font_info, _XWidgetInfo::height, _XWindowInfo::highlight_context, _XWindowInfo::id, MagickFalse, QuantumMargin, _XWidgetInfo::raised, _XWidgetInfo::text, WidgetTextWidth, _XWidgetInfo::width, _XWidgetInfo::x, XClearArea, XDrawLine, XDrawString, XFillRectangle, XSetClipMask, XSetClipRectangles, and _XWidgetInfo::y.
Referenced by XColorBrowserWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XInfoWidget(), XListBrowserWidget(), XMenuWidget(), XProgressMonitorWidget(), and XTextViewWidget().
| static void XEditText | ( | Display * | display, | |
| XWidgetInfo * | text_info, | |||
| const KeySym | key_symbol, | |||
| char * | text, | |||
| const unsigned long | state | |||
| ) | [static] |
Definition at line 1105 of file widget.c.
References ControlState, CopyMagickString(), _XWidgetInfo::cursor, Extent, _XWidgetInfo::highlight, MagickFalse, _XWidgetInfo::marker, MaxTextExtent, _XWidgetInfo::text, and XBell.
Referenced by XColorBrowserWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), and XListBrowserWidget().
| MagickExport void XFileBrowserWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char * | action, | |||
| char * | reply | |||
| ) |
Definition at line 4217 of file widget.c.
References AcquireExceptionInfo(), _XWidgetInfo::active, _XWindowInfo::annotate_context, AppendImageFormat(), AreaIsActive, _XWidgetInfo::bevel_width, BorderOffset, _XWindowInfo::busy_cursor, CancelButtonText, _XWidgetInfo::center, ChopPathComponents(), ConcatenateMagickString(), ControlState, CopyMagickString(), _XWindowInfo::cursor, _XWidgetInfo::cursor, DestroyExceptionInfo(), DestroyString(), DirectorySeparator, DirectoryText, DoubleClick, ExpandFilename(), Extent, FilenameText, _XWindowInfo::font_info, FormatButtonText, getcwd, GetMagickList(), GetMagickModule, GrabButtonText, _XWidgetInfo::height, _XWindowInfo::height, _XWidgetInfo::highlight, HomeButtonText, _XWidgetInfo::id, _XWindowInfo::id, InactiveWidgetState, IsGlob(), JumpListState, ListFiles(), LocaleCompare(), LocaleLower(), LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickTrue, _XWindowInfo::mapped, _XWidgetInfo::marker, MatteIsActive, _XWidgetInfo::max_y, MaxTextExtent, MaxTextWidth, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWidgetInfo::min_y, MinTextWidth, _XWindowInfo::name, _XWindows::popup, QuantumMargin, _XWidgetInfo::raised, RedrawActionState, RedrawListState, RedrawWidgetState, RelinquishMagickMemory(), _XWindowInfo::screen, selection_info, SuspendTime, _XWidgetInfo::text, TraceEvent, _XWidgetInfo::trough, UpButtonText, UpdateConfigurationState, UpdateListState, _XWindows::widget, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWindows::wm_take_focus, _XWidgetInfo::x, _XWindowInfo::x, XBell, XChangeProperty, XCheckDefineCursor(), XCheckIfEvent, XCheckMaskEvent, XCheckRefreshWindows(), XConstrainWindowPosition(), XConvertSelection, XDelay(), XDialogWidget(), XDrawBeveledButton(), XDrawBeveledMatte(), XDrawMatte(), XDrawMatteText(), XDrawString, XDrawTriangleNorth(), XDrawTriangleSouth(), XDrawWidgetText(), XEditText(), XFree, XGetSelectionOwner, XGetWidgetInfo(), XGetWindowProperty, XHighlightWidget(), XIfEvent, XListBrowserWidget(), XLookupString, XMapRaised, XNoticeWidget(), XReconfigureWMWindow, XScreenEvent(), XSendEvent, XSetCursorState(), XSetInputFocus, XSetSelectionOwner, XSetWMIconName, XSetWMName, XStringListToTextProperty, XTextWidth, _XWidgetInfo::y, and _XWindowInfo::y.
| MagickExport void XFontBrowserWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char * | action, | |||
| char * | reply | |||
| ) |
Definition at line 5474 of file widget.c.
References AcquireQuantumMemory(), _XWidgetInfo::active, _XWindowInfo::annotate_context, AreaIsActive, BackButtonText, _XWidgetInfo::bevel_width, BorderOffset, CancelButtonText, _XWidgetInfo::center, ControlState, CopyMagickString(), _XWidgetInfo::cursor, DoubleClick, Extent, _XWindowInfo::font_info, FontCompare(), FontnameText, FontPatternText, GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWidgetInfo::highlight, _XWidgetInfo::id, _XWindowInfo::id, InactiveWidgetState, JumpListState, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickTrue, _XWindowInfo::mapped, _XWidgetInfo::marker, MatteIsActive, _XWidgetInfo::max_y, MaxTextExtent, MaxTextWidth, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWidgetInfo::min_y, MinTextWidth, _XWindowInfo::name, QuantumMargin, _XWidgetInfo::raised, RedrawActionState, RedrawListState, RedrawWidgetState, RelinquishMagickMemory(), ResetButtonText, _XWindowInfo::screen, selection_info, SuspendTime, _XWidgetInfo::text, TraceEvent, _XWidgetInfo::trough, UpdateConfigurationState, UpdateListState, _XWindows::widget, _XWindowInfo::widget_context, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWindows::wm_take_focus, _XWidgetInfo::x, _XWindowInfo::x, XBell, XChangeProperty, XCheckIfEvent, XCheckMaskEvent, XCheckRefreshWindows(), XConstrainWindowPosition(), XConvertSelection, XDelay(), XDrawBeveledButton(), XDrawBeveledMatte(), XDrawMatte(), XDrawMatteText(), XDrawString, XDrawTriangleNorth(), XDrawTriangleSouth(), XDrawWidgetText(), XEditText(), XFree, XFreeFont, XFreeFontNames, XGetSelectionOwner, XGetWidgetInfo(), XGetWindowProperty, XHighlightWidget(), XIfEvent, XListFonts, XLoadQueryFont, XLookupString, XMapRaised, XNoticeWidget(), XReconfigureWMWindow, XScreenEvent(), XSendEvent, XSetCursorState(), XSetFont, XSetInputFocus, XSetSelectionOwner, XSetWMIconName, XSetWMName, XStringListToTextProperty, XTextWidth, _XWidgetInfo::y, and _XWindowInfo::y.
| static void XGetWidgetInfo | ( | const char * | text, | |
| XWidgetInfo * | widget_info | |||
| ) | [static] |
Definition at line 1226 of file widget.c.
References _XWidgetInfo::active, _XWidgetInfo::bevel_width, _XWidgetInfo::center, _XWidgetInfo::cursor, Extent, _XWidgetInfo::height, _XWidgetInfo::highlight, _XWidgetInfo::id, MagickFalse, MagickTrue, _XWidgetInfo::marker, _XWidgetInfo::max_y, _XWidgetInfo::min_y, _XWidgetInfo::raised, _XWidgetInfo::text, _XWidgetInfo::trough, _XWidgetInfo::width, _XWidgetInfo::x, and _XWidgetInfo::y.
Referenced by XColorBrowserWidget(), XCommandWidget(), XConfirmWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XInfoWidget(), XListBrowserWidget(), XMenuWidget(), XNoticeWidget(), XPreferencesWidget(), and XTextViewWidget().
| static void XHighlightWidget | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const int | x, | |||
| const int | y | |||
| ) | [static] |
Definition at line 1282 of file widget.c.
References _XWindowInfo::height, _XWindowInfo::id, MagickFalse, MagickTrue, _XWindowInfo::widget_context, _XWindowInfo::width, XDrawRectangle, XSetBevelColor(), and XSetFillStyle.
Referenced by XColorBrowserWidget(), XCommandWidget(), XConfirmWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), XNoticeWidget(), XPreferencesWidget(), and XTextViewWidget().
| MagickExport void XInfoWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char * | activity | |||
| ) |
Definition at line 6651 of file widget.c.
References _XWidgetInfo::bevel_width, _XWidgetInfo::center, _XWindowInfo::font_info, GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWindowInfo::id, _XWindows::info, LogMagickEvent(), MagickFalse, MagickTrue, _XWindowInfo::mapped, monitor_info, QuantumMargin, _XWidgetInfo::raised, _XWindowInfo::screen, TraceEvent, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWidgetInfo::x, XDrawBeveledMatte(), XDrawWidgetText(), XGetWidgetInfo(), XMapRaised, XReconfigureWMWindow, and _XWidgetInfo::y.
Referenced by XProgressMonitorWidget().
| MagickExport void XListBrowserWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| XWindowInfo * | window_info, | |||
| const char ** | list, | |||
| const char * | action, | |||
| const char * | query, | |||
| char * | reply | |||
| ) |
Definition at line 6752 of file widget.c.
References _XWidgetInfo::active, AreaIsActive, _XWidgetInfo::bevel_width, BorderOffset, CancelButtonText, _XWidgetInfo::center, ControlState, CopyMagickString(), _XWidgetInfo::cursor, DoubleClick, Extent, _XWindowInfo::font_info, GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWidgetInfo::highlight, _XWidgetInfo::id, _XWindowInfo::id, InactiveWidgetState, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickTrue, _XWindowInfo::mapped, _XWidgetInfo::marker, MatteIsActive, _XWidgetInfo::max_y, MaxTextExtent, MaxTextWidth, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWidgetInfo::min_y, MinTextWidth, _XWindowInfo::name, QuantumMargin, _XWidgetInfo::raised, RedrawActionState, RedrawListState, RedrawWidgetState, _XWindowInfo::screen, selection_info, SuspendTime, _XWidgetInfo::text, TraceEvent, _XWidgetInfo::trough, UpdateConfigurationState, _XWindows::widget, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWindows::wm_take_focus, _XWidgetInfo::x, _XWindowInfo::x, XBell, XChangeProperty, XCheckIfEvent, XCheckMaskEvent, XCheckRefreshWindows(), XConstrainWindowPosition(), XConvertSelection, XDelay(), XDrawBeveledButton(), XDrawBeveledMatte(), XDrawMatte(), XDrawMatteText(), XDrawTriangleNorth(), XDrawTriangleSouth(), XDrawWidgetText(), XEditText(), XFree, XGetSelectionOwner, XGetWidgetInfo(), XGetWindowProperty, XHighlightWidget(), XIfEvent, XLookupString, XMapRaised, XNoticeWidget(), XReconfigureWMWindow, XScreenEvent(), XSendEvent, XSetCursorState(), XSetInputFocus, XSetSelectionOwner, XSetWMIconName, XSetWMName, XStringListToTextProperty, XTextWidth, _XWidgetInfo::y, and _XWindowInfo::y.
Referenced by XFileBrowserWidget().
| MagickExport int XMenuWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char * | title, | |||
| const char ** | selections, | |||
| char * | item | |||
| ) |
Definition at line 7663 of file widget.c.
References _XWidgetInfo::active, _XWidgetInfo::bevel_width, _XWidgetInfo::center, _XWindows::command, CopyMagickString(), _XWindowInfo::font_info, GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWidgetInfo::id, _XWindowInfo::id, _XWindows::image, InactiveWidgetState, LogMagickEvent(), MagickFalse, MagickMax(), MagickTrue, _XWindowInfo::mapped, MatteIsActive, MaxTextExtent, _XWindowInfo::min_height, _XWindowInfo::min_width, QuantumMargin, _XWidgetInfo::raised, RedrawWidgetState, _XWindowInfo::root, _XWindowInfo::screen, selection_info, submenu_info, _XWidgetInfo::text, toggle_info, TraceEvent, UpdateConfigurationState, _XWindows::widget, _XWindowInfo::widget_context, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, WindowIsActive, _XWidgetInfo::x, _XWindowInfo::x, XChangeWindowAttributes, XCheckDefineCursor(), XCheckMaskEvent, XCheckRefreshWindows(), XConstrainWindowPosition(), XCreateFontCursor, XDrawBevel(), XDrawLine, XDrawTriangleEast(), XDrawWidgetText(), XFreeCursor, XGetWidgetInfo(), XIfEvent, XMapRaised, XPutBackEvent, XQueryPosition(), XReconfigureWMWindow, XScreenEvent(), XSetBevelColor(), XSetCursorState(), XSetFillStyle, XWithdrawWindow, _XWidgetInfo::y, and _XWindowInfo::y.
| MagickExport void XNoticeWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char * | reason, | |||
| const char * | description | |||
| ) |
Definition at line 8093 of file widget.c.
References _XWindowInfo::annotate_context, BorderOffset, CopyMagickString(), DismissButtonText, Extent, _XWindowInfo::font_info, GetLocaleExceptionMessage(), GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWindowInfo::id, InactiveWidgetState, LogMagickEvent(), MagickFalse, MagickMax(), MagickTrue, _XWindowInfo::mapped, MatteIsActive, MaxTextExtent, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWindowInfo::name, QuantumMargin, _XWidgetInfo::raised, RedrawWidgetState, _XWindowInfo::screen, SuspendTime, Timeout, TraceEvent, UpdateConfigurationState, _XWindows::widget, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWidgetInfo::x, _XWindowInfo::x, XBell, XCheckIfEvent, XCheckMaskEvent, XCheckRefreshWindows(), XConstrainWindowPosition(), XDelay(), XDrawBeveledButton(), XDrawString, XFree, XGetWidgetInfo(), XHighlightWidget(), XLookupString, XMapRaised, XReconfigureWMWindow, XScreenEvent(), XServerError, XSetCursorState(), XSetInputFocus, XSetWMIconName, XSetWMName, XStringListToTextProperty, XWithdrawWindow, _XWidgetInfo::y, and _XWindowInfo::y.
Referenced by XColorBrowserWidget(), XDisplayImageInfo(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), XTextViewWidget(), and XWarning().
| MagickExport MagickBooleanType XPreferencesWidget | ( | Display * | display, | |
| XResourceInfo * | resource_info, | |||
| XWindows * | windows | |||
| ) |
Definition at line 8422 of file widget.c.
References ApplyButtonText, _XResourceInfo::backdrop, _XWidgetInfo::bevel_width, BorderOffset, CacheButtonText, CancelButtonText, _XResourceInfo::colormap, _XResourceInfo::confirm_edit, _XResourceInfo::confirm_exit, CopyMagickString(), _XResourceInfo::display_warnings, _QuantizeInfo::dither, _XWindowInfo::font_info, FormatMagickString(), _XResourceInfo::gamma_correct, GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWindowInfo::id, InactiveWidgetState, LogMagickEvent(), MagickFalse, MagickMax(), MagickTrue, _XWindowInfo::mapped, MatteIsActive, MaxTextExtent, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWindowInfo::name, NumberPreferences, PrivateColormap, _XResourceInfo::quantize_info, QuantumMargin, _XWidgetInfo::raised, RedrawWidgetState, _XWindowInfo::screen, SharedColormap, TraceEvent, _XResourceInfo::undo_cache, UpdateConfigurationState, _XResourceInfo::use_pixmap, _XWindows::widget, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWindows::wm_take_focus, _XWidgetInfo::x, _XWindowInfo::x, XCheckMaskEvent, XCheckRefreshWindows(), XClearArea, XConstrainWindowPosition(), XDrawBeveledButton(), XDrawTriangleEast(), XFree, XGetWidgetInfo(), XHighlightWidget(), XIfEvent, XLookupString, XMapRaised, XReconfigureWMWindow, XScreenEvent(), XSetCursorState(), XSetInputFocus, XSetWMIconName, XSetWMName, XStringListToTextProperty, XUserPreferences(), XWithdrawWindow, _XWidgetInfo::y, and _XWindowInfo::y.
| MagickExport void XProgressMonitorWidget | ( | Display * | display, | |
| XWindows * | windows, | |||
| const char * | task, | |||
| const MagickOffsetType | offset, | |||
| const MagickSizeType | span | |||
| ) |
Definition at line 8880 of file widget.c.
References _XWindows::command, GetMagickModule, _XWindowInfo::id, _XWindows::image, _XWindows::info, LogMagickEvent(), MagickFalse, MagickTrue, _XWindowInfo::mapped, monitor_info, _XWidgetInfo::raised, _XWidgetInfo::text, TraceEvent, _XWidgetInfo::width, _XWindowInfo::width, _XWidgetInfo::x, XCheckTypedWindowEvent, XCommandWidget(), XDrawWidgetText(), XFlush, XInfoWidget(), and XRefreshWindow().
Referenced by XMagickProgressMonitor().
| static int XScreenEvent | ( | Display * | display, | |
| XEvent * | event, | |||
| char * | data | |||
| ) | [static] |
Definition at line 1332 of file widget.c.
References _XWindows::command, _XWindowInfo::id, _XWindows::image, MagickFalse, MagickTrue, _XWindows::magnify, _XWindowInfo::mapped, _XWindows::popup, _XWindows::widget, XCommandWidget(), XMakeMagnifyImage(), XRefreshWindow(), and XSetInputFocus.
Referenced by XColorBrowserWidget(), XConfirmWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), XMenuWidget(), XNoticeWidget(), XPreferencesWidget(), and XTextViewWidget().
| static void XSetBevelColor | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const MagickStatusType | raised | |||
| ) |
Definition at line 1445 of file widget.c.
References _XWindowInfo::depth, _XPixelInfo::highlight_color, _XWindowInfo::highlight_stipple, MagickFalse, _XWindowInfo::pixel_info, _XWindowInfo::screen, _XPixelInfo::shadow_color, _XWindowInfo::shadow_stipple, _XWindowInfo::widget_context, XBlackPixel, XSetBackground, XSetFillStyle, XSetForeground, XSetStipple, and XWhitePixel.
Referenced by XDrawBevel(), XDrawTriangleEast(), XDrawTriangleNorth(), XDrawTriangleSouth(), XHighlightWidget(), and XMenuWidget().
| static void XSetMatteColor | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const MagickStatusType | raised | |||
| ) |
Definition at line 1503 of file widget.c.
References _XWindowInfo::depth, _XPixelInfo::depth_color, _XPixelInfo::matte_color, _XWindowInfo::pixel_info, _XWindowInfo::screen, _XWindowInfo::widget_context, XBlackPixel, XSetForeground, and XWhitePixel.
Referenced by XDrawBeveledButton(), XDrawMatteText(), XDrawTriangleEast(), XDrawTriangleNorth(), and XDrawTriangleSouth().
| static void XSetTextColor | ( | Display * | display, | |
| const XWindowInfo * | window_info, | |||
| const MagickStatusType | raised | |||
| ) |
Definition at line 1555 of file widget.c.
References _XPixelInfo::background_color, _XWindowInfo::depth, _XPixelInfo::foreground_color, MagickAbsoluteValue(), _XPixelInfo::matte_color, _XWindowInfo::pixel_info, _XWindowInfo::screen, _XWindowInfo::widget_context, XBlackPixel, XPixelIntensity(), XSetForeground, and XWhitePixel.
Referenced by XDrawBeveledButton(), XDrawMatteText(), and XDrawTriangleEast().
| MagickExport void XTextViewWidget | ( | Display * | display, | |
| const XResourceInfo * | resource_info, | |||
| XWindows * | windows, | |||
| const MagickBooleanType | mono, | |||
| const char * | title, | |||
| const char ** | textlist | |||
| ) |
Definition at line 8959 of file widget.c.
References _XWidgetInfo::active, _XWindowInfo::annotate_context, AreaIsActive, _XWidgetInfo::bevel_width, BorderOffset, _XWidgetInfo::center, CopyMagickString(), DismissButtonText, DoubleClick, Extent, _XWindowInfo::font_info, GetMagickModule, _XWidgetInfo::height, _XWindowInfo::height, _XWindowInfo::highlight_context, _XWidgetInfo::id, _XWindowInfo::id, InactiveWidgetState, LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickTrue, _XWindowInfo::mapped, MatteIsActive, _XWidgetInfo::max_y, MaxTextExtent, MaxTextWidth, _XWindowInfo::min_height, _XWindowInfo::min_width, _XWidgetInfo::min_y, MinTextWidth, _XWindowInfo::name, QuantumMargin, _XWidgetInfo::raised, RedrawListState, RedrawWidgetState, _XWindowInfo::screen, selection_info, SuspendTime, _XWidgetInfo::text, TraceEvent, _XWidgetInfo::trough, UpdateConfigurationState, _XWindows::widget, WidgetTextWidth, _XWidgetInfo::width, _XWindowInfo::width, _XWindows::wm_delete_window, _XWindows::wm_protocols, _XWindows::wm_take_focus, _XWidgetInfo::x, _XWindowInfo::x, XBestFont(), XChangeProperty, XCheckIfEvent, XCheckMaskEvent, XCheckRefreshWindows(), XConstrainWindowPosition(), XDelay(), XDrawBeveledButton(), XDrawBeveledMatte(), XDrawMatte(), XDrawTriangleNorth(), XDrawTriangleSouth(), XDrawWidgetText(), XFree, XFreeFont, XGetSelectionOwner, XGetWidgetInfo(), XHighlightWidget(), XIfEvent, XLookupString, XMapRaised, XNoticeWidget(), XReconfigureWMWindow, XScreenEvent(), XSendEvent, XSetCursorState(), XSetFont, XSetInputFocus, XSetSelectionOwner, XSetWMIconName, XSetWMName, XStringListToTextProperty, XTextWidth, XWithdrawWindow, _XWidgetInfo::y, and _XWindowInfo::y.
Referenced by XDisplayImageInfo().
const int BorderOffset = 4 [static] |
Definition at line 155 of file widget.c.
Referenced by XColorBrowserWidget(), XCommandWidget(), XConfirmWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), XNoticeWidget(), XPreferencesWidget(), and XTextViewWidget().
const int DoubleClick = 250 [static] |
Definition at line 156 of file widget.c.
Referenced by XColorBrowserWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), and XTextViewWidget().
XWidgetInfo monitor_info [static] |
{
(char *) NULL, (char *) NULL, (char *) NULL, 0, 0, 0, 0, 0, 0, 0, 0,
MagickFalse, MagickFalse, MagickFalse, MagickFalse, MagickFalse
}
Definition at line 134 of file widget.c.
Referenced by XInfoWidget(), and XProgressMonitorWidget().
XWidgetInfo * selection_info = (XWidgetInfo *) NULL [static] |
Definition at line 144 of file widget.c.
Referenced by DestroyXWidget(), XColorBrowserWidget(), XCommandWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XListBrowserWidget(), XMenuWidget(), and XTextViewWidget().
XWidgetInfo submenu_info [static] |
{
(char *) NULL, (char *) NULL, (char *) NULL, 0, 0, 0, 0, 0, 0, 0, 0,
MagickFalse, MagickFalse, MagickFalse, MagickFalse, MagickFalse
}
Definition at line 139 of file widget.c.
Referenced by XCommandWidget(), and XMenuWidget().
XWidgetInfo toggle_info [static] |
{
(char *) NULL, (char *) NULL, (char *) NULL, 0, 0, 0, 0, 0, 0, 0, 0,
MagickFalse, MagickFalse, MagickFalse, MagickFalse, MagickFalse
}
Definition at line 145 of file widget.c.
Referenced by XCommandWidget(), and XMenuWidget().
1.6.1