Full open source C ++ DirectUI interface library SOUI 3.0 update

2019.5.22 from the beginning, SOUI updated to version 2.9.0.2, 3.0 behind began to prepare the development, which lasted nearly three months, and now basically completed the main work 3.0.

To help everyone distinguish 2.x, 3.0 opening of a new code repository: https://github.com/soui3/soui

Compared to 3.0 2.x has updated the following code:

1, standard class names used in the code, 2.x due to historical reasons there are some class names have been Cxxx this class name beginning with C, a new version of unified at the beginning of S, such as CAutoRefPtr => SAutoRefPtr, CSimpleWnd => SNativeWnd and so on.

2, delete the original CSize SWindow :: GetDesiredSize (LPCRECT) overloads, leaving only CSize SWindow :: GetDesiredSize (int wid, int hei) this method. If there is interest defined controls override this method requires attention.

3, the original size of the main window specified attributes from the XML SOUI adjustment node to the root node. swindow soui node corresponding to the object and not, the root node is a SWindow object attributes to migrate to the root more reasonable.

4, adjust the cursor displayed implementation code. In uidef.xml has increased by caret element that describes support for cursor behavior. Animated cursor support, support for changing the color of the cursor.

  <caret color="rgb(255,0,0)" animate="true" speed="30" interpolator="Accelerate"/>

5, the animation effects that support scroll bars, scroll bars after configuration has displayed only in the mouse, otherwise hidden, using fade in fade transition. FadeInterpolator disposed in XML attribute to specify the animation type interpolation, a rearrangement fadeSpeed ​​attribute (integer, default 30) can control the animation.

6, full matrix transformation support. Increase SWindow :: SetMatrix to achieve support matrix rotation, translation, etc. blooming window of operation.

7, the Android transplanted Animation module, a corresponding value before the Android ValueAnimation animation module. You can basically achieve the full animation of Android. By implementing repeatCount property AnimationSet can also be animated Android inconvenient to achieve.

In short, the 3.0 is simply a task configuration XML master interface effects can do more cool.

In addition, the 2.8 also introduces two major updates here will also introduce a:

1, adjust the style of naming support, if the style name in the form of window.style, that is in front of the window control type, and window.style or a conventional style.

Assume that the user has defined a <button.web xxxx /> such a style in style by naming their support of this, more than 2.8 SOUI, XML can be used directly "button.web" to create a button control that button.web automatically use this style.

2, increasing the interface template support.

If there are a lot of interface elements are duplicated, but the content is changed, the conventional approach might be to use a list to do. But with a list of possible users need to represent the add code to write Adapter and so on.

With the template support, it can be plugged directly into a new set of elements from a template, without the need to use the list control.

See details: https://www.cnblogs.com/setoutsoft/p/10528519.html

 

Departure Software August 4, 2019

 

Guess you like

Origin www.cnblogs.com/setoutsoft/p/11298539.html
Recommended