13.wxWidgets – Non-GUI Objects and Classes
OVERVIEW In this section, we look at some secondary objects and features available in wxWidgets which are not actually connected with GUI creation. However they […]
OVERVIEW In this section, we look at some secondary objects and features available in wxWidgets which are not actually connected with GUI creation. However they […]
OVERVIEW We now look at how to create a custom widget. A custom widget is something which adds in a custom UI which can be […]
OVERVIEW Apart from the basic rectangles and lines, there are more complex shapes which can be drawn: Ellipse, Rounded Rectangle, Arc, Circle, Splines and Polygons. […]
OVERVIEW A Gradient is a gradual transition in a color from one shade to another. This is useful for complex coloring and effects. wxWidgets provides […]
OVERVIEW Regions are used to change colors in certain areas of the screen by defining different regions and using one of the 4 operations available: […]
OVERVIEW All drawing is done by the wxPen object. A pen object can configure color, width and style . Styles can be as shown below […]
OVERVIEW DrawPoint() is the simplest GDI function as it draws a point at the given x,y coordinates. In the sample code below, we draw 5000 […]
OVERVIEW Drawing text is similar to drawing lines, except here we pass a string as an argument along with the x,y coordinates of where it […]
OVERVIEW We use the DrawLine() method to draw straight lines on the screen. All GDI methods work by overriding the wxEVT_PAINT method. The DrawLine method […]
OVERVIEW We now look at how to do 2d graphics in wxWidgets. Displaying graphics is different from displaying text – you need something called a […]
Copyright © 2024 | WordPress Theme by MH Themes