Last active
October 12, 2017 03:54
-
-
Save k1mny/ef268ee2ce4581d6547a73eabe5b2808 to your computer and use it in GitHub Desktop.
Test "Hello World" code of FLTK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// FLTK-Test | |
// | |
// Created by user on 2017/10/10. | |
// Copyright © 2017年 kcozy. All rights reserved. | |
// | |
#include <FL/Fl.H> | |
#include <FL/Fl_Window.H> | |
#include <FL/Fl_Box.H> | |
int main(int argc, char **argv) { | |
Fl_Window *window = new Fl_Window(340,180); | |
Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!"); | |
box->box(FL_UP_BOX); | |
box->labelfont(FL_BOLD+FL_ITALIC); | |
box->labelsize(36); | |
box->labeltype(FL_SHADOW_LABEL); | |
window->end(); | |
window->show(argc, argv); | |
return Fl::run(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment