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
#!/usr/bin/env perl6 | |
use Term::ANSIColor; | |
constant @months = <January February March April May June July | |
August September October November December>; | |
my @days = <Su Mo Tu We Th Fr Sa>; | |
sub center(Str $text, Int $width) { |
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
#include <wx/wx.h> | |
class MyFrame : public wxFrame | |
{ | |
public: | |
MyFrame() : wxFrame(NULL, wxID_ANY, "Test") | |
{ | |
wxSizer* sizer = new wxBoxSizer(wxHORIZONTAL); | |
sizer->Add(new wxStaticText(this, wxID_ANY, "Press to enlarge"), wxSizerFlags().Border().Centre()); |
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
#include <wx/wx.h> | |
class MyFrame : public wxFrame | |
{ | |
public: | |
MyFrame() : wxFrame(nullptr, wxID_ANY, "Test") | |
{ | |
auto sizer = new wxBoxSizer(wxHORIZONTAL); | |
sizer->Add(new wxStaticText(this, wxID_ANY, "Press to enlarge"), wxSizerFlags().Border().Centre()); |
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
#include <assert.h> | |
#include <locale.h> | |
#include <pthread.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <locale> | |
#include <sstream> | |
#include <string> |
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
/////////////////////////////////////////////////////////////////////////////// | |
// Name: wx/profile.h | |
// Purpose: Simple helprs for manually profiling the code. | |
// Author: Vadim Zeitlin | |
// Created: 2013-02-22 | |
// RCS-ID: $Id$ | |
// Copyright: (c) 2013 Vadim Zeitlin <[email protected]> | |
// Licence: wxWindows licence | |
/////////////////////////////////////////////////////////////////////////////// |
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
class Thread : public wxThread { | |
int Entry() override { | |
for (;;) { | |
{ | |
lock_guard<mutex> lock(m_mutex); | |
if (!m_window) | |
return 0; | |
m_window->CallAfter(&Window::ProvideResult); | |
} |
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
#include <wx/app.h> | |
#include <wx/dcclient.h> | |
#include <wx/frame.h> | |
#include <wx/panel.h> | |
#include <wx/sizer.h> | |
#include <wx/spinctrl.h> | |
class ArcFrame : public wxFrame | |
{ | |
public: |
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
<?xml version="1.0"?> | |
<!DOCTYPE catalog | |
PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" | |
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> | |
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> | |
<uri name="http://www.wxwidgets.org/wxxrc" uri="file:///$WXWIN/misc/schema/xrc_schema.rnc"/> | |
</catalog> |
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
default namespace = "http://www.wxwidgets.org/wxxrc" | |
namespace xrc = "http://www.wxwidgets.org/wxxrc" | |
include "http://www.wxwidgets.org/wxxrc" { | |
customClasses = | |
element object { | |
attribute class { "Frobnicator" } & | |
stdObjectNodeAttributes & | |
stdWindowProperties & | |
[xrc:p="o"] element num_times {_, t_integer }* |
OlderNewer