SWIG parses all declarations in its input in an object tree. Each node of this
tree is a DOHHash
and developer documentation
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 <vadim@wxwidgets.org> | |
// 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
<?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 }* |
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"?> | |
<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.5.3.0"> | |
<object class="Frobnicator" name="my_frob"> | |
<num_times>17</num_times> | |
</object> | |
</resource> |
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 <wx/secretstore.h> | |
void DoSomethingRequiringAPassword(const wxString& username) | |
{ | |
wxSecretStore store = wxSecretStore::GetDefault(); | |
if ( !store.IsOk() ) { | |
// Complain about not being able to store the password securely | |
... | |
return; | |
} |
OlderNewer