Photon 1.0.0
Loading...
Searching...
No Matches
Photon Namespace Reference

This file is also about defining core js concepts. More...

Namespaces

namespace  Detail
 
namespace  HTTP
 
namespace  Network
 

Classes

class  BasePhotonWindow
 
class  BrowserError
 
struct  ECMAInstruction
 
struct  ECMAObject
 
class  ECMAVirtualMachine
 JavaScriptEngine class program. More...
 
class  IAddon
 
class  IDOMObject
 
class  IScriptObject
 
class  IURLLoader
 
class  RenderSystemButtonDOM
 
class  RenderSystemDOM
 
class  RenderSystemImageDOM
 
class  RenderSystemTextDOM
 
class  URL
 
class  URLError
 
class  WindowHelper
 

Typedefs

typedef double Double
 
typedef float Real
 
typedef std::int32_t Int32
 
typedef std::uint32_t UInt32
 
typedef std::int64_t Int64
 
typedef std::uint64_t UInt64
 
typedef bool Bool
 
using Thread = std::thread
 
using String = std::string
 
template<typename CharType >
using BasicString = std::basic_string< CharType >
 
using PChar = wchar_t
 
using PString = BasicString< PChar >
 
using ECMAValue = std::variant< std::monostate, Real, std::string, bool, ECMAObject >
 
using ECMAFunction = std::function< bool(ECMAVirtualMachine &)>
 
using ECMAError = BrowserError
 
typedef void(* photon_asm_fn_t) (void *arg, size_t arg_cnt)
 Generic javascript function.
 
using UUID = uuids::uuid
 

Enumerations

enum class  SOCKET_FLAG : std::int64_t { NON_BLOCKING = FIONBIO , ASYNC = FIOASYNC }
 
enum  ECMAOpcode {
  kECMAInvalid = 0 , kECMALoadConst = 100 , kECMAStoreVar , kECMALoadVar ,
  kECMAAddExpr , kECMASubExpr , kECMACallNative , kECMASetProp
}
 

Functions

String photon_replace_format (String fmt, String output, String with)
 
Bool is_html_document (String the_xml_blob) noexcept
 Check if xml is HTML.
 
String get_html_document (String the_xml_blob)
 Get HTML document from xml blob.
 
int photon_delete_chunk (char *fn, size_t size)
 
photon_asm_fn_t photon_allocate_chunk (char *data, size_t size)
 
NSRect PTMakeRect (NSInteger x, NSInteger y, NSInteger w, NSInteger h)
 

Variables

constexpr size_t PHOTON_MAX_BUF = 1000000000UL
 

Detailed Description

This file is also about defining core js concepts.

Typedef Documentation

◆ BasicString

template<typename CharType >
using Photon::BasicString = typedef std::basic_string<CharType>

◆ Bool

typedef bool Photon::Bool

◆ Double

typedef double Photon::Double

◆ ECMAError

◆ ECMAFunction

using Photon::ECMAFunction = typedef std::function<bool(ECMAVirtualMachine&)>

◆ ECMAValue

using Photon::ECMAValue = typedef std::variant<std::monostate, Real, std::string, bool, ECMAObject>

◆ Int32

typedef std::int32_t Photon::Int32

◆ Int64

typedef std::int64_t Photon::Int64

◆ PChar

using Photon::PChar = typedef wchar_t

◆ photon_asm_fn_t

typedef void(* Photon::photon_asm_fn_t) (void *arg, size_t arg_cnt)

Generic javascript function.

◆ PString

using Photon::PString = typedef BasicString<PChar>

◆ Real

typedef float Photon::Real

◆ String

using Photon::String = typedef std::string

◆ Thread

using Photon::Thread = typedef std::thread

◆ UInt32

typedef std::uint32_t Photon::UInt32

◆ UInt64

typedef std::uint64_t Photon::UInt64

◆ UUID

using Photon::UUID = typedef uuids::uuid
private

Enumeration Type Documentation

◆ ECMAOpcode

Enumerator
kECMAInvalid 
kECMALoadConst 
kECMAStoreVar 
kECMALoadVar 
kECMAAddExpr 
kECMASubExpr 
kECMACallNative 
kECMASetProp 

◆ SOCKET_FLAG

enum class Photon::SOCKET_FLAG : std::int64_t
strong
Enumerator
NON_BLOCKING 
ASYNC 

Function Documentation

◆ get_html_document()

String Photon::get_html_document ( String  the_xml_blob)

Get HTML document from xml blob.

@Brief Get the HTML document.

◆ is_html_document()

bool Photon::is_html_document ( String  the_xml_blob)
noexcept

Check if xml is HTML.

◆ photon_allocate_chunk()

photon_asm_fn_t Photon::photon_allocate_chunk ( char *  data,
size_t  size 
)
inline

◆ photon_delete_chunk()

int Photon::photon_delete_chunk ( char *  fn,
size_t  size 
)
inline

◆ photon_replace_format()

String Photon::photon_replace_format ( String  fmt,
String  output,
String  with 
)
inline

◆ PTMakeRect()

NSRect Photon::PTMakeRect ( NSInteger  x,
NSInteger  y,
NSInteger  w,
NSInteger  h 
)
inline

Variable Documentation

◆ PHOTON_MAX_BUF

constexpr size_t Photon::PHOTON_MAX_BUF = 1000000000UL
constexpr