fdb0894b301a8b5f852b346f3eff94fd2be44d4a
[platform/core/uifw/dali-adaptor.git] / dali / dali-bridge / src / BridgeText.hpp
1 #ifndef BRIDGE_TEXT_HPP
2 #define BRIDGE_TEXT_HPP
3
4 #include "BridgeBase.hpp"
5
6 class BridgeText : public virtual BridgeBase
7 {
8 protected:
9   BridgeText() = default;
10
11   void RegisterInterfaces();
12
13   Dali::Accessibility::Text* FindSelf() const;
14
15 public:
16   DBus::ValueOrError< std::string > GetText( int startOffset, int endOffset );
17   DBus::ValueOrError< int32_t > GetCharacterCount();
18   DBus::ValueOrError< int32_t > GetCaretOffset();
19   DBus::ValueOrError< bool > SetCaretOffset( int32_t offset );
20   DBus::ValueOrError< std::string, int, int > GetTextAtOffset( int32_t offset, uint32_t boundary );
21   DBus::ValueOrError< int, int > GetSelection( int32_t selectionNum );
22   DBus::ValueOrError< bool > RemoveSelection( int32_t selectionNum );
23   DBus::ValueOrError< bool > SetSelection( int32_t selectionNum, int32_t startOffset, int32_t endOffset );
24 };
25
26 #endif