mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
31 lines
576 B
C
31 lines
576 B
C
#ifndef _HAVE_CLTR_BUTTON_H
|
|
#define _HAVE_CLTR_BUTTON_H
|
|
|
|
#include "cltr.h"
|
|
|
|
typedef struct CltrButton CltrButton;
|
|
|
|
typedef enum CltrButtonState
|
|
{
|
|
CltrButtonStateDisabled,
|
|
CltrButtonStateInactive,
|
|
CltrButtonStateFocused,
|
|
CltrButtonStateActive,
|
|
}
|
|
CltrButtonState;
|
|
|
|
typedef void (*CltrButtonActivate) (CltrWidget *widget, void *userdata) ;
|
|
|
|
#define CLTR_BUTTON(w) ((CltrButton*)(w))
|
|
|
|
CltrWidget*
|
|
cltr_button_new(int width, int height);
|
|
|
|
void
|
|
cltr_button_on_activate(CltrButton *button,
|
|
CltrButtonActivate callback,
|
|
void* userdata);
|
|
|
|
|
|
#endif
|