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
Dana Jansens
77342413ef
change how the widgets' _dirty flag works so that all inheritence levels of the widget class can use it
2002-11-16 13:28:26 +00:00
Marius Nita
6f5e60f033
fixed bugs, got otkapp to select on a fd, modded widget to make use of otkapp, press/release events on buttons
2002-11-16 09:59:37 +00:00
Marius Nita
a3d036f60e
added otkapplication and event stuff, changed other files to accomodate for this, changed the test.
...
no idea if anything runs yet. it compiles =)
2002-11-16 02:15:49 +00:00
Marius Nita
9f1facd3a1
hopefully caught stupid assert
2002-11-15 10:13:29 +00:00
Marius Nita
c090955544
heh
2002-11-15 05:12:49 +00:00
Dana Jansens
5be1363981
better fix for configure
2002-11-15 05:07:32 +00:00
Marius Nita
a3b2e7d905
made resizing sexier
2002-11-15 05:01:37 +00:00