Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
IR::AtomContext Struct Reference

#include <atomcontext.h>

Collaboration diagram for IR::AtomContext:

Classes

struct  Frame

Public Types

enum class  ContextType : unsigned char {
  Paragraph , Brief , Section , SectionHeading ,
  List , ListItem , Note , Warning ,
  Important , Details , CodeBlock , Table ,
  TableRow , TableCell , Link , Caption ,
  Footnote , Legalese , Quotation , Div ,
  Sidebar
}

Public Member Functions

void push (ContextType type, QJsonObject attrs={})
Frame pop ()
bool isInContext (ContextType type) const
const Framecurrent () const
bool isEmpty () const
qsizetype depth () const
void clear ()

Detailed Description

Definition at line 16 of file atomcontext.h.

Member Enumeration Documentation

◆ ContextType

enum class IR::AtomContext::ContextType : unsigned char
strong
Enumerator
Paragraph 
Brief 
Section 
SectionHeading 
List 
ListItem 
Note 
Warning 
Important 
Details 
CodeBlock 
Table 
TableRow 
TableCell 
Link 
Caption 
Footnote 
Legalese 
Quotation 
Div 
Sidebar 

Definition at line 18 of file atomcontext.h.

Member Function Documentation

◆ clear()

void IR::AtomContext::clear ( )
inline

Definition at line 77 of file atomcontext.h.

◆ current()

const Frame & IR::AtomContext::current ( ) const
inlinenodiscard

Definition at line 67 of file atomcontext.h.

◆ depth()

qsizetype IR::AtomContext::depth ( ) const
inlinenodiscard

Definition at line 75 of file atomcontext.h.

◆ isEmpty()

bool IR::AtomContext::isEmpty ( ) const
inlinenodiscard

Definition at line 73 of file atomcontext.h.

◆ isInContext()

bool IR::AtomContext::isInContext ( ContextType type) const
inlinenodiscard

Definition at line 58 of file atomcontext.h.

◆ pop()

Frame IR::AtomContext::pop ( )
inline

Definition at line 52 of file atomcontext.h.

◆ push()

void IR::AtomContext::push ( ContextType type,
QJsonObject attrs = {} )
inline

Definition at line 47 of file atomcontext.h.


The documentation for this struct was generated from the following file: