summaryrefslogtreecommitdiff
path: root/textscreen/txt_button.c
AgeCommit message (Collapse)Author
2011-04-04Change the background color when hovering over widgets.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2320
2010-12-10Replace txt_widget_t#selectable with a callback function to querySimon Howard
whether the widget is selectable. This stops the table code from selecting things that aren't really selectable - eg. empty tables, scrollpanes containing unselectable widgets, etc. Fixes a bug with the warp menu (thanks Proteh). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2207
2006-09-26Add TXT_NewButton2 for creating a button with a callback (for convenience).Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 673
2006-09-21Use NULL for initialising pointers rather than 0.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 644
2006-09-21Fix a lot of warnings (for fussy compilers) and one always-true checkRussell Rice
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 641
2006-09-19Fix textscreen warnings.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 626
2006-09-18Add function to set button label.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 614
2006-08-31Add missing copyright notices to textscreen and setup files.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 590
2006-06-20Always add a bit of padding inside windows (removes the need to add paddingSimon Howard
explicitly in labels). Set the window title from the desktop title. Only draw widget selection highlight in the window with focus (top window). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 560
2006-06-02Make mouse button presses on widgets actually do useful thingsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 553
2006-06-02textscreen: Rejig how the entire drawing process works. Add a recursiveSimon Howard
layout method that assigns the position and size of widgets for the whole window before drawing. Add another method that responds to mouse button presses. Allow windows to have no title bar by specifying NULL as the title. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 547
2006-05-23Fix compiler warnings caused by missing includes.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 517
2006-05-23Eat keypresses when pressing buttons.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 514
2006-05-22CAST -> TXT_CAST_ARG, UNCAST -> TXT_UNCAST_ARG.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 509
2006-05-22Add casting macros to allow for easy casts between types.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 503
2006-05-22Add a signals architecture to allow callbacks on GUI events.Simon Howard
Make all widget classes initialise widgets by calling TXT_InitWidget. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 501
2006-05-20Add missing free() call.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 496
2006-05-20Add table class. Allow widgets with heights of more than one line.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 492
2006-05-20Add main loop function and forward key presses to widgets.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 490
2006-05-20Clip windows against the workspace boundaries.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 487
2006-05-20Add selectable and visible properties to widgets. Allow the position ofSimon Howard
windows to be set based on position of top/bottom/center,left/right,center coordinates. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 486
2006-05-18Initial working text-mode GUI framework.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 480