2005-04-22 18:03:55 +00:00
|
|
|
#ifndef _HAVE_CLTR_BUTTON_H
|
|
|
|
#define _HAVE_CLTR_BUTTON_H
|
|
|
|
|
|
|
|
#include "cltr.h"
|
|
|
|
|
|
|
|
typedef struct CltrButton CltrButton;
|
|
|
|
|
2005-04-29 16:44:17 +00:00
|
|
|
typedef enum CltrButtonState
|
|
|
|
{
|
|
|
|
CltrButtonStateDisabled,
|
|
|
|
CltrButtonStateInactive,
|
|
|
|
CltrButtonStateFocused,
|
|
|
|
CltrButtonStateActive,
|
|
|
|
}
|
|
|
|
CltrButtonState;
|
|
|
|
|
|
|
|
typedef void (*CltrButtonActivate) (CltrWidget *widget, void *userdata) ;
|
|
|
|
|
2005-04-22 18:03:55 +00:00
|
|
|
#define CLTR_BUTTON(w) ((CltrButton*)(w))
|
|
|
|
|
|
|
|
CltrWidget*
|
|
|
|
cltr_button_new(int width, int height);
|
|
|
|
|
2005-04-29 16:44:17 +00:00
|
|
|
void
|
|
|
|
cltr_button_on_activate(CltrButton *button,
|
|
|
|
CltrButtonActivate callback,
|
|
|
|
void* userdata);
|
|
|
|
|
2005-05-23 21:21:50 +00:00
|
|
|
void
|
|
|
|
cltr_button_set_label(CltrButton *button,
|
|
|
|
const char *text,
|
|
|
|
CltrFont *font,
|
|
|
|
PixbufPixel *col);
|
2005-04-22 18:03:55 +00:00
|
|
|
|
|
|
|
#endif
|