mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 19:10:24 +08:00
added svn properties and fixed some documentation typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+4
-4
@@ -26,7 +26,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
/** \file
|
/** \file
|
||||||
Hanling transparently platform dependent cairo include files
|
Handling transparently platform dependent cairo include files
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FL_CAIRO_H
|
#ifndef FL_CAIRO_H
|
||||||
@@ -68,7 +68,7 @@ public:
|
|||||||
|
|
||||||
// access attributes
|
// access attributes
|
||||||
cairo_t* cc() const {return cc_;} ///< Gets the current cairo context
|
cairo_t* cc() const {return cc_;} ///< Gets the current cairo context
|
||||||
bool autolink() const {return autolink_;} ///< Sets the autolink option \see Fl:cairo_autolink_context(bool)
|
bool autolink() const {return autolink_;} ///< Sets the autolink option \see Fl::cairo_autolink_context(bool)
|
||||||
void cc(cairo_t* c, bool own=true) { ///< Sets the current cairo context, \a own indicates cc deletion is made by us
|
void cc(cairo_t* c, bool own=true) { ///< Sets the current cairo context, \a own indicates cc deletion is made by us
|
||||||
if (cc_ && own_cc_) cairo_destroy(cc_);
|
if (cc_ && own_cc_) cairo_destroy(cc_);
|
||||||
cc_=c;
|
cc_=c;
|
||||||
@@ -76,9 +76,9 @@ public:
|
|||||||
own_cc_=own;
|
own_cc_=own;
|
||||||
}
|
}
|
||||||
void autolink(bool b) {autolink_ = b;} ///< Gets the autolink option
|
void autolink(bool b) {autolink_ = b;} ///< Gets the autolink option
|
||||||
void window(void* w) {window_=w;} ///< Sets the window \w to keep track on
|
void window(void* w) {window_=w;} ///< Sets the window \a w to keep track on
|
||||||
void* window() const {return window_;} ///< Gets the last window attached to a cc
|
void* window() const {return window_;} ///< Gets the last window attached to a cc
|
||||||
void gc(void* c) {gc_=c;} ///< Sets the gc \c to keep track on
|
void gc(void* c) {gc_=c;} ///< Sets the gc \a c to keep track on
|
||||||
void* gc() const {return gc_;} ///< Gets the last gc attached to a cc
|
void* gc() const {return gc_;} ///< Gets the last gc attached to a cc
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
/** \file
|
/** \file
|
||||||
Fl_Cairo_Window Hanling transparently a fltk window incorporte a cairo draw callback.
|
Fl_Cairo_Window Handling transparently a fltk window incorporte a cairo draw callback.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FL_CAIRO_WINDOW_H
|
#ifndef FL_CAIRO_WINDOW_H
|
||||||
@@ -50,8 +50,8 @@
|
|||||||
All cairo context handling is achieved transparently.
|
All cairo context handling is achieved transparently.
|
||||||
\note You can alternatively define your custom cairo fltk window,
|
\note You can alternatively define your custom cairo fltk window,
|
||||||
and thus at least override the draw() method to provide custom cairo
|
and thus at least override the draw() method to provide custom cairo
|
||||||
support. In this case you will probably use Fl:cairo_make_current(Fl_Window*)
|
support. In this case you will probably use Fl::cairo_make_current(Fl_Window*)
|
||||||
to attach a context to your window. You should do it on ly when your Window is
|
to attach a context to your window. You should do it only when your window is
|
||||||
the current window. \see Fl_Window::current()
|
the current window. \see Fl_Window::current()
|
||||||
*/
|
*/
|
||||||
class FL_EXPORT Fl_Cairo_Window : public Fl_Double_Window {
|
class FL_EXPORT Fl_Cairo_Window : public Fl_Double_Window {
|
||||||
|
|||||||
+2
-2
@@ -37,7 +37,7 @@ Fl_Cairo_State Fl::cairo_state_; ///< contains all necesary info for current cai
|
|||||||
// Fl cairo features implementation
|
// Fl cairo features implementation
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Provides a corresponding cairo context for Window \a w.
|
Provides a corresponding cairo context for window \a wi.
|
||||||
This is needed in a draw() override if Fl::cairo_autolink_context()
|
This is needed in a draw() override if Fl::cairo_autolink_context()
|
||||||
returns false, which is the default.
|
returns false, which is the default.
|
||||||
The cairo_context() does not need to be freed as it is freed every time
|
The cairo_context() does not need to be freed as it is freed every time
|
||||||
@@ -93,7 +93,7 @@ static cairo_surface_t * cairo_create_surface(void * gc, int W, int H) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a cairo context from a \a gc only, get its window size or offscreen size if fl_window is null
|
Creates a cairo context from a \a gc only, get its window size or offscreen size if fl_window is null.
|
||||||
\note Only available when configure has the --enable-cairo option
|
\note Only available when configure has the --enable-cairo option
|
||||||
*/
|
*/
|
||||||
cairo_t * Fl::cairo_make_current(void *gc) {
|
cairo_t * Fl::cairo_make_current(void *gc) {
|
||||||
|
|||||||
Reference in New Issue
Block a user