9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hai guys
I am running three shellscripts through Gtk2-Perl(GUI)
these are the scripts
Drccalibrescript1 script2 script3
Gtk2-Perl(GUI)
drccalibre -> If I run this script through Gtk2-Perl(GUI)
these are results of the drccalibrescript1 . summary/.results
I have to find size of... (1 Reply)
Discussion started by: kiran425
1 Replies
2. Shell Programming and Scripting
Hi ,
I have a situation where I have to Process files ( move , edit or rename ) in a folder ..... This folder is a FTP folder and Files keep coming in when they are available ... So I should perform my actions on those which which completed transaction .. .
Is there a way to identify a... (3 Replies)
Discussion started by: chillblue
3 Replies
3. Shell Programming and Scripting
Hi Gurus,
I have to perform some oracle database task so i have written a test scripts which open the database connection and perform a select . once it is done i want it to come out from data base to unix prompt which is not happening. the below command will be a part of shell scripts and once... (11 Replies)
Discussion started by: guddu_12
11 Replies
4. Shell Programming and Scripting
My script. For plasma TV connected to PC and used as monitor.
required
It is windows moving scrip t- floating windows. It move all windows what was ever focused.
If window lager than
widthconst heightconstscript uses xoc and yoc position for it. I use "Relative upper-left" for correction.... (2 Replies)
Discussion started by: 654321
2 Replies
5. Solaris
machine got into this mess after in-complete suncluster installation..
can't spawn the console-login service at all...
Feb 11 00:07:13 svc.startd: svc:/system/cluster/cl_boot_check:default: Method "/usr/cluster/lib/svc/method/svc_boot_check start" failed with exit status 1.
Feb 11 00:07:13... (1 Reply)
Discussion started by: ppchu99
1 Replies
6. Homework & Coursework Questions
Does anyone know any websites where there are finished scripts, can be for anything
Just want to copy and paste it and manipulate into something I could use.
danke schon (0 Replies)
Discussion started by: cpcp1988
0 Replies
7. UNIX for Advanced & Expert Users
Hello - I submitted one background job last night and it completed today morning.I want to know exact time the job completed.
I submitted backgroung job like this
nohup cp -Rp /opt/apps/prod/proddb/proddata . &
I want to know when above job completed on UNIX server.Above command... (9 Replies)
Discussion started by: Mansoor8810
9 Replies
8. AIX
Yesterday I complted IBM AIX Certification (000-223). Passed 74% (8 Replies)
Discussion started by: udayn
8 Replies
9. SuSE
I receive files by FTP in an input directory. Every 10 seconds a process checks if some new file has arrived to the input directory and then the process moves them to another directory to be read by a second process.
The problem is that there is no way to know if the download has finished... (11 Replies)
Discussion started by: Javi
11 Replies
XDrawArc() XDrawArc()
Name
XDrawArc - draw an arc fitting inside a rectangle.
Synopsis
XDrawArc(display, drawable, gc, x, y, width, height,
angle1, angle2)
Display *display;
Drawable drawable;
GC gc;
int x, y;
unsigned int width, height;
int angle1, angle2;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
drawable Specifies the drawable.
gc Specifies the graphics context.
x Specify the x and y coordinates of the upper-left corner of the rectangle that contains the arc, relative to the origin of the
y specified drawable.
width Specify the width and height in pixels of the major and minor axes of the arc.
height
angle1 Specifies the start of the arc relative to the three-o'clock position from the center. Angles are specified in 64ths of a degree
(360 * 64 is a complete circle).
angle2 Specifies the end of the arc relative to the start of the arc. Angles are specified in 64ths of a degree (360 * 64 is a complete
circle).
Description
XDrawArc() draws a circular or elliptical arc. An arc is specified by a rectangle and two angles. The x and y coordinates are relative to
the origin of the drawable, and define the upper-left corner of the rectangle. The center of the circle or ellipse is the center of the
rectangle, and the major and minor axes are specified by the width and height, respectively. The angles are signed integers in 64ths of a
degree, with positive values indicating counterclockwise motion and negative values indicating clockwise motion, truncated to a maximum of
360 degrees. The start of the arc is specified by angle1 relative to the three-o'clock position from the center, and the path and extent
of the arc is specified by angle2 relative to the start of the arc.
By specifying one axis to be zero, a horizontal or vertical line is drawn (inefficiently).
Angles are computed based solely on the coordinate system and ignore the aspect ratio. In other words, if the bounding rectangle of the
arc is not square and angle1 is zero and angle2 is (45x64), a point drawn from the center of the bounding box through the endpoint of the
arc will pass through the corner of the rectangle.
For any given arc, no pixel is drawn more than once, even if angle2 is greater than angle1 by more than 360 degrees. See XDrawArcs() for a
detailed description of the pixels drawn by XDrawArc().
XDrawArc() uses these graphics context components: function, plane_mask, line_width, line_style, cap_style, join_style, fill_style, sub-
window_ mode, clip_x_origin, clip_y_origin, and clip_mask. This function also uses these graphics context mode-dependent components:
foreground, background, tile, stipple, ts_x_origin, ts_y_origin, dash_offset, and dashes.
For more information, see Volume One, Chapter 6, Drawing Graphics and Text.
Errors
BadDrawable
BadGC
BadMatch
See Also
XClearArea(), XClearWindow(), XCopyArea(), XCopyPlane(), XDraw, XDrawArcs(), XDrawFilled(), XDrawLine(), XDrawLines(), XDrawPoint(), XDraw-
Points(), XDrawRectangle(), XDrawRectangles(), XDrawSegments(), XFillArc(), XFillArcs(), XFillPolygon(), XFillRectangle(), XFillRectan-
gles().
Xlib - Drawing Primitives XDrawArc()