This presentation is the property of its rightful owner.
1 / 7

# Adding The Variable Function. PowerPoint PPT Presentation

Adding The Variable Function. Sung-Ju Kang Department of Physics Kangwon National University. We will add the function of Zoom In, the function handle in the source code. In drawingarea, we will realize the Tick. and we will obtain the better package.

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

#### Presentation Transcript

Sung-Ju Kang

Department of Physics

Kangwon National University

We will add the function of Zoom In, the function handle in the source code.

In drawingarea, we will realize the Tick. and we will obtain the better package.

.

.

.

.

.

.

We can change the real coordinate, .

1. Changed The Computer Coordinate

Generic computer coordinate

Proportional expression of real coordinate and computer coordinate.

: major tick

: miner tick

2. Realization of Tick

Variable

dtx : distance between major ticks on X axis.

dty : distance between major ticks on Y axis.

num : number of miner tick between major ticks.

3. Redrawing on The Screen

When the window reappear the screen, drawn the bifurcation diagram is gone.

Then we use this signal, redrawing the bifurcation diagram on the screen.

expose_event

gboolean

on_drawingarea1_expose_event (GtkWidget *widget,

GdkEventExpose *event,

gpointer user_data)

{

return FALSE;

}

4. Button Widget Sight

Widget can handle sight or don’t sight.

We can mark ‘Yes’ or ‘No’ the Visible, element of property in GLADE.

Changed source code

Eliminated under the command line

gtk_widget_show (butten1);

The Result Include The Variable Function

Tick

Clicked Zoom In button

Extended selecting area