GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GTK2::GDK::PIXBUF::DRAW::CACHE (3)

.ds Aq ’

NAME

Gtk2::Gdk::Pixbuf::Draw::Cache - Cache for drawing scaled pixbufs

CONTENTS

DESCRIPTION

Gtk2::Gdk::Pixbuf::Draw::Cache provides a cache that should be used by the Gtk2::ImageView::Tool when redrawing the Gtk2::ImageView.

HIERARCHY



  Glib::Boxed
  +----Gtk2::Gdk::Pixbuf::Draw::Cache



METHODS

cache = Gtk2::Gdk::Pixbuf::Draw::Cache->new

Returns a new pixbuf draw cache.

CW$cache->draw ($opts, CW$drawable)

o $opts (Gtk2::Gdk::Pixbuf::Draw::Opts)
o $drawable (Gtk2::Gdk::Drawable)
Redraws the area specified in the pixbuf draw options in an efficient way by using caching.
cache : a GdkPixbufDrawCache
opts : the Gtk2::Gdk::Pixbuf::Draw::Opts to use in this draw
drawable : a GdkDrawable to draw on

CW$cache->free

Deallocates a pixbuf draw cache and all its data.

CW$cache->invalidate

Force the pixbuf draw cache to scale the pixbuf at the next draw.

Gtk2::Gdk::Pixbuf::Draw::Cache tries to minimize the number of scale operations needed by caching the last drawn pixbuf. It would be inefficient to check the individual pixels inside the pixbuf so it assumes that if the memory address of the pixbuf has not changed, then the cache is good to use.

However, when the image data is modified, this assumtion breaks, which is why this method must be used to tell draw cache about it.

method = Gtk2::Gdk::Pixbuf::Draw::Cache->get_method ($old, CW$new)

o $old (Gtk2::Gdk::Pixbuf::Draw::Opts)
o $new (Gtk2::Gdk::Pixbuf::Draw::Opts)
Gets the fastest method to draw the specified draw options. old is assumed to be the last PixbufDrawOpts used and new is the one to use this time.

ENUMS AND FLAGS

    enum Gtk2::Gdk::Pixbuf::Draw::Method

o ’scale’ / ’GDK_PIXBUF_DRAW_METHOD_SCALE
o ’contains’ / ’GDK_PIXBUF_DRAW_METHOD_CONTAINS
o ’scroll’ / ’GDK_PIXBUF_DRAW_METHOD_SCROLL

SEE ALSO

Gtk2::ImageView, Glib::Boxed

COPYRIGHT

Copyright (C) 2007 by Jeffrey Ratcliffe.

This software is licensed under the GPL-3; see Gtk2::ImageView for a full notice.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GTK2::GDK::PIXBUF::DRAW::CACHE (3) 2016-04-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.