/usr/share/gtk-doc/html/goffice-0.10/GogView.html is in libgoffice-0.10-doc 0.10.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GogView</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GOffice Reference Manual">
<link rel="up" href="ch02.html" title="Abstract Base Classes">
<link rel="prev" href="GogRegCurve.html" title="GogRegCurve">
<link rel="next" href="GogDataEditor.html" title="GogDataEditor">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GogRegCurve.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GOffice Reference Manual</th>
<td><a accesskey="n" href="GogDataEditor.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GogView.synopsis" class="shortcut">Top</a>
|
<a href="#GogView.description" class="shortcut">Description</a>
|
<a href="#GogView.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GogView.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="GogView"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GogView.top_of_page"></a>GogView</span></h2>
<p>GogView</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GogView.synopsis"></a><h2>Synopsis</h2>
<a name="GogViewAllocation"></a><pre class="synopsis"> <a class="link" href="GogView.html#GogView-struct" title="GogView">GogView</a>;
<a class="link" href="GogView.html#GogViewClass" title="GogViewClass">GogViewClass</a>;
<a class="link" href="GogView.html#GogViewAllocation-struct" title="GogViewAllocation">GogViewAllocation</a>;
<a class="link" href="GogView.html#GogViewPadding" title="GogViewPadding">GogViewPadding</a>;
<a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition">GogViewRequisition</a>;
<a class="link" href="GogView.html" title="GogView"><span class="returnvalue">GogView</span></a> * <a class="link" href="GogView.html#gog-view-find-child-view" title="gog_view_find_child_view ()">gog_view_find_child_view</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> const *container</code></em>,
<em class="parameter"><code><a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> const *target_model</code></em>);
<a class="link" href="GogObject.html" title="GogObject"><span class="returnvalue">GogObject</span></a> * <a class="link" href="GogView.html#gog-view-get-model" title="gog_view_get_model ()">gog_view_get_model</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> const *view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GogView.html#gog-view-get-natural-size" title="gog_view_get_natural_size ()">gog_view_get_natural_size</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> *requisition</code></em>);
<span class="returnvalue">char</span> * <a class="link" href="GogView.html#gog-view-get-tip-at-point" title="gog_view_get_tip_at_point ()">gog_view_get_tip_at_point</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">double</span> x</code></em>,
<em class="parameter"><code><span class="type">double</span> y</code></em>);
<a class="link" href="goffice-0.10-GogTool.html#GogTool" title="GogTool"><span class="returnvalue">GogTool</span></a> * <a class="link" href="GogView.html#gog-view-get-tool-at-point" title="gog_view_get_tool_at_point ()">gog_view_get_tool_at_point</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">double</span> x</code></em>,
<em class="parameter"><code><span class="type">double</span> y</code></em>,
<em class="parameter"><code><a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> **gobj</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> const * <a class="link" href="GogView.html#gog-view-get-toolkit" title="gog_view_get_toolkit ()">gog_view_get_toolkit</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);
<a class="link" href="GogView.html" title="GogView"><span class="returnvalue">GogView</span></a> * <a class="link" href="GogView.html#gog-view-get-view-at-point" title="gog_view_get_view_at_point ()">gog_view_get_view_at_point</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">double</span> x</code></em>,
<em class="parameter"><code><span class="type">double</span> y</code></em>,
<em class="parameter"><code><a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> **obj</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GogTool.html#GogTool" title="GogTool"><span class="type">GogTool</span></a> **tool</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GogView.html#gog-view-padding-request" title="gog_view_padding_request ()">gog_view_padding_request</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewAllocation"><span class="type">GogViewAllocation</span></a> const *bbox</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewPadding" title="GogViewPadding"><span class="type">GogViewPadding</span></a> *padding</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GogView.html#gog-view-queue-redraw" title="gog_view_queue_redraw ()">gog_view_queue_redraw</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GogView.html#gog-view-queue-resize" title="gog_view_queue_resize ()">gog_view_queue_resize</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GogView.html#gog-view-render" title="gog_view_render ()">gog_view_render</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewAllocation"><span class="type">GogViewAllocation</span></a> const *bbox</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GogView.html#gog-view-render-toolkit" title="gog_view_render_toolkit ()">gog_view_render_toolkit</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GogView.html#gog-view-size-allocate" title="gog_view_size_allocate ()">gog_view_size_allocate</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewAllocation"><span class="type">GogViewAllocation</span></a> const *allocation</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GogView.html#gog-view-size-child-request" title="gog_view_size_child_request ()">gog_view_size_child_request</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> const *available</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> *req</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> *min_req</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GogView.html#gog-view-size-request" title="gog_view_size_request ()">gog_view_size_request</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> const *available</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> *requisition</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GogView.html#gog-view-update-sizes" title="gog_view_update_sizes ()">gog_view_update_sizes</a> (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GogView.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----GogView
+----GogAxisBaseView
+----<a class="link" href="GogOutlinedView.html" title="GogOutlinedView">GogOutlinedView</a>
+----<a class="link" href="GogPlot.html#GogPlotView">GogPlotView</a>
</pre>
<pre class="synopsis">
GBoxed
+----GogViewAllocation
</pre>
</div>
<div class="refsect1">
<a name="GogView.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GogView.html#GogView--model" title='The "model" property'>model</a>" <a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a>* : Write
"<a class="link" href="GogView.html#GogView--parent" title='The "parent" property'>parent</a>" <a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a>* : Write
</pre>
</div>
<div class="refsect1">
<a name="GogView.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="GogView.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GogView-struct"></a><h3>GogView</h3>
<pre class="programlisting">typedef struct _GogView GogView;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GogViewClass"></a><h3>GogViewClass</h3>
<pre class="programlisting">typedef struct {
GObjectClass base;
unsigned clip; /* Automaticaly clip to object bounding box */
/* Virtuals */
void (*state_init) (GogView *view);
void (*padding_request) (GogView *view, GogViewAllocation const *bbox,
GogViewPadding *padding);
void (*size_request) (GogView *view, GogViewRequisition const *available,
GogViewRequisition *requisition);
void (*size_allocate) (GogView *view, GogViewAllocation const *allocation);
void (*render) (GogView *view, GogViewAllocation const *bbox);
void (*build_toolkit) (GogView *view);
char *(*get_tip_at_point) (GogView *view, double x, double y);
void (*natural_size) (GogView *view, GogViewRequisition *req);
} GogViewClass;
</pre>
<p>
the GogViewClass::clip firled should be set to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to clip drawings to
the vew allocation.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="GogViewClass.base"></a>base</code></em>;</span></p></td>
<td> base class.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GogViewClass.state-init"></a>state_init</code></em> ()</span></p></td>
<td>state intialization.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GogViewClass.padding-request"></a>padding_request</code></em> ()</span></p></td>
<td>padding request.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GogViewClass.size-request"></a>size_request</code></em> ()</span></p></td>
<td>size request.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GogViewClass.size-allocate"></a>size_allocate</code></em> ()</span></p></td>
<td>size allocate.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GogViewClass.render"></a>render</code></em> ()</span></p></td>
<td>render to cairo.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GogViewClass.build-toolkit"></a>build_toolkit</code></em> ()</span></p></td>
<td>builds the associated toolkit.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GogViewClass.get-tip-at-point"></a>get_tip_at_point</code></em> ()</span></p></td>
<td>gets tip at pointer position.</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GogViewClass.natural-size"></a>natural_size</code></em> ()</span></p></td>
<td>gets natural size.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GogViewAllocation-struct"></a><h3>GogViewAllocation</h3>
<pre class="programlisting">typedef struct {
double w, h;
double x, y;
} GogViewAllocation;
</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewAllocation-struct.w"></a>w</code></em>;</span></p></td>
<td>width.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewAllocation-struct.h"></a>h</code></em>;</span></p></td>
<td>height.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewAllocation-struct.x"></a>x</code></em>;</span></p></td>
<td>horizontal position.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewAllocation-struct.y"></a>y</code></em>;</span></p></td>
<td>vertical position.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GogViewPadding"></a><h3>GogViewPadding</h3>
<pre class="programlisting">typedef struct {
double wr, hb;
double wl, ht;
} GogViewPadding;
</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewPadding.wr"></a>wr</code></em>;</span></p></td>
<td>right padding.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewPadding.hb"></a>hb</code></em>;</span></p></td>
<td>bottom padding.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewPadding.wl"></a>wl</code></em>;</span></p></td>
<td>left pdding.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewPadding.ht"></a>ht</code></em>;</span></p></td>
<td>top padding.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GogViewRequisition"></a><h3>GogViewRequisition</h3>
<pre class="programlisting">typedef struct {
double w, h;
} GogViewRequisition;
</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewRequisition.w"></a>w</code></em>;</span></p></td>
<td>width.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="GogViewRequisition.h"></a>h</code></em>;</span></p></td>
<td>height.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-find-child-view"></a><h3>gog_view_find_child_view ()</h3>
<pre class="programlisting"><a class="link" href="GogView.html" title="GogView"><span class="returnvalue">GogView</span></a> * gog_view_find_child_view (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> const *container</code></em>,
<em class="parameter"><code><a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> const *target_model</code></em>);</pre>
<p>
Find the GogView contained in <em class="parameter"><code>container</code></em> that corresponds to <em class="parameter"><code>model</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>container</code></em> :</span></p></td>
<td><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>target_model</code></em> :</span></p></td>
<td><a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>NULL on error or if <em class="parameter"><code>target_model</code></em> has no view. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-get-model"></a><h3>gog_view_get_model ()</h3>
<pre class="programlisting"><a class="link" href="GogObject.html" title="GogObject"><span class="returnvalue">GogObject</span></a> * gog_view_get_model (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> const *view</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> owning the view. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-get-natural-size"></a><h3>gog_view_get_natural_size ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gog_view_get_natural_size (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> *requisition</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-get-tip-at-point"></a><h3>gog_view_get_tip_at_point ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> * gog_view_get_tip_at_point (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">double</span> x</code></em>,
<em class="parameter"><code><span class="type">double</span> y</code></em>);</pre>
<p>
Gets a tip string related to the position as defined by (<em class="parameter"><code>x</code></em>,<em class="parameter"><code>y</code></em>) in <em class="parameter"><code>view</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y position</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly allocated tip string if the view class supports
that or NULL.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-get-tool-at-point"></a><h3>gog_view_get_tool_at_point ()</h3>
<pre class="programlisting"><a class="link" href="goffice-0.10-GogTool.html#GogTool" title="GogTool"><span class="returnvalue">GogTool</span></a> * gog_view_get_tool_at_point (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">double</span> x</code></em>,
<em class="parameter"><code><span class="type">double</span> y</code></em>,
<em class="parameter"><code><a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> **gobj</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>in coords</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>in coords</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gobj</code></em> :</span></p></td>
<td>pointed object or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>tool under cursor for a given view, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-get-toolkit"></a><h3>gog_view_get_toolkit ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> const * gog_view_get_toolkit (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>toolkit associated with given view. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GogTool][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-get-view-at-point"></a><h3>gog_view_get_view_at_point ()</h3>
<pre class="programlisting"><a class="link" href="GogView.html" title="GogView"><span class="returnvalue">GogView</span></a> * gog_view_get_view_at_point (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">double</span> x</code></em>,
<em class="parameter"><code><span class="type">double</span> y</code></em>,
<em class="parameter"><code><a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a> **obj</code></em>,
<em class="parameter"><code><a class="link" href="goffice-0.10-GogTool.html#GogTool" title="GogTool"><span class="type">GogTool</span></a> **tool</code></em>);</pre>
<p>
Gets view under cursor, searching recursively from <em class="parameter"><code>view</code></em>. Corresponding object
is stored in <em class="parameter"><code>obj</code></em>. This object may or may not be <em class="parameter"><code>view->model</code></em> of pointed view.
This function also stores tool under cursor, for the pointed view.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a></td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>cursor x position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>cursor y position</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>obj</code></em> :</span></p></td>
<td>pointed object or NULL</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tool</code></em> :</span></p></td>
<td>pointed tool or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> at x,y position. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-padding-request"></a><h3>gog_view_padding_request ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gog_view_padding_request (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewAllocation"><span class="type">GogViewAllocation</span></a> const *bbox</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewPadding" title="GogViewPadding"><span class="type">GogViewPadding</span></a> *padding</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-queue-redraw"></a><h3>gog_view_queue_redraw ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gog_view_queue_redraw (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);</pre>
<p>
Requests a redraw for the entire graph.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>a <a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-queue-resize"></a><h3>gog_view_queue_resize ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gog_view_queue_resize (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);</pre>
<p>
Flags a view to have its size renegotiated; should
be called when a model for some reason has a new size request.
For example, when you change the size of a legend.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>a <a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-render"></a><h3>gog_view_render ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gog_view_render (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewAllocation"><span class="type">GogViewAllocation</span></a> const *bbox</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-render-toolkit"></a><h3>gog_view_render_toolkit ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gog_view_render_toolkit (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);</pre>
<p>
Render toolkit elements.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a></td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-size-allocate"></a><h3>gog_view_size_allocate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gog_view_size_allocate (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewAllocation"><span class="type">GogViewAllocation</span></a> const *allocation</code></em>);</pre>
<p>
Assign a size and position to a GogView. Primarilly used by containers.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>a <a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>allocation</code></em> :</span></p></td>
<td>position and size to be allocated to <em class="parameter"><code>view</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-size-child-request"></a><h3>gog_view_size_child_request ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gog_view_size_child_request (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> const *available</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> *req</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> *min_req</code></em>);</pre>
<p>
Computes additional requision in <em class="parameter"><code>req</code></em> which must be added to parent requisition,
and minimum requisition in <em class="parameter"><code>min_req</code></em> which is minimum space for displaying all
children.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>a <a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>available</code></em> :</span></p></td>
<td>the amount of space available in total</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>req</code></em> :</span></p></td>
<td>additionnal requisition</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>min_req</code></em> :</span></p></td>
<td>minimum size for displaying all children</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-size-request"></a><h3>gog_view_size_request ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gog_view_size_request (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> const *available</code></em>,
<em class="parameter"><code><a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a> *requisition</code></em>);</pre>
<p>
When called <em class="parameter"><code>available</code></em> holds the available space and <em class="parameter"><code>requisition</code></em> is populated
with the desired size based on that input and other elements of the view or
its model's state (eg the position).
</p>
<p>
Remember that the size request is not necessarily the size a view will
actually be allocated.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>a <a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>available</code></em> :</span></p></td>
<td>available space.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>requisition</code></em> :</span></p></td>
<td>a <a class="link" href="GogView.html#GogViewRequisition" title="GogViewRequisition"><span class="type">GogViewRequisition</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gog-view-update-sizes"></a><h3>gog_view_update_sizes ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gog_view_update_sizes (<em class="parameter"><code><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a> *view</code></em>);</pre>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td><a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a></td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a redraw is necessary.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GogView.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GogView--model"></a><h3>The <code class="literal">"model"</code> property</h3>
<pre class="programlisting"> "model" <a class="link" href="GogObject.html" title="GogObject"><span class="type">GogObject</span></a>* : Write</pre>
<p>The GogObject this view displays.</p>
</div>
<hr>
<div class="refsect2">
<a name="GogView--parent"></a><h3>The <code class="literal">"parent"</code> property</h3>
<pre class="programlisting"> "parent" <a class="link" href="GogView.html" title="GogView"><span class="type">GogView</span></a>* : Write</pre>
<p>the GogView parent.</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|