Commit graph

64 commits

Author SHA1 Message Date
Mathias Gumz
a798e0e0ff added RectangleUtil::overlapRectangles() + test cases 2011-03-19 14:56:45 +01:00
Mathias Gumz
bcae4e257d added tests/testRectangleUtil.cc 2011-03-18 17:57:34 +01:00
Mathias Gumz
253f13d46e some love to src/tests, use automake to use the same build environment as the rest of fluxbox 2011-03-18 15:51:17 +01:00
Mathias Gumz
9616a676d8 renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItem 2011-02-23 22:49:27 +01:00
Mathias Gumz
92deeba2a0 Render rectangles instead of squares to test TextureRender.cc 2011-02-21 20:49:10 +01:00
Mathias Gumz
78b09ee932 updated 'texturetest.cc' to work with current API 2010-09-21 00:05:15 +02:00
Henrik Kinnunen
43837f82e1 Added simple stress test in python 2010-03-20 00:29:39 +01:00
Henrik Kinnunen
ceff86b794 Added SelectArg and MemFunSelectArg*
The MemFunSelectArg* functions can be used to select
a specific argument from a signal. For example this would
select the string argument as argument to the callback:

Signal<void, int, float, string> signal;
signal.connect(MemFunSelectArg2(obj, &Object::takesOneStringArg));
signal.emit(10, 3.14, "hello");

...

void Object::takesOneStringArg(const string& value) {
...
}
2010-03-19 02:23:41 +01:00
Henrik Kinnunen
02bb93590c Added FbTk::relaySignal, which relays new signals to old Subject type signals. 2010-03-18 19:35:19 +01:00
Henrik Kinnunen
31a458f365 Fixed so testDemandAttention compiles 2010-03-18 12:08:03 +01:00
Henrik Kinnunen
0504de454a Added MemFunIgnoreArgs which ignores aditional arguments.
For example connecting a function that takes two arguments
to a signal that emits three arguments:
struct Functor {
    void show(int a, int b);
};
Functor f;
Signal<void, int, int, int> s3;
s3.connect(MemFunIgnoreArgs(f, &Functor::show));
2010-03-18 10:45:33 +01:00
Henrik Kinnunen
e4d4717703 Added new Signal/Slot system in FbTk
This is suppose to replace the obsolete Subject/Observer classes.
See the src/tests/testSignals.cc for basic usage.
2008-09-18 22:24:35 +02:00
Mark Tiefenbruck
9c105111d2 remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
fluxgen
df022d0fae added fullscreen test 2007-05-20 12:39:11 +00:00
fluxgen
cf9c58bb0b added title test for _NET_WM_NAME and WM_NAME memory leaks 2007-05-19 11:18:44 +00:00
mathias
a3c5fd6000 cosmetic patch from slava again 2006-11-07 19:12:42 +00:00
mathias
e5e76e7761 Cosmetic patch from Slava Semushin 2006-10-30 19:31:15 +00:00
fluxgen
e27dfd97bc added include path 2006-09-18 15:17:12 +00:00
fluxgen
36f5a46fd7 added test program for _NET_WM_STATE_DEMANDS_ATTENTION 2006-05-13 15:01:04 +00:00
fluxgen
d812faffb4 test program for _NET_WM_STATE_DEMANDS_ATTENTION 2006-05-13 15:00:45 +00:00
simonb
520f552be7 handle utf-8 strings properly.
use utf8 internally
2006-05-07 03:41:27 +00:00
simonb
af74a22845 rotated fonts, buttons, containers. Used for tabs for now 2006-03-26 04:02:30 +00:00
mathias
ae05ad9a01 updated copyright info 2006-02-16 06:53:05 +00:00
fluxgen
e621769134 testing replaceString 2005-11-22 21:58:25 +00:00
mathias
ef76b45ab1 - Usage of xft-fonts is prefered, except a font-description starts with '-'
- Removed "antialias"-option completly, to enable/disable "antialias"
  use either  <fontname>:antialias=<bool> in the style or use
  Xft.antialias: <bool> in your .Xdefaults
