graphicscontext.h
来自「这是VCF框架的代码」· C头文件 代码 · 共 1,066 行 · 第 1/3 页
H
1,066 行
*/ int graphicsStateIndex_; /** the current Graphics state that has been saved. @see GraphicsContext::saveState() */ GraphicsState* currentGraphicsState_;};///////////////////////////////////////////////////////////////////////////////// inlinesinline void GraphicsContext::drawImage( const Point & pt, Image * image) { drawImage( pt.x_, pt.y_, image );}inline void GraphicsContext::drawImageWithState( const Point & pt, Image * image, const bool& enabled ) { drawImageWithState( pt.x_, pt.y_, image, enabled );}inline void GraphicsContext::drawPartialImage( const Point & pt, Rect* imageBounds, Image* image ) { drawPartialImage( pt.x_, pt.y_, imageBounds, image );}inline void GraphicsContext::textWithStateAt( const Point & pt, const String& text, const bool& enabled ) { textWithStateAt( pt.x_, pt.y_, text, enabled );}inline void GraphicsContext::textAt( const Point & pt, const String & text) { textAt( pt.x_, pt.y_, text );}inline void GraphicsContext::textAt( const Point & pt, const String& text, const long drawOptions ) { textAt( pt.x_, pt.y_, text, drawOptions );}inline void GraphicsContext::rectangle( const Point & pt1, const Point & pt2) { rectangle( pt1.x_, pt1.y_, pt2.x_, pt2.y_ );}inline void GraphicsContext::rectangle( const Rect & rc) { rectangle( rc.left_, rc.top_, rc.right_, rc.bottom_ );}inline void GraphicsContext::roundRect( const Point & pt1, const Point & pt2, const Point & ptc) { roundRect( pt1.x_, pt1.y_, pt2.x_, pt2.y_, ptc.x_, ptc.y_ );}inline void GraphicsContext::roundRect( const Rect & rc, const Point & ptc) { roundRect( rc.left_, rc.top_, rc.right_, rc.bottom_, ptc.x_, ptc.y_ );}inline void GraphicsContext::circle( const Point & pt, const double & radius) { circle( pt.x_, pt.y_, radius );}inline void GraphicsContext::ellipse( const Point & pt1, const Point & pt2 ) { ellipse( pt1.x_, pt1.y_, pt2.x_, pt2.y_ );}inline void GraphicsContext::arc( const Point & centerPt, const Size& radius, const double& startAngle, const double& endAngle) { arc( centerPt.x_, centerPt.y_, radius.width_, radius.height_, startAngle, endAngle );}inline void GraphicsContext::pie( const Point & pt1, const Point & pt2, const Point & pt3, const Point & pt4) { pie( pt1.x_, pt1.y_, pt2.x_, pt2.y_, pt3.x_, pt3.y_, pt4.x_, pt4.y_ );}inline void GraphicsContext::chord( const Point & pt1, const Point & pt2, const Point & pt3, const Point & pt4) { chord( pt1.x_, pt1.y_, pt2.x_, pt2.y_, pt3.x_, pt3.y_, pt4.x_, pt4.y_ );}inline void GraphicsContext::curve( const Point & pt1, const Point & pt2, const Point & pt3, const Point & pt4) { curve( pt1.x_, pt1.y_, pt2.x_, pt2.y_, pt3.x_, pt3.y_, pt4.x_, pt4.y_ );}inline void GraphicsContext::lineTo( const Point & pt){ lineTo( pt.x_, pt.y_ );}inline void GraphicsContext::moveTo( const Point & pt){ moveTo( pt.x_, pt.y_ );}inline void GraphicsContext::setOrigin( const Point & pt ) { setOrigin( pt.x_, pt.y_ );}};/***CVS Log info*$Log$*Revision 1.8 2006/04/07 02:35:41 ddiego*initial checkin of merge from 0.6.9 dev branch.**Revision 1.7.2.6 2006/03/26 22:37:35 ddiego*minor update to source docs.**Revision 1.7.2.5 2006/03/12 22:42:08 ddiego*more doc updates - specific to graphicskit.**Revision 1.7.2.4 2006/03/12 22:01:45 ddiego*doc updates.**Revision 1.7.2.3 2006/03/01 04:34:57 ddiego*fixed tab display to use themes api.**Revision 1.7.2.2 2006/02/21 04:32:51 ddiego*comitting moer changes to theme code, progress bars, sliders and tab pages.**Revision 1.7.2.1 2005/09/03 14:03:53 ddiego*added a package manager to support package info instances, and*fixed feature request 1278069 - Background color of the TableControl cells.**Revision 1.7 2005/07/18 03:54:19 ddiego*documentation updates.**Revision 1.6 2005/07/09 23:05:59 ddiego*added missing gtk files**Revision 1.5 2005/01/02 03:04:25 ddiego*merged over some of the changes from the dev branch because they're important resoource loading bug fixes. Also fixes a few other bugs as well.**Revision 1.4.2.3 2005/06/26 01:27:54 marcelloptr*added images to a PushButton**Revision 1.4.2.2 2005/03/14 04:17:26 ddiego*adds a fix plus better handling of accelerator keys, ands auto menu title for the accelerator key data.**Revision 1.4.2.1 2004/12/19 04:05:03 ddiego*made modifications to methods that return a handle type. Introduced*a new typedef for handles, that is a pointer, as opposed to a 32bit int,*which was causing a problem for 64bit compiles.**Revision 1.4 2004/12/02 04:11:10 ddiego*removed some old, extraneous files from graphics kit dir.**Revision 1.3 2004/12/01 04:31:42 ddiego*merged over devmain-0-6-6 code. Marcello did a kick ass job*of fixing a nasty bug (1074768VCF application slows down modal dialogs.)*that he found. Many, many thanks for this Marcello.**Revision 1.2.2.8 2004/11/07 19:32:20 marcelloptr*more documentation**Revision 1.2.2.7 2004/10/27 03:12:18 ddiego*integrated chrisk changes**Revision 1.2.2.6 2004/09/09 03:09:26 marcelloptr*minor change for style**Revision 1.2.2.5 2004/09/06 03:33:21 ddiego*updated the graphic context code to support image transforms.**Revision 1.2.2.4 2004/09/03 04:05:46 ddiego*fixes to add matrix transform support for images.**Revision 1.2.2.3 2004/09/01 03:50:39 ddiego*fixed font drawing bug that tinkham pointed out.**Revision 1.2.2.2 2004/08/31 21:12:07 ddiego*graphice save and restore state**Revision 1.2.2.1 2004/08/31 04:12:13 ddiego*cleaned up the GraphicsContext class - made more pervasive use*of transformation matrix. Added common print dialog class. Fleshed out*printing example more.**Revision 1.2 2004/08/07 02:49:17 ddiego*merged in the devmain-0-6-5 branch to stable**Revision 1.1.2.3 2004/07/09 03:39:30 ddiego*merged in changes from the OSX branch for new theming API. Added*support for controlling the use of locale translated strings in components.**Revision 1.1.2.2.2.4 2004/06/27 18:19:16 ddiego*more osx updates**Revision 1.1.2.2.2.3 2004/06/20 00:36:11 ddiego*finished the new theme API updates**Revision 1.1.2.2.2.2 2004/06/16 05:18:56 ddiego*further updates to OSX theme compliant drawing code**Revision 1.1.2.2.2.1 2004/06/15 04:04:38 ddiego*revamped osx theme drawing API**Revision 1.1.2.2 2004/04/29 04:10:27 marcelloptr*reformatting of source files: macros and csvlog and copyright sections**Revision 1.1.2.1 2004/04/28 03:40:31 ddiego*migration towards new directory structure**Revision 1.19.4.1 2004/04/26 21:58:39 marcelloptr*changes for dir reorganization: _VCF_MACRO_H__**Revision 1.19 2003/12/18 05:15:58 ddiego*merge from devmain-0-6-2 branch into the stable branch**Revision 1.18.2.1 2003/10/28 04:06:11 ddiego*updated the GraphicsContext and ContextPeer classes to support*slider control drawing. adjusted the Slider control accordingly.*Also changed some of the GraphicsKit headers to conform to the*current header style.**Revision 1.18 2003/08/09 02:56:43 ddiego*merge over from the devmain-0-6-1 branch*Changes*Features:*-Added additional implementation to better support the MVC architecture in*the VCF**-Added a Document/View architecure that is similar to MFC's or NextSteps's*Doc/View architectures**-Integrated the Anti Grain Graphics library into the GraphicsKit. There is*now basic support for it in terms of drawing vector shapes*(fills and strokes). Image support will come in the next release**-Added several documented graphics tutorials**Bugfixes:**[ 775744 ] wrong buttons on a dialog*[ 585239 ] Painting weirdness in a modal dialog ?*[ 585238 ] Modal dialog which makes a modal Dialog*[ 509004 ] Opening a modal Dialog causes flicker*[ 524878 ] onDropped not called for MLTcontrol**Plus an issue with some focus and getting the right popup window to activate*has also been fixed**Revision 1.17.2.6 2003/08/08 03:21:35 ddiego*got rid of some miscellaneous graphics files**Revision 1.17.2.5 2003/07/28 23:49:58 ddiego*check in of the weekend's work from July 25*learned how to use agg image renedering, now have to integrate it into the*GraphicsKit - alos enabled setting a viewable bounds that sets the agg cliprect*as well, useful for later optimizations**Revision 1.17.2.4 2003/06/20 04:41:04 ddiego*more AGG integration**Revision 1.17.2.3 2003/06/17 03:54:25 ddiego*further agg integration - took out the getImage/putImage from GraphicsContext -*this was too slow. now have an alternate solution that seems to work OK**Revision 1.17.2.2 2003/06/16 03:09:39 ddiego*beginning to add support for AGG into the VCF GraphicsKit*added some missing files*added some changes to the new version of xmake**Revision 1.17.2.1 2003/06/05 03:48:53 ddiego*added a way to get part of a graphics context into an image - no*implementation yet.**Revision 1.17 2003/05/17 20:37:09 ddiego*this is the checkin for the 0.6.1 release - represents the merge over from*the devmain-0-6-0 branch plus a few minor bug fixes**Revision 1.16.2.4 2003/05/13 03:57:12 ddiego*cleaned up the GraphicsKit, got rid of some old crap files, cleaned*up the ContextPeer so that tehre are fewer methods to implement, and*moved the repetitive fillPath and strokePath code that was copied into*all the context peers back into the GraphicsContext where it belongs**Revision 1.16.2.3 2003/04/17 04:29:47 ddiego*updated scintilla, added gtk support for the application kit, with stubs*for the basic peers.**Revision 1.16.2.2 2003/03/23 03:23:48 marcelloptr*3 empty lines at the end of the files**Revision 1.16.2.1 2003/03/12 03:10:22 ddiego*switched all member variable that used the "m_"<name> prefix to* <name>"_" suffix nameing standard.*Also changed all vcf builder files to accomadate this.*Changes were made to the Stream classes to NOT multiple inheritance and to*be a little more correct. Changes include breaking the FileStream into two*distinct classes, one for input and one for output.**Revision 1.16 2003/02/26 04:30:39 ddiego*merge of code in the devmain-0-5-9 branch into the current tree.*most additions are in the area of the current linux port, but the major*addition to this release is the addition of a Condition class (currently*still under development) and the change over to using the Delegate class*exclusively from the older event handler macros.**Revision 1.15.2.4 2003/02/20 02:46:01 ddiego*added in the base files for supporting a GTK peer implementation. Core parts*of the GTKContext work (basic line primitives), and working on the GTKImage*class.**Revision 1.15.2.3 2002/12/31 07:01:28 ddiego*trying to track issues with parenting in X. Made some fixes in the Color class*and the ContextPeer class to work in gcc/X**Revision 1.15.2.2 2002/12/28 21:51:18 marcelloptr*Fixes and improvements for WM_COPYDATA, Point, Rect, Size, GraphicsContext and StringUtils**Revision 1.15.2.1 2002/12/27 23:04:38 marcelloptr*Improved macros for automatic import/export of libraries. - Warning fixes. - Other Minor Changes.**Revision 1.15 2002/11/18 00:46:08 ddiego*this is the merge over of all the bug fixes and features (mostly*VCF Builder stuff) from the devmain-0-5-8 branch**Revision 1.14.4.2 2002/09/30 21:08:18 ddiego*piddling stuff**Revision 1.14.4.1 2002/09/27 23:38:35 ddiego*added support for geting various layout information*added support for drawing various graphics UI primitives like scroll buttons*tabs, tab pages, etc, partially to have this support in place for use*in MacOSX.*Also added scrolling buttons to TabbedPages, this fixes task 56652 in the*ApplicationKit list**Revision 1.14 2002/09/12 03:26:04 ddiego*merged over the changes from the devmain-0-5-5b branch**Revision 1.13.12.1 2002/08/06 02:57:35 ddiego*added base X11 files for GraphicsKit and made sure that the GraphicsKit compiles*under linux (GCC). There is now a new dir under build/xmake called GraphicsKit*where the xmake build script lives. This checkin also includes the base X11*include (as part of GraphicsKitPrivate.h), as well as linking to the X11 libs**Revision 1.13 2002/01/24 01:46:48 ddiego*added a cvs "log" comment to the top of all files in vcf/src and vcf/include*to facilitate change tracking**/#endif // _VCF_GRAPHICSCONTEXT_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?