![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
ChamplainMapSourceChainChamplainMapSourceChain — A map source simplifying creation of source chains |
struct ChamplainMapSourceChain; ChamplainMapSourceChain * champlain_map_source_chain_new (void
); void champlain_map_source_chain_push (ChamplainMapSourceChain *source_chain
,ChamplainMapSource *map_source
); void champlain_map_source_chain_pop (ChamplainMapSourceChain *source_chain
);
GObject +----GInitiallyUnowned +----ChamplainMapSource +----ChamplainMapSourceChain
This map source simplifies creation of map chains by providing two
functions for their creation and modification in a stack-like manner:
champlain_map_source_chain_push()
and champlain_map_source_chain_pop()
.
For instance, to create a chain consisting of ChamplainMemoryCache,
ChamplainFileCache and ChamplainNetworkTileSource, the map
sources have to be pushed into the chain in the reverse order starting
from ChamplainNetworkTileSource. After its creation, ChamplainMapSourceChain
behaves as a chain of map sources it contains.
ChamplainMapSourceChain * champlain_map_source_chain_new
(void
);
Constructor of ChamplainMapSourceChain.
Returns : |
a new empty ChamplainMapSourceChain. |
Since 0.6
void champlain_map_source_chain_push (ChamplainMapSourceChain *source_chain
,ChamplainMapSource *map_source
);
Pushes a map source into the chain.
|
a ChamplainMapSourceChain |
|
the ChamplainMapSource to be pushed into the chain |
Since 0.6
void champlain_map_source_chain_pop (ChamplainMapSourceChain *source_chain
);
Pops the map source from the top of the stack from the chain.
|
a ChamplainMapSourceChain |
Since 0.6