- Added new styleresources: 
    *.font.effect: <halo|shadow>
    *.font.shadow.x : <int>       - shadow x offset
    *.font.shadow.y : <int>       - shadow y offset
    *.font.shadow.color : <color> - color of shadow
    *.font.halo.color : <color>   - color of halo
- Removed 'shadow' and 'halo' options from fontdefinitions:
    !! Style authors have to update their styles !!
- Simplified XmbFontImp to not try all possible fonts to match locale
- Style authors may specify multiple fonts:
    <font1>|<font2>|<font3>
  if loading of font1 fails, fluxbox probes <font2>, etc. The last font is
  "fixed". Hints for style authors:
    - if xft tries to load a font it will _ALWAYS_ return a valid font,
      it doesnt have to look like the one you want to have, read more
      about it: http://fontconfig.org/fontconfig-user.html
    - export XFT_DEBUG=1  before running fluxbox helps to see
      which fonts are picked.
  eg:
      *.font: Verdana,Arial-12:antialias=true|-artwiz-snap-*-
      if fluxbox is compiled with xft this will NEVER try to
      load "-artwiz-snap-*-" since xft gives for sure a font,
      most likely Verdana or Arial but noone knows. So, if
      fluxbox has no xft support the first fontpattern fails
      and fluxbox tries the next one, which might be successful.
      if everything fails, it will use "fixed"
- Added caching of fonts, fonts are only loaded once.
- Fixed #1090902 (slow utf8 start)
2005-06-03 07:25:48 +00:00
mathias
6976bf4de7 copyright date 2005-01-24 18:43:01 +00:00
fluxgen
f54125bfb2 minor stuff 2005-01-15 13:16:05 +00:00
fluxgen
676c89ab59 fixed some issues and added testMenu target 2005-01-15 13:15:49 +00:00
fluxgen
f947c73420 testing menu theme and parser 2005-01-15 13:14:13 +00:00
mathias
993c17cf2e svn propset svn:keywords "Id" 2004-11-19 11:37:27 +00:00
mathias
6fe16959c2 needed init for font-test 2004-11-17 15:41:22 +00:00
fluxgen
b5b5fa7b53 fixed compile 2004-10-06 06:16:50 +00:00
fluxgen
a4043853ff fix for Font drawText 2004-09-12 00:06:37 +00:00
fluxgen
39e88f3f6f update 2004-09-01 19:03:14 +00:00
fluxgen
2455a350e8 foreground and background color as argument 2004-09-01 12:41:11 +00:00
rathnor
d17bf39a43 add autoconf check for std c++ headers 2004-08-31 15:26:40 +00:00
fluxgen
8628f18fe5 update 2004-05-02 21:27:35 +00:00
fluxgen
ec7d792a48 minor fixes 2004-05-02 21:27:15 +00:00
fluxgen
4880851f13 movetest 2004-05-02 21:26:07 +00:00
fluxgen
955c2358fb testing menu parser 2004-05-02 21:23:35 +00:00
fluxgen
e5c0b02496 parsertest 2004-05-02 21:22:43 +00:00
fluxgen
604c2b9363 template 2004-03-01 10:49:43 +00:00
fluxgen
34858071e8 removed print 2004-01-12 20:22:40 +00:00
fluxgen
a819ff8252 texture tests 2004-01-11 20:57:53 +00:00
fluxgen
16653d23d5 update 2003-09-11 16:58:55 +00:00
fluxgen
fbe722de6d update 2003-09-11 16:51:21 +00:00
fluxgen
cbce8634dd cleaning in FluxboxWindow interface 2003-05-15 11:17:29 +00:00
rathnor
4d57d6b394 add missing #include <cassert> 2003-04-27 02:26:21 +00:00
rathnor
0f5247ccce added simple test file for layering (Simon) 2003-01-29 21:39:52 +00:00
rathnor
28b5c60449 Indenting from tabs to emacs 4-space 2002-12-01 13:42:15 +00:00