コード例 #1
0
ファイル: ext_apc.cpp プロジェクト: TSMG1972/hhvm
String apc_reserialize(const String& str) {
  if (str.empty() ||
      !apcExtension::EnableApcSerialize) return str;

  VariableUnserializer uns(str.data(), str.size(),
                           VariableUnserializer::Type::APCSerialize);
  StringBuffer buf;
  reserialize(&uns, buf);

  return buf.detach();
}
コード例 #2
0
void GenerateDlg::SetPlayRange()
{
	wxColor sel(200,200,255);
	wxColor uns(240,240,255);
	wxBitmapButton *tbtn;
	tbtn = (wxBitmapButton*)FindWindow("IDC_PLAY_ALL");
	tbtn->SetBackgroundColour(playSome ? uns : sel);
	tbtn->Enable(playSome);
	tbtn = (wxBitmapButton*)FindWindow("IDC_PLAY_SOME");
	tbtn->Enable(!playSome);
	tbtn->SetBackgroundColour(playSome ? sel : uns);
}
コード例 #3
0
void GenerateDlg::SetPlayOutput()
{
	wxColor sel(200,200,255);
	wxColor uns(240,240,255);
	wxBitmapButton *tbtn;
	tbtn = (wxBitmapButton*)FindWindow("IDC_DISK");
	tbtn->SetBackgroundColour(playLive ? uns : sel);
	tbtn->Enable(playLive);
	tbtn = (wxBitmapButton*)FindWindow("IDC_PLAY_LIVE");
	tbtn->SetBackgroundColour(playLive ? sel : uns);
	tbtn->Enable(!playLive);
}