ui/button.c File Reference

#include <stdlib.h>
#include <string.h>
#include "u_mem.h"
#include "fix.h"
#include "types.h"
#include "gr.h"
#include "ui.h"
#include "key.h"
#include "mono.h"

Defines

#define Middle(x)   ((2*(x)+1)/4)
#define BUTTON_EXTRA_WIDTH   15
#define BUTTON_EXTRA_HEIGHT   2

Functions

void ui_get_button_size (char *text, int *width, int *height)
void ui_draw_button (UI_GADGET_BUTTON *button)
UI_GADGET_BUTTONui_add_gadget_button (UI_WINDOW *wnd, short x, short y, short w, short h, char *text, int(*function_to_call)(void))
void ui_button_do (UI_GADGET_BUTTON *button, int keypress)

Variables

int ui_button_any_drawn = 0

Define Documentation

#define BUTTON_EXTRA_HEIGHT   2
 

#define BUTTON_EXTRA_WIDTH   15
 

#define Middle  )     ((2*(x)+1)/4)
 


Function Documentation

UI_GADGET_BUTTON* ui_add_gadget_button UI_WINDOW wnd,
short  x,
short  y,
short  w,
short  h,
char *  text,
int(*)(void)  function_to_call
 

void ui_button_do UI_GADGET_BUTTON button,
int  keypress
 

void ui_draw_button UI_GADGET_BUTTON button  ) 
 

void ui_get_button_size char *  text,
int *  width,
int *  height
 


Variable Documentation

int ui_button_any_drawn = 0
 


Generated on Mon Aug 28 20:55:34 2006 for D1X-Rebirth by  doxygen 1.4.6