48 if (region ==
nullptr) {
78 if (text && (text->curl == text->sell) && (text->curc != text->selc)) {
81 const char *sel_start = text->curl->line + std::min(text->curc, text->selc);
82 const int sel_len = std::abs(text->curc - text->selc);
88 if (active_category && !
STREQ(active_category,
"Text")) {
104 ot->
idname =
"TEXT_OT_start_find";
bool panel_region_visible_width_ensure(ARegion *region)
void panel_category_active_set(ARegion *region, const char *idname)
const char * panel_category_active_get(ARegion *region, bool set_fallback)
ScrArea * CTX_wm_area(const bContext *C)
char * BLI_strncpy_utf8(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
static wmOperatorStatus text_text_search_exec(bContext *C, wmOperator *)
SpaceText * CTX_wm_space_text(const bContext *C)
static bool text_properties_poll(bContext *C)
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
ARegion * BKE_area_region_new()
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void TEXT_OT_start_find(wmOperatorType *ot)
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
static ARegion * text_has_properties_region(ScrArea *area)
void ED_region_activate_rna_prop(bContext *C, ARegion *region, const void *data, StringRefNull prop_name)
ARegion * CTX_wm_region(const bContext *C)
eRegion_Alignment alignment
ListBaseT< ARegion > regionbase
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT