当前位置: 首页 > news >正文

创新网站建设方案书优化网络搜索引擎

创新网站建设方案书,优化网络搜索引擎,seo怎么做网站优秀案例,如何注册自己的平台文章目录 FLTK - FLTK1.4.1 - demo - bitmap概述笔记END FLTK - FLTK1.4.1 - demo - bitmap 概述 // 功能 : 演示位图数据在按钮上的显示 // * 以按钮为范围或者以窗口为范围移动 // * 上下左右, 文字和图像的相对位置 // 失能按钮,使能按钮 // 知识点 // FLTK可…

文章目录

    • FLTK - FLTK1.4.1 - demo - bitmap
    • 概述
    • 笔记
    • END

FLTK - FLTK1.4.1 - demo - bitmap

概述

// 功能 : 演示位图数据在按钮上的显示
// * 以按钮为范围或者以窗口为范围移动
// * 上下左右, 文字和图像的相对位置
// 失能按钮,使能按钮

// 知识点
// FLTK可以载入数组中的位图数据到图片控件
// 按钮可以是位图按钮了,由自己载入的位图数据来决定按钮好看不好看
// FLTK是C风格的,用起来,到处都是全局变量和静态变量, 真粗暴。

笔记

// FLTK - FLTK1.4.1 - demo - bitmap// 功能 : 演示位图数据在按钮上的显示
// * 以按钮为范围或者以窗口为范围移动
// * 上下左右, 文字和图像的相对位置
// 失能按钮,使能按钮// 知识点
// FLTK可以载入数组中的位图数据到图片控件
// 按钮可以是位图按钮了,由自己载入的位图数据来决定按钮好看不好看
// FLTK是C风格的,用起来,到处都是全局变量和静态变量, 真粗暴。#include "fltk_test.h"// 如果要将fl demo的实现搬过来测试,就注释掉下面的宏
// #define DONT_USE_FL_DEMO#ifdef DONT_USE_FL_DEMO
int fl_demo_main(int argc, char** argv)
{return 0;
}#else#endif // TEST_FL_DEMO//
// Bitmap label test program for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2021 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file.  If this
// file is missing or damaged, see the license at:
//
//     https://www.fltk.org/COPYING.php
//
// Please see the following page on how to report bugs and issues:
//
//     https://www.fltk.org/bugs.php
//#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Bitmap.H>
#include <FL/Fl_Toggle_Button.H>
#include <stdio.h>// include bitmap
// #include "pixmaps/sorceress.xbm"
#include "./fltk_test/sorceress.xbm"Fl_Toggle_Button* leftb, * rightb, * topb, * bottomb, * insideb, * overb, * inactb;
Fl_Button* b;
Fl_Double_Window* w;void button_cb(Fl_Widget*, void*) {int i = 0;if (leftb->value()) i |= FL_ALIGN_LEFT;if (rightb->value()) i |= FL_ALIGN_RIGHT;if (topb->value()) i |= FL_ALIGN_TOP;if (bottomb->value()) i |= FL_ALIGN_BOTTOM;if (insideb->value()) i |= FL_ALIGN_INSIDE;if (overb->value()) i |= FL_ALIGN_TEXT_OVER_IMAGE;b->align(i);if (inactb->value()) b->deactivate();else b->activate();w->redraw();
}int fl_demo_main(int argc, char** argv) {w = new Fl_Double_Window(400, 400);b = new Fl_Button(140, 160, 120, 120, "Bitmap");b->image(new Fl_Bitmap(sorceress_bits, sorceress_width, sorceress_height));leftb = new Fl_Toggle_Button(25, 50, 50, 25, "left");leftb->callback(button_cb);rightb = new Fl_Toggle_Button(75, 50, 50, 25, "right");rightb->callback(button_cb);topb = new Fl_Toggle_Button(125, 50, 50, 25, "top");topb->callback(button_cb);bottomb = new Fl_Toggle_Button(175, 50, 50, 25, "bottom");bottomb->callback(button_cb);insideb = new Fl_Toggle_Button(225, 50, 50, 25, "inside");insideb->callback(button_cb);overb = new Fl_Toggle_Button(25, 75, 100, 25, "text over");overb->callback(button_cb);inactb = new Fl_Toggle_Button(125, 75, 100, 25, "inactive");inactb->callback(button_cb);w->resizable(w);w->end();w->show(argc, argv);return Fl::run();
}

END

http://www.hkea.cn/news/702477/

相关文章:

  • vf建设银行网站谷歌seo排名
  • 如何申请商业服务器武汉seo工厂
  • 祥云平台英文网站微博指数查询入口
  • 公司网站建设准备资料今日重大财经新闻
  • 发布网站后备案免费网站建站页面
  • 浙江建设职业技术学院迎新网站做一个网站要多少钱
  • axure做网站好不好手机百度问一问
  • 开发微信小程序的流程广州seo优化电话
  • 小企业网站建设和管理全能搜
  • 无棣县建设局网站游戏优化大师下载安装
  • 小额贷款 网站模板品牌推广软文
  • 网站建设开发成本天津百度搜索网站排名
  • 做的好的营销型网站有哪些内容外贸网站外链平台
  • 东营网站建设预算价格百度网盘网页版入口官网
  • 网站建设中标公告18款禁用看奶app入口
  • 网站运营人员岗位职责长沙正规seo优化价格
  • cnzz统计代码放在后台网站为什么没显示seo的英文全称是什么
  • 杭州企业网站建设方案广告门
  • 自己免费做网站(二)seo优化公司信
  • 广州外贸b2b网站建设刷钻业务推广网站
  • 做企业网站用什么怎样宣传自己的品牌
  • 濮阳做网站的公司我的百度账号
  • 美食网站开发如何做好网络营销工作
  • 网站建设案例资料今天的新闻内容
  • 台州专业网站建设方案seo软文代写
  • 个人网站 百度推广全球搜索大全
  • 网站消息推送5118素材网站
  • 天津 响应式网站设计企业网站模板免费
  • 网站用花生壳nas做存储百度seo发包工具
  • wordpress cache深圳纯手工seo