Dana Jansens
b3a87e3a6f
a few optimizations to layouts/rendering
2003-02-19 00:55:05 +00:00
Dana Jansens
f325abe4e4
use the current size, which will get capped by max/mins
2003-02-16 11:48:43 +00:00
Dana Jansens
33e87b3969
dont forget borders/bevels
2003-02-16 11:39:54 +00:00
Dana Jansens
555facb9c7
free the surfaces' pixeldata after rendering it
2003-02-11 22:38:29 +00:00
Dana Jansens
43f958996b
use a solid color for the default background
2003-02-10 02:30:52 +00:00
Dana Jansens
a4c8a839a3
layout fixes, give widgets a default texture, etc.
2003-02-10 02:27:58 +00:00
Dana Jansens
5673ab7e70
use parentrelative when theres no texture set
2003-02-09 23:39:54 +00:00
Dana Jansens
74cfb1b4c1
signed ints instead of unsigned ints again. less pain. pain bad.
2003-02-09 22:40:47 +00:00
Dana Jansens
ef231de58a
mad optimizations
2003-02-08 08:59:24 +00:00
Dana Jansens
99cd843fc6
Brand spankin new widgets for otk (Label and Button).
...
Add a new Size class.
Rect, Point, and Size are immutable classes.
Size uses *UNSIGNED* ints. This is causing me headaches * a bajillion right now, so we'll see about that.
2003-02-08 07:33:48 +00:00
Dana Jansens
8df1670bc2
add an adjustable event mask
2003-02-05 05:06:33 +00:00
Dana Jansens
9e6b0d5a8d
update children first
2003-02-04 15:04:30 +00:00
Dana Jansens
8287fb2889
check before deleting
2003-02-02 22:40:20 +00:00
Dana Jansens
aaf297a136
delete the surface in destructor
2003-02-02 22:29:39 +00:00
Dana Jansens
38345bf32e
make parents dirty when a widget resizes
...
save the fixed_width/fixed_height when doing an internalResize
2003-01-30 20:06:08 +00:00
Dana Jansens
1eb12ca4ad
adjust chicldren relative to self, not root
2003-01-27 19:37:26 +00:00
Dana Jansens
9999922623
setStyle in the constructor of each child widget
2003-01-27 19:11:09 +00:00
Dana Jansens
ff3bb7566b
remove debug printfs
2003-01-23 04:20:08 +00:00
Dana Jansens
70e2ab8017
show recursive.. recursively
2003-01-22 23:02:17 +00:00
Dana Jansens
033e9843bc
otk using new render shit.. supposedly
2003-01-22 22:46:16 +00:00
Dana Jansens
25f0151154
drawSolidBackground seems to work :)
2003-01-20 20:20:06 +00:00
Dana Jansens
68a6fce53b
dont try free the widget's pixmap until it is no longer in use
2003-01-20 19:28:57 +00:00
Dana Jansens
cfd8f9a658
XClearArea on expose in widget
2003-01-20 06:15:01 +00:00
Dana Jansens
d8d9b42777
widegt using new render system
2003-01-20 06:11:12 +00:00
Dana Jansens
9b6e5f9cf4
provide RenderControls to all otk from the display class. initialize them all there. try use bitshifts instead of color tables in the TrueRenderControl class for finding correct rgbs. Move the image/pixmap/xftdraw into the surface class, and it maintains them, recreating them when it resizes.
2003-01-18 07:23:28 +00:00
Dana Jansens
2005c344bd
surface started
2003-01-18 03:52:58 +00:00
Dana Jansens
f29a2e9b07
add comment for bugfix
2003-01-17 04:25:23 +00:00
Dana Jansens
6bcfd5d218
don't use XMoveResize, it doesn't work for StaticGravity windows?
2003-01-17 03:53:38 +00:00
Dana Jansens
c97915f445
un-static otk::Display. add an operator* to it. make a global ob::display var.
2003-01-13 08:48:03 +00:00
Dana Jansens
8f8acc2493
rm prefixes for all elements in the otk namepsace
2003-01-11 19:17:13 +00:00
Dana Jansens
bf404e092b
make the frame window override-redirect
2003-01-04 05:18:33 +00:00
Dana Jansens
1fd2c6c2b6
s/True/true/
2003-01-04 04:51:49 +00:00
Dana Jansens
c33ccf60cb
make the frame window override-redirect
2003-01-04 04:49:53 +00:00
Dana Jansens
236f68056d
fix booge bug that makes widgets not change their background when changing from a texture to a color when a color had been set previously
2002-12-26 18:08:48 +00:00
Dana Jansens
2b2f81b93c
support the button pressed resources better
2002-12-26 17:22:53 +00:00
Dana Jansens
2ae2b257d3
might not compile... ob uses its own widgets now, which subclass only the base otk widget. working on compressing focus events and handling them etc.
2002-12-25 22:02:34 +00:00
Dana Jansens
06de24ec66
more api cleanups
2002-12-20 15:33:58 +00:00
Dana Jansens
723739dafe
api cleanups
2002-12-20 15:26:34 +00:00
Dana Jansens
25d1e3538b
use OB Widgets for everything
2002-12-18 09:46:24 +00:00
Dana Jansens
70eb03ad50
add an OBBackgroundWidget and use it for setting colors so far.
2002-12-18 02:28:44 +00:00
Dana Jansens
dd3decc319
fuck you basewidget
2002-12-11 00:50:26 +00:00
Dana Jansens
c187fbdf60
move event handling into basewidget again <FLINCH>
...
add the basewidget class
2002-12-04 13:14:11 +00:00
Dana Jansens
301adc8bc2
split up widget and basewidget
2002-12-04 13:07:40 +00:00
Dana Jansens
7dc834cc93
make setStyle() recursive
2002-12-04 11:25:43 +00:00
Dana Jansens
22bd294c7b
unregister for events when destroyed
2002-12-04 01:02:56 +00:00
Dana Jansens
fb3848450e
window decorations use "unmanaged" widgets now.
2002-12-01 11:45:55 +00:00
Dana Jansens
4d1a90b0d2
add a recursive flags to OtkWidget::show/hide
...
dont delet eshit in the style from button's destructor
2002-12-01 10:57:49 +00:00
Dana Jansens
1d897f432e
add the config header and emacs comment to all the .cc's
2002-11-17 09:41:58 +00:00
Dana Jansens
12a95bfdb3
add an OtkAppWidget which are "root windows", i.e. the managed child of root, to be shown on the display.
...
Exit when all the "root windows" are hidden.
Support the WM_DELETE protocol to hide a "root window".
2002-11-16 14:30:18 +00:00
Dana Jansens
81e1982744
set the close protocol on the app's main widget
2002-11-16 13:50:59 +00:00