Skip to content

Instantly share code, notes, and snippets.

@k1mny
Last active October 12, 2017 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k1mny/ef268ee2ce4581d6547a73eabe5b2808 to your computer and use it in GitHub Desktop.
Save k1mny/ef268ee2ce4581d6547a73eabe5b2808 to your computer and use it in GitHub Desktop.
Test "Hello World" code of FLTK
//
// 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