~ubuntu-branches/ubuntu/trusty/rgtk2/trusty

« back to all changes in this revision

Viewing changes to man/gdkCursorNewFromPixmap.Rd

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2010-11-03 11:35:46 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101103113546-a7fi7jdxdebp0tw1
Tags: 2.20.1-1
* New upstream release

* debian/control: Set (Build-)Depends: to current R version
* debian/control: Set Standards-Version: to current version 

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
from inline data as in the below example.}
8
8
\usage{gdkCursorNewFromPixmap(source, mask, fg, bg, x, y)}
9
9
\arguments{
10
 
\item{\verb{source}}{[\verb{\link{GdkPixmap}}]  the pixmap specifying the cursor.}
11
 
\item{\verb{mask}}{[\verb{\link{GdkPixmap}}]  the pixmap specifying the mask, which must be the same size as 
 
10
\item{\verb{source}}{the pixmap specifying the cursor.}
 
11
\item{\verb{mask}}{the pixmap specifying the mask, which must be the same size as 
12
12
   \code{source}.}
13
 
\item{\verb{fg}}{[\verb{\link{GdkColor}}]  the foreground color, used for the bits in the source which are 1.
 
13
\item{\verb{fg}}{the foreground color, used for the bits in the source which are 1.
14
14
   The color does not have to be allocated first. }
15
 
\item{\verb{bg}}{[\verb{\link{GdkColor}}]  the background color, used for the bits in the source which are 0.
 
15
\item{\verb{bg}}{the background color, used for the bits in the source which are 0.
16
16
   The color does not have to be allocated first.}
17
 
\item{\verb{x}}{[integer]  the horizontal offset of the 'hotspot' of the cursor. }
18
 
\item{\verb{y}}{[integer]  the vertical offset of the 'hotspot' of the cursor.}
 
17
\item{\verb{x}}{the horizontal offset of the 'hotspot' of the cursor. }
 
18
\item{\verb{y}}{the vertical offset of the 'hotspot' of the cursor.}
19
19
}
20
20
\details{ \emph{Creating a custom cursor}
21
21
\preformatted{
48
48
cursor <- gdkCursorNewFromPixmap(source, mask, fg, bg, 8, 8)
49
49
 
50
50
widget[["window"]]$setCursor(cursor)
51
 
}  }
52
 
\value{[\verb{\link{GdkCursor}}]  a new \verb{\link{GdkCursor}}.}
 
51
}}
 
52
\value{[\code{\link{GdkCursor}}]  a new \code{\link{GdkCursor}}.}
53
53
\author{Derived by RGtkGen from GTK+ documentation}
54
54
\keyword{internal}