Add routine to load XBM from file
This commit is contained in:
@@ -5,9 +5,14 @@
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
/* XmdLoadBitmapIcon is a macro that loads an icon with the specified name. That Icon must
|
||||
be #include'd in your code somewhere. The name parameter must be a token, not a string. */
|
||||
#define XmdLoadBitmapIcon(widget, name) _XmdLoadBitmapIcon(widget, name##_bits, name##_width, name##_height)
|
||||
/* XmdLoadBitmapIcon is a macro that loads an icon with the specified name. That
|
||||
Icon must be #include'd in your code somewhere. The name parameter must be a
|
||||
token, not a string. */
|
||||
#define XmdLoadBitmapIcon(widget, name)\
|
||||
_XmdLoadBitmapIcon(widget, name##_bits, name##_width, name##_height)
|
||||
Pixmap _XmdLoadBitmapIcon (Widget widget, unsigned char *bits, int width, int height);
|
||||
|
||||
/* XmdReadXBM reads an XBM bitmap file, and returns a Pixmap. */
|
||||
Pixmap XmdReadBitmapFileData (Widget, widget, const char *filename);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,9 +5,6 @@
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
typedef struct {
|
||||
Pixmap icon;
|
||||
const char *command;
|
||||
} XmdLauncher;
|
||||
/* TODO */
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user