flu_separator.cpp

来自「ncbi源码」· C++ 代码 · 共 60 行

CPP
60
字号
/* * =========================================================================== * PRODUCTION $Log: Flu_Separator.cpp,v $ * PRODUCTION Revision 1000.1  2004/06/01 21:06:00  gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2 * PRODUCTION * =========================================================================== *//* * These files were imported into NCBI's CVS directly from FLU version 2.9.1. * Modifications to the source are listed below. * * ========================================================================== * $Log: Flu_Separator.cpp,v $ * Revision 1000.1  2004/06/01 21:06:00  gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2 * * Revision 1.2  2004/05/21 22:27:51  gorelenk * Added PCH ncbi_pch.hpp * * Revision 1.1  2004/03/11 13:51:39  dicuccio * Imported FLU version 2.9.1.  Altered export specifiers to match NCBI layout. * Altered include paths to match NCBI toolkit layout. * * ========================================================================== */// $Id: Flu_Separator.cpp,v 1000.1 2004/06/01 21:06:00 gouriano Exp $/*************************************************************** *                FLU - FLTK Utility Widgets  *  Copyright (C) 2002 Ohio Supercomputer Center, Ohio State University * * This file and its content is protected by a software license. * You should have received a copy of this license with this file. * If not, please contact the Ohio Supercomputer Center immediately: * Attn: Jason Bryan Re: FLU 1224 Kinnear Rd, Columbus, Ohio 43212 *  ***************************************************************/#include <ncbi_pch.hpp>#include <gui/widgets/FLU/Flu_Separator.h>Flu_Separator :: Flu_Separator( int X, int Y, int W, int H, const char *l )  : Fl_Widget( X, Y, W, H, l ){  type( HORIZONTAL );  box( FL_EMBOSSED_BOX );}void Flu_Separator :: draw(){  if( _type == HORIZONTAL )    draw_box( box(), x()+3, y()+h()/2, w()-6, 2, color() );  else    draw_box( box(), x()+w()/2, y()+3, 2, h()-6, color() );}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?