Files
sword_rs/src/cxx/module.h
T

35 lines
651 B
C++
Raw Normal View History

2025-02-24 22:35:47 -06:00
#pragma once
2025-02-24 22:35:47 -06:00
#include <sword/swmodule.h>
#include <string>
#include "rust/cxx.h"
namespace sword_rs {
class Module {
private:
sword::SWModule* module;
2025-02-24 22:35:47 -06:00
public:
Module(sword::SWModule* module);
2025-02-24 22:35:47 -06:00
2025-02-25 15:36:58 -06:00
void decrement();
rust::String get_name() const;
2025-02-24 22:35:47 -06:00
2025-02-25 19:49:02 -06:00
rust::String get_type() const;
2025-02-25 15:36:58 -06:00
void increment();
2025-02-25 15:45:58 -06:00
bool is_skip_consecutive_links() const;
2025-02-25 14:55:39 -06:00
rust::String render_text();
2025-02-25 00:06:12 -06:00
void set_key_text(const rust::String& keyText);
2025-02-25 14:55:39 -06:00
2025-02-25 15:45:58 -06:00
void set_skip_consecutive_links(bool skip);
2025-02-25 14:55:39 -06:00
rust::String strip_text();
};
}