Download presentation
Presentation is loading. Please wait.
1
Building An Example Program to Plot.
Sung-Ju Kang Department of Physics Kangwon National University Now, the processing the drawing on the screen is introduction, than we will need the DrawingArea widget. The GtkDrawingArea widget is used for creating custom user interface elements.
2
DrawingArea Widget Synopsis Object Hierarchy
#include <gtk/gtk.h> Struct GtkDrawingArea; GtkWidget* gtk_drawing_area_new (void); void gtk_drawing_area_size (GtkDrawingArea *darea, gint width, gint height); Object Hierarchy GtkObject +----GtkWidget +----GtkDrawingArea
3
GDK -- Drawing Primitives
Functions for drawing points, lines, arcs, and text. void gdk_draw_point (GdkDrawable *drawable, GdkGC *gc, gint x, gint y) ; gdk_draw_line () Draws a series of lines connecting the given points. gdk_draw_segments () gdk_draw_rectangle () Draws a rectangular outline or filled rectangle. gdk_draw_arc () gdk_draw_polygon () Draws an outlined or filled polygon. gdk_draw_string () gdk_draw_text () Draws a number of characters in the given font or fontset. gdk_draw_pixmap () Draws a pixmap, or a part of a pixmap, onto another drawable. gdk_draw_image () Draws a GdkImage onto a drawable.
4
Example Program to Plot The Bifurcation Diagram
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.