File: ude-button.h

package info (click to toggle)
ude 0.2.8.final-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,096 kB
  • ctags: 1,613
  • sloc: ansic: 12,648; sh: 3,025; makefile: 476; yacc: 318
file content (37 lines) | stat: -rw-r--r-- 1,322 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef UDE_BUTTON_H
#define UDE_BUTTON_H

#include "ude-box.h"

/* Buttons (hex and normal, also switches and radio button lists) */
/* UDEButton flags */
#define UDEButtonDown (1<<0) /* set if selected */
#define UDEButtonSelectable (1<<1) /* is button selectable or inactive? */
#define UDEButtonSwitch (1<<2) /* is button a switch or an action button? */
#define UDEButtonRadio (1<<3) /* does this button belong to a radio list? */
#define UDEButtonShaped (1<<4) /* is this button shaped? */
#define UDEButtonUserPixmaps (1<<5) /* Button will be automatically drawn using
          if not set. otherwise the given pixmaps are used. */
/* UDEButton display_status */
#define UDEButtonDispPassive (0)
#define UDEButtonDispMouseOver (1)
#define UDEButtonDispActive (2)

typedef struct _UDEButton UDEButton;

struct _UDEButton {
   UDEBox box;
   unsigned int flags;
   unsigned char display_status;
   Pixmap std, mouse_over, active, shape;
   char *name;
   struct _UDEButton *nextradio, *prevradio;
};

UDEButton*
ude_button_create (UDEDesktop *desk, UDEBox *parent, char *name,
                   int x, int y, unsigned int width, unsigned int height,
                   Pixmap std, Pixmap mouse_over, Pixmap active, Pixmap shape,
                   unsigned int flags, UDEButton *radio, UDEPointer UserData);

#endif