Browse files

minor stuff

  • Loading branch information...
1 parent 2f31c31 commit 108fc84d4d716f547508f147b176d4757e1fa2a9 @cail cail committed May 11, 2012
Showing with 43 additions and 5 deletions.
  1. +11 −0 Fleux/Animations/StoryBoard.cs
  2. +3 −1 Fleux/Core/GraphicsHelpers/GraphicsExtensions.cs
  3. +29 −4 README.md
View
11 Fleux/Animations/StoryBoard.cs
@@ -26,6 +26,17 @@ public static void Play(params IAnimation[] animations)
sb.AnimateSync();
}
+ public static void CancelAnimations()
+ {
+ if (sb != null)
+ sb.CancelAsyncAnimate();
+ }
+
+ public static void BeginPlay(IAnimation animation)
+ {
+ BeginPlay(new IAnimation[]{ animation });
+ }
+
public static void BeginPlay(params IAnimation[] animations)
{
bool processed = false;
View
4 Fleux/Core/GraphicsHelpers/GraphicsExtensions.cs
@@ -58,7 +58,9 @@ public static Graphics AlphaBlend(this Graphics gr, Bitmap b, Rectangle to, Rect
blendFunction.BlendFlags = (byte)BlendFlags.Zero;
blendFunction.SourceConstantAlpha = bopacity;
blendFunction.AlphaFormat = (byte)0;
- PlatformAPI.AlphaBlend(hdcDst, to.X, to.Y, to.Width, to.Height, hdcSrc, from.X, from.Y, from.Width, from.Height, blendFunction);
+ try{
+ PlatformAPI.AlphaBlend(hdcDst, to.X, to.Y, to.Width, to.Height, hdcSrc, from.X, from.Y, from.Width, from.Height, blendFunction);
+ }catch(Exception e){}
gr.ReleaseHdc(hdcDst);
gxSrc.ReleaseHdc(hdcSrc);
}
View
33 README.md
@@ -1,8 +1,33 @@
-/hobd uses a modified fleux version which could be found at
+Fleux
+======
-http://fleux.codeplex.com/SourceControl/network/Forks/cail/fleuxdesktop2
+Fleux is a simple UI engine that provides a fluid touch friendly experience and is written on .net
+It includes an Animation framework, Gestures, and nice controls.
-clone from:
+Fleux was originally created by Jose Gallarado at fleux.codeplex.com for Windows Mobile platform.
-https://hg01.codeplex.com/forks/cail/fleuxdesktop2
+But the original code was abadoned.
+
+This fork is a continuation of the original project.
+
+The main difference points are:
+
+- Fleux now runs on Windows Mobile, WindowsCE, Windows XP/Vista/7 and Linux seamlessly.
+ This means you don't have to change a single line in your code to create a truly portable app.
+
+- Fleux runs on Android (on top of great Xamarin's Mono Android product)
+ With minimal hooks this allows you to have a single codebase for your app, running on multiple platforms.
+
+The main application of this framework is github.com/cail/hobd project for now.
+
+
+License
+========
+
+Microsoft Public License (Ms-PL)
+
+Credits
+========
+Jose Gallardo (original author)
+cail (this fork)

0 comments on commit 108fc84

Please sign in to comment.