⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 natxcolor.cc

📁 gcc的组建
💻 CC
字号:
/* Copyright (C) 2000  Free Software Foundation   This file is part of libgcj.This software is copyrighted work licensed under the terms of theLibgcj License.  Please consult the file "LIBGCJ_LICENSE" fordetails.  */#include <X11/Xlib.h>#include <gcj/cni.h>#include <gnu/gcj/RawData.h>#include <gnu/gcj/xlib/XColor.h>void gnu::gcj::xlib::XColor::init(){  structure = reinterpret_cast<gnu::gcj::RawData*>(new ::XColor);}void gnu::gcj::xlib::XColor::finalize(){  delete structure;}void gnu::gcj::xlib::XColor::setRGB(jint r, jint g, jint b){  ::XColor* color = (::XColor*) structure;  color->red   = r;  color->green = g;  color->blue  = b;}jint gnu::gcj::xlib::XColor::getRed(){  ::XColor* color = (::XColor*) structure;  return color->red;}jint gnu::gcj::xlib::XColor::getGreen(){  ::XColor* color = (::XColor*) structure;  return color->green;}jint gnu::gcj::xlib::XColor::getBlue(){  ::XColor* color = (::XColor*) structure;  return color->blue;}jbyte gnu::gcj::xlib::XColor::getFlags(){  ::XColor* color = (::XColor*) structure;  return color->flags;}jlong gnu::gcj::xlib::XColor::getPixelValue(){  ::XColor* color = (::XColor*) structure;  return color->pixel;}

⌨️ 快捷键说明

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