|
FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "freespace2/freespace.h"#include "globalincs/pstypes.h"#include "io/key.h"#include "io/mouse.h"Go to the source code of this file.
Classes | |
| struct | UI_MOUSE |
Macros | |
| #define | CBLACK Color_black |
| #define | CGREEN Color_green |
| #define | CBRIGHT_GREEN Color_bright_green |
| #define | CGRAY Color_grey |
| #define | CDARK_GRAY Color_bright_white |
| #define | CWHITE Color_white |
| #define | CBRIGHT Color_bright_white |
| #define | BORDER_WIDTH 8 |
| #define | BUTTON_PRESSED 1 |
| #define | BUTTON_RELEASED 2 |
| #define | BUTTON_JUST_PRESSED 4 |
| #define | BUTTON_JUST_RELEASED 8 |
| #define | BUTTON_DOUBLE_CLICKED 16 |
| #define | B1_PRESSED (ui_mouse.b1_status & BUTTON_PRESSED) |
| #define | B1_RELEASED (ui_mouse.b1_status & BUTTON_RELEASED) |
| #define | B1_JUST_PRESSED (ui_mouse.b1_status & BUTTON_JUST_PRESSED) |
| #define | B1_JUST_RELEASED (ui_mouse.b1_status & BUTTON_JUST_RELEASED) |
| #define | B1_DOUBLE_CLICKED (ui_mouse.b1_status & BUTTON_DOUBLE_CLICKED) |
| #define | B2_PRESSED (ui_mouse.b2_status & BUTTON_PRESSED) |
| #define | B2_RELEASED (ui_mouse.b2_status & BUTTON_RELEASED) |
| #define | B2_JUST_PRESSED (ui_mouse.b2_status & BUTTON_JUST_PRESSED) |
| #define | B2_JUST_RELEASED (ui_mouse.b2_status & BUTTON_JUST_RELEASED) |
| #define | Middle(x) ((x)/2) |
Typedefs | |
| typedef struct UI_MOUSE | UI_MOUSE |
Functions | |
| void | ui_hline (int x1, int x2, int y) |
| void | ui_vline (int y1, int y2, int x) |
| void | ui_string_centered (int x, int y, char *s) |
| void | ui_draw_shad (int x1, int y1, int x2, int y2, int r1, int g1, int b1, int r2, int g2, int b2) |
| void | ui_draw_frame (int x1, int y1, int x2, int y2) |
| void | ui_rect (int x1, int y1, int x2, int y2) |
| void | ui_draw_box_out (int x1, int y1, int x2, int y2) |
| void | ui_draw_box_in (int x1, int y1, int x2, int y2) |
| void | ui_draw_line_in (int x1, int y1, int x2, int y2) |
| void | ui_draw_sunken_border (int x1, int y1, int x2, int y2) |
| void | ui_mouse_process () |
Variables | |
| UI_MOUSE | ui_mouse |
| #define B1_DOUBLE_CLICKED (ui_mouse.b1_status & BUTTON_DOUBLE_CLICKED) |
| #define B1_JUST_PRESSED (ui_mouse.b1_status & BUTTON_JUST_PRESSED) |
| #define B1_JUST_RELEASED (ui_mouse.b1_status & BUTTON_JUST_RELEASED) |
| #define B1_PRESSED (ui_mouse.b1_status & BUTTON_PRESSED) |
| #define B1_RELEASED (ui_mouse.b1_status & BUTTON_RELEASED) |
| #define B2_JUST_PRESSED (ui_mouse.b2_status & BUTTON_JUST_PRESSED) |
| #define B2_JUST_RELEASED (ui_mouse.b2_status & BUTTON_JUST_RELEASED) |
| #define B2_PRESSED (ui_mouse.b2_status & BUTTON_PRESSED) |
| #define B2_RELEASED (ui_mouse.b2_status & BUTTON_RELEASED) |
| #define CBLACK Color_black |
| #define CBRIGHT Color_bright_white |
| #define CBRIGHT_GREEN Color_bright_green |
| #define CDARK_GRAY Color_bright_white |
| #define CGRAY Color_grey |
| #define CGREEN Color_green |
| #define CWHITE Color_white |
| void ui_draw_shad | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | r1, | ||
| int | g1, | ||
| int | b1, | ||
| int | r2, | ||
| int | g2, | ||
| int | b2 | ||
| ) |
Definition at line 106 of file uidraw.cpp.
| void ui_mouse_process | ( | ) |
Definition at line 21 of file uimouse.cpp.
Definition at line 28 of file uidraw.cpp.
| UI_MOUSE ui_mouse |
Definition at line 17 of file uimouse.cpp.