FastUIDraw
Public Member Functions | List of all members
fastuidraw::PathEffect::Storage Class Reference

A Storage is to where TessellatedPath::segment, TessellatedPath::join and TessellatedPath::cap values are stored from being processed by a PathEffect. More...

#include <path_effect.hpp>

Inheritance diagram for fastuidraw::PathEffect::Storage:
Inheritance graph
[legend]

Public Member Functions

Storageadd_cap (const cap &cap)
 
Storageadd_join (const join &join)
 
Storageadd_segment (const TessellatedPath::segment &segment)
 
Storagebegin_chain (const TessellatedPath::segment *prev_segment)
 
c_array< const capcaps (void) const
 
segment_chain chain (unsigned int I) const
 
void clear (void)
 
c_array< const joinjoins (void) const
 
unsigned int number_chains (void) const
 

Detailed Description

A Storage is to where TessellatedPath::segment, TessellatedPath::join and TessellatedPath::cap values are stored from being processed by a PathEffect.

Definition at line 68 of file path_effect.hpp.

Member Function Documentation

◆ add_cap()

Storage& fastuidraw::PathEffect::Storage::add_cap ( const cap cap)

Add a cap to the Storage

Parameters
capTessellatedPath::cap to add

◆ add_join()

Storage& fastuidraw::PathEffect::Storage::add_join ( const join join)

Add a join to the Storage

Parameters
joinTessellatedPath::join to add

◆ add_segment()

Storage& fastuidraw::PathEffect::Storage::add_segment ( const TessellatedPath::segment segment)

Add a segment to the current chain being built.

Parameters
segmentsegment to add

◆ begin_chain()

Storage& fastuidraw::PathEffect::Storage::begin_chain ( const TessellatedPath::segment prev_segment)

Begin a segment_chain.

Parameters
prev_segmentif non-null, then the chain will have that segment_chain::m_prev_to_start will point to a -COPY- of *prev_segment.

◆ caps()

c_array<const cap> fastuidraw::PathEffect::Storage::caps ( void  ) const

Returns the caps of the Storage added by add_cap(). The return value is only guaranteed to be valid until the next call to add_cap().

◆ chain()

segment_chain fastuidraw::PathEffect::Storage::chain ( unsigned int  I) const

Returns the named segment_chain of the storage. The return value is only guaranteed to be valid until the next call to add_segment() or begin_chain().

Parameters
Iwhich segment_chain with 0 <= I <= number_chains().

◆ clear()

void fastuidraw::PathEffect::Storage::clear ( void  )

Clear the Storage of all content

◆ joins()

c_array<const join> fastuidraw::PathEffect::Storage::joins ( void  ) const

Returns the joins of the Storage added by add_join(). The return value is only guaranteed to be valid until the next call to add_join().

◆ number_chains()

unsigned int fastuidraw::PathEffect::Storage::number_chains ( void  ) const

returns the number of segment_chain the Storage has.


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