PIPS
xv_utils.c File Reference
#include <stdio.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <xview/xview.h>
#include <xview/panel.h>
#include "genC.h"
#include "misc.h"
#include "wpips.h"
+ Include dependency graph for xv_utils.c:

Go to the source code of this file.

Functions

char * getwd ()
 
void hide_window (Frame frame)
 unmap a frame from the screen More...
 
void unhide_window (Frame frame)
 map a frame on the screen More...
 
void pointer_in_center_of_frame (Frame frame)
 Centre la souris sur une fene^tre : More...
 

Function Documentation

◆ getwd()

char* getwd ( )

◆ hide_window()

void hide_window ( Frame  frame)

unmap a frame from the screen

Definition at line 46 of file xv_utils.c.

48 {
49  xv_set(frame, XV_SHOW, FALSE, NULL);
50 }

◆ pointer_in_center_of_frame()

void pointer_in_center_of_frame ( Frame  frame)

Centre la souris sur une fene^tre :

Definition at line 64 of file xv_utils.c.

65 {
66  Display *dpy;
67  Window xwindow;
68  Rect rect;
69 
70  dpy = (Display *)xv_get(main_frame, XV_DISPLAY);
71  xwindow = (Window) xv_get(frame, XV_XID);
72  frame_get_rect(frame, &rect);
73  XWarpPointer(dpy, None, xwindow, None, None, None, None,
74  rect.r_width/2, rect.r_height/2);
75 }
GtkWidget * main_frame
If we are in the Emacs mode, the log_frame is no longer really used:
Definition: gpips.c:60

References main_frame.

Referenced by mchoose(), schoose(), and start_query().

+ Here is the caller graph for this function:

◆ unhide_window()

void unhide_window ( Frame  frame)

map a frame on the screen

Definition at line 55 of file xv_utils.c.

57 {
58  xv_set(frame, FRAME_CLOSED, FALSE, NULL);
59  xv_set(frame, XV_SHOW, TRUE, NULL);
60 }

Referenced by current_selection_notify(), display_help(), display_or_hide_options_panel(), edit_close_notify(), edit_notify(), mchoose(), open_log_subwindow(), schoose(), start_query(), wpips_file_view(), wpips_user_error_message(), and wpips_view_marked_busy().

+ Here is the caller graph for this function